• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Mana Spawn

Status
Not open for further replies.
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.
Back
Top