Ability with Triggers

world23wc3

Member
Reaction score
6
Start info: I have made an custom ability in the trigger editor. Please read the whole text else you wont understand my problem.

Units: "Vampire 0009" = The unit that can use the ability "Stalking"

Ability: "Stalking" = The custom ability

Function:
Level 1: Duration 20 seconds, The first 10 seconds the movement speed is decreased, but the next 10 seconds the speed is increased.
Level 2: Duration 40 seconds, same "system" as level 1 but longer duration(decrease, increase, decrease, increase).
Level 3: Duration 60 seconds same "system".

During this time, the unit is unvisible, the spell is made out of Wind Walk, so there is no trouble with the stealth.

Problem:
I don't know how to make different levels(I don't want level 1 to be as powerful as level 3, hope you understand what I'm trying to say :-D) in the trigger editor, so please help me with this and please explain as good as you can :)

Trigger:
  • Stalking
    • Events
      • Unit - Vampire 0009 <gen> Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Stalking (Custom)
    • Actions
      • Unit - Set Vampire 0009 <gen> movement speed to 220.00
      • Wait 10.00 seconds
      • Special Effect - Create a special effect at (Position of Vampire 0009 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Unit - Set Vampire 0009 <gen> movement speed to 300.00
      • Wait 10.00 seconds
      • Unit - Set Vampire 0009 <gen> movement speed to 220.00
      • Wait 10.00 seconds
      • Special Effect - Create a special effect at (Position of Vampire 0009 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Unit - Set Vampire 0009 <gen> movement speed to 300.00
      • Wait 10.00 seconds
      • Unit - Set Vampire 0009 <gen> movement speed to 220.00
      • Wait 10.00 seconds
      • Special Effect - Create a special effect at (Position of Vampire 0009 <gen>) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Unit - Set Vampire 0009 <gen> movement speed to 300.00
      • Wait 10.00 seconds
      • Unit - Set Vampire 0009 <gen> movement speed to (Default movement speed of (Triggering unit))


/World23wc3

PS: I give you credits if possible if you solve this, and explain it to me :)
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Set the waits to different durations.
"Wait # * level of ability seconds"
or "Wait # / level of ability seconds".
 

Happy

Well-Known Member
Reaction score
71
@ WolfieeifloW : that wont help because per level one increase and one decrease period is added....

@ world23wc3 : i would recommend to read some tutorial....wait in spells are bad...using a certain unit in spell triggers is not really good...you need (in my opinion) some more knowledge of spell triggering.
 

world23wc3

Member
Reaction score
6
Isn't it possible to make 1 trigger for each level? And use this type of condition if it is possible to make; level of spell equal to 1,2, 3 etc.
 

world23wc3

Member
Reaction score
6
Yes that is possible and I think you should do that, but remove the waits.

I can't find the function, can you show me?. And I need the waits for my spell, it's a part of it. Do you have any suggestion that I could use instead of wait functions?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top