• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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
 
Level 2
Joined
Jul 8, 2007
Messages
19
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
 
Level 11
Joined
Jul 12, 2005
Messages
764
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.
Top