[Trigger] Pause=Reset Ability Cooldowns?

Status
Not open for further replies.
Level 2
Joined
Jul 8, 2007
Messages
19
Hello my friends
I have got a question to pause units.
I wanted to pause my unit , caster.
Here we go.
After i unpaused him in a trigger all cooldowns are reseted again.
Could you help me plz?
thanks
 
no.
it has a cooldown of 180 seconds , but after casting it resets automaticly.
THe trigger takes about 20seconds.
It has some lightning effects.
here it is:
  • Events
    • Unit - A unit Begins casting an ability
  • Conditions
    • (Ability being cast) Equal to Mind seeking
  • Actions
    • Set CasterBlue = (Casting unit)
    • Unit Group - Add (Random unit from (Units within 900.00 of (Position of CasterBlue))) to Bluegroup
    • Unit Group - Add (Random unit from (Units within 900.00 of (Position of CasterBlue))) to Bluegroup
    • Unit Group - Add (Random unit from (Units within 900.00 of (Position of CasterBlue))) to Bluegroup
    • Lightning - Create a Drain Mana lightning effect from source (Position of CasterBlue) to target (Position of (Target unit of ability being cast))
    • Set BlueLines[1] = (Last created lightning effect)
    • Unit - Pause CasterBlue
    • Wait 2.00 seconds
    • Cinematic - Fade out and back in over 2.00 seconds using texture Black Mask and color (100.00%, 50.00%, 50.00%) with 10.00% transparency
    • Unit Group - Add (Random unit from (Units within 900.00 of (Position of CasterBlue))) to Bluegroup
    • Unit Group - Add (Random unit from (Units within 900.00 of (Position of CasterBlue))) to Bluegroup
    • Lightning - Create a Drain Life lightning effect from source (Position of CasterBlue) to target (Position of (Random unit from Bluegroup))
    • Set BlueLines[2] = (Last created lightning effect)
    • Wait 4.00 seconds
    • Unit Group - Add (Random unit from (Units within 900.00 of (Position of CasterBlue))) to Bluegroup
    • Lightning - Create a Drain Mana lightning effect from source (Position of CasterBlue) to target (Position of (Random unit from Bluegroup))
    • Set BlueLines[3] = (Last created lightning effect)
    • Wait 4.00 seconds
    • Unit - Set life of CasterBlue to ((Life of CasterBlue) + 400.00)
    • Lightning - Destroy BlueLines[1]
    • Lightning - Destroy BlueLines[2]
    • Lightning - Destroy BlueLines[3]
    • Custom script: call DestroyLightning(udg_BlueLines[1])
    • Custom script: call DestroyLightning(udg_BlueLines[2])
    • Custom script: call DestroyLightning(udg_BlueLines[3])
    • Wait 0.10 seconds
    • Unit Group - Pick every unit in Bluegroup and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 400.00))
    • Unit - Unpause CasterBlue
    • Unit Group - Remove all units from Bluegroup
    • Custom script: set udg_Bluegroup = null
    • Wait 0.01 seconds
    • Set CasterBlue = No unit
    • Custom script: set udg_CasterBlue = null
Thanks for help
 
Try using the event: 'Unit starts the effect of an ability'
With 'Begins casting an ability' the trigger fires when the spell is cast, but before the mana is removed and the cooldown is "started". So if you pause the unit instantly, the cooldown timer does not even start.
(As far as I know.)
 
Status
Not open for further replies.
Back
Top