• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Mana Spawn

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,240
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