• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] nevermore (dota)

Status
Not open for further replies.
Level 2
Joined
Feb 2, 2012
Messages
11
Hello guys
i want to learn trigger so i thought i will copy the sahdow fiend (nevermore) from the game dota (u can see skills here: www.playdota.com/heroes/shadow-fiend)
i made alone the atribute bonus and the armor rdeuce aura
when i tyed to make the shadow razes i got some problems whitch are hard to explain. when u can help me with this skill please download the map and say what i can do agains this fail
greetings
bigbozz

02.02.2012 - 16:13
http://www20.zippyshare.com/v/4703745/file.html

one of my problem is, my hero need to learn one abilty and 3 diferent abilitys should be skilled. so for example Nevermore learns shadowraze and he should have 3 diferent skills (for diferent ranges). how do i do that? :D
 
Last edited by a moderator:
Level 14
Joined
Jul 25, 2011
Messages
1,065
Triggers

[TRIGGER=My Trigger]Learn
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Shadowraze (Close)
Actions
Hero - Learn skill for (Triggering unit): Shadowraze (Midium)
Hero - Learn skill for (Triggering unit): Shadowraze (Far)
Unit - Set level of Shadowraze (Midium) for (Triggering unit) to (Level of learned skill)
Unit - Set level of Shadowraze (Far) for (Triggering unit) to (Level of learned skill)

[/TRIGGER]

Make 3 skills the (Close),(Midium) and (Far) range. Then add the (Close) to Nevermore.
The trigger means when Nevermore learns the (Close) He will learn the (Midium) and (Far) skills too.

[TRIGGER=My Trigger]Shadowraze (Close)
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Shadowraze (Close)
Actions
Set TempPoint1 = (Position of (Triggering unit))
Set TempPoint2 = (TempPoint1 offset by 200.00 towards (Facing of (Triggering unit)) degrees)
Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 200.00 at TempPoint2, dealing (100.00X(Level of (Ability being cast) damage of attack type Spells and damage type Magic
Custom script: call RemoveLocation(udg_TempPoint1)
Custom script: call RemoveLocation(udg_TempPoint2)
[/TRIGGER]:ogre_hurrhurr:[TRIGGER=My Trigger]Shadowraze (Midium)
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Shadowraze (Midium)
Actions
Set TempPoint1 = (Position of (Triggering unit))
Set TempPoint2 = (TempPoint1 offset by 450.00 towards (Facing of (Triggering unit)) degrees)
Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 200.00 at TempPoint2, dealing (100.00X(Level of (Ability being cast) damage of attack type Spells and damage type Magic
Custom script: call RemoveLocation(udg_TempPoint1)
Custom script: call RemoveLocation(udg_TempPoint2)
[/TRIGGER]:ogre_hurrhurr:[TRIGGER=My Trigger]Shadowraze (Far)
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Shadowraze (Far)
Actions
Set TempPoint1 = (Position of (Triggering unit))
Set TempPoint2 = (TempPoint1 offset by 700.00 towards (Facing of (Triggering unit)) degrees)
Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 200.00 at TempPoint2, dealing (100.00X(Level of (Ability being cast) damage of attack type Spells and damage type Magic
Custom script: call RemoveLocation(udg_TempPoint1)
Custom script: call RemoveLocation(udg_TempPoint2)
[/TRIGGER]:ogre_hurrhurr:

You can use these triggers if you want.
Please correct me if I have leaks or anything.:ogre_haosis:
 
Level 4
Joined
Mar 24, 2012
Messages
24
My "The GUI way to make Shadowraze"

My way is to add Shadowraze [X] and [C] after it supposed to learn the [Z] and level up the [X] and [C] according to what "Hero - learn skill" level of the [Z]....

Observe...
  • Shadowraze Learn
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Shadowraze [Z] [Learn]
    • Actions
      • Set CU = (Learning Hero)
      • Set MLevel = (Level of Shadowraze [Z] [Learn] for CU)
      • Set M_Array[1] = Shadowraze [X]
      • Set M_Array[2] = Shadowraze [C]
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • Unit - Remove M_Array[(Integer A)] from CU
          • Unit - Add M_Array[(Integer A)] to CU
          • Unit - Set level of M_Array[(Integer A)] for CU to MLevel
M_Array[Integer] is an Ability variable with array numbers
I refresh the ability level-ups by removing old level of Shadowraze [X] and [C] and adding the ability back with new level :vw_unimpressed:

Next... My own "How to cast a shadowraze"

  • Shadowraze
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • Set CU = (Casting unit)
      • Set CUO = (Owner of CU)
      • Set MLevel = (Level of (Ability being cast) for CU)
      • Set M_Array[1] = Shadowraze [Z] [Learn]
      • Set M_Array[2] = Shadowraze [X]
      • Set M_Array[3] = Shadowraze [C]
      • For each (Integer A) from 1 to 3, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Ability being cast) Equal to M_Array[(Integer A)]
            • Then - Actions
              • Set P = (Position of CU)
              • Set Angle = (Facing of CU)
              • Set P2 = (P offset by (-50.00 + (250.00 x (Real((Integer A))))) towards Angle degrees)
              • Special Effect - Create a special effect at P2 using Shadowraze3.mdx
              • Trigger - Run SFX Recycler <gen> (checking conditions)
              • Set Real = (75.00 x (Real(MLevel)))
              • Set Group = (Units within 352.00 of P2 matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of CUO) Equal to True)))))
              • Unit Group - Pick every unit in Group and do (Unit - Cause CU to damage (Picked unit), dealing Real damage of attack type Spells and damage type Normal)
              • Custom script: call DestroyGroup (udg_Group)
              • Custom script: call RemoveLocation (udg_P)
              • Custom script: call RemoveLocation (udg_P2)
            • Else - Actions
This is a simple (i hope..) version of how to make Shadowrazes in One Trigger... :goblin_yeah:

NOTE: PLS DONT MIND THE "SFX Recycler" thingy... its where my dumb way on how to remove SFX after it shows its effects.. :xxd:
 
Last edited:
Status
Not open for further replies.
Top