• 🏆 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!

Come Help me with this ~(^((o)(o))^)

Status
Not open for further replies.
Level 6
Joined
Mar 9, 2009
Messages
175
:grin:~~How am i gonna do...if a unit enter a region then make every 4seconds -400hp ? hope u teach me lo:razz:
 
Level 19
Joined
Feb 4, 2009
Messages
1,313
  • Lose 400 HP
    • Events
      • Time - Every 4.00 seconds of game time
    • Conditions
    • Actions
      • -------- This saves all units in a region in a unit group --------
      • Set UnitGroup = (Units in Region 000 <gen>)
      • -------- This picks all units in the unit group and does some action --------
      • Unit Group - Pick every unit in UnitGroup and do (Actions)
        • Loop - Actions
          • -------- This sets the life of the picked unit to life of the picked unit - 400 --------
          • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 400.00)
      • -------- This removes leaks --------
      • Custom script: call DestroyGroup( udg_UnitGroup )
get a better thread title next time (something which describes your question)
else how should we know what you want
 

Attachments

  • -400HP.w3x
    18.7 KB · Views: 30
Status
Not open for further replies.
Top