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

How to recycle this trigger?

Status
Not open for further replies.
Level 6
Joined
Apr 15, 2016
Messages
118
Seriously I jsut forogt, "tilted" my mind, simply I just don't remember.
  • Repair Powder Visual Periodic
    • Events
      • Time - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • For each (Integer RepairPowderCurrentIndex) from 1 to RepairPowderMaxIndex, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Current order of RepairPowderCaster[RepairPowderCurrentIndex]) Equal to RepairPowderOrder
            • Then - Actions
              • Set RepairPowderTimer[RepairPowderCurrentIndex] = (RepairPowderTimer[RepairPowderCurrentIndex] + 0.02)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • RepairPowderTimer[RepairPowderCurrentIndex] Greater than or equal to 0.90
                • Then - Actions
                  • Custom script: call SetUnitAnimationByIndex(udg_RepairPowderCaster[udg_RepairPowderCurrentIndex], 5)
                  • Unit - Set mana of RepairPowderTarget[RepairPowderCurrentIndex] to ((Mana of RepairPowderTarget[RepairPowderCurrentIndex]) + 1.00)
                  • Set RepairPowderTimer[RepairPowderCurrentIndex] = 0.00
                • Else - Actions
            • Else - Actions
How to ?

The skill works like "Channels for two seconds, and every 1 second of this channel (or 0.90 as I put there) restore 1 mana point. If you cancel the order you suck (no mana restored, end channeL).

But I don't know, Or don't remember how to recycle, where should be the variables nulling each other (in else actions, in loop, where ?)
 
Level 6
Joined
Apr 15, 2016
Messages
118
I know how to deindex, but in this case, I don't know where should them be, if they should be in Else Actions (the first one, or the second) or wherever.

Where ?
 
Status
Not open for further replies.
Top