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

Mana Spawn

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
Use a periodic timer Time - Periodic event.

  • Untitled Trigger 052
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in group and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Mana of (Picked unit)) Greater than or equal to 450.00
            • Then - Actions
              • Set point = (Position of (Picked unit))
              • Unit - Create 4 Footman for (Owner of (Picked unit)) at point facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_point)
              • Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) - 200.00)
            • Else - Actions
Add units into the unit group. If you only use one unit, then use a unit variable, not a unit group.
 
Status
Not open for further replies.
Top