• 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.

Why doesn't it work the way it is?

Status
Not open for further replies.
Level 3
Joined
Dec 24, 2009
Messages
22
The title said it, Why doesn't it work the way I want?
You are welcomed to correct me. ><

by the way, i need the trigger that gives you 45 agi&str n change colour while in that colour, the hero's mp will always 0.. :hohum:

  • Naga Blood
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Naga Blood
    • Actions
      • Set NagaBlood_Caster = (Casting unit)
      • Special Effect - Create a special effect attached to the weapon of NagaBlood_Caster using Units\NightElf\Wisp\WispExplode.mdl
      • Special Effect - Create a special effect attached to the chest of NagaBlood_Caster using Units\NightElf\Wisp\WispExplode.mdl
      • Special Effect - Create a special effect attached to the origin of NagaBlood_Caster using Units\NightElf\Wisp\WispExplode.mdl
      • Special Effect - Create a special effect attached to the overhead of NagaBlood_Caster using Units\NightElf\Wisp\WispExplode.mdl
      • Animation - Change NagaBlood_Caster's vertex coloring to (60.00%, 0.00%, 60.00%) with 60.00% transparency
      • Hero - Modify Strength of NagaBlood_Caster: Add 45
      • Unit - Set NagaBlood_Caster movement speed to 300.00
      • Hero - Modify Agility of NagaBlood_Caster: Add 45
      • Unit - Set mana of NagaBlood_Caster to 0.00%
      • For each (Integer A) from 1 to 125, do (Actions)
        • Loop - Actions
          • Unit - Set mana of NagaBlood_Caster to 0.00%
          • Wait 0.20 seconds
      • Hero - Modify Strength of NagaBlood_Caster: Subtract 30
      • Hero - Modify Agility of NagaBlood_Caster: Subtract 30
      • Unit - Set NagaBlood_Caster movement speed to (Default movement speed of (Casting unit))
      • Animation - Change NagaBlood_Caster's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
      • For each (Integer A) from 1 to 4, do (Actions)
        • Loop - Actions
          • Special Effect - Destroy (Last created special effect)
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Use "triggering unit" instead of "casting unit" or that variable.

Save the effects to a hashtable (read a hashtable tutorial).

Remove the 1 to 125 loop.

Add the triggering unit to a unit group. Create another trigger that picks every unit in that unit group every 0.1 seconds and set their mana to zero.

Then in the original trigger you can use a wait and remove the unit from the unit group after a while.
 
Status
Not open for further replies.
Top