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

Control Point

Status
Not open for further replies.
Level 5
Joined
Mar 19, 2008
Messages
58
Hey guys, I found out how to make the income depending on how many u have, but I cannot find out how to make the control point become the owner of killing unit and have an effect. Please help, as I could not find an answer anywhere. :vw_wtf: :ogre_rage:
 
Why use effects?

Just do it this way.

  • Unit Life
    • Events
      • Unit - [YOUR UNIT] Is attacked
    • Conditions
      • (Life of (Triggering unit)) Less than or equal to (<=) 30.00
    • Actions
      • Unit - Change ownership of (Triggering unit) to (Owner of (Attacking unit)) and Change color
      • Player Group - Pick every player in (All players) and do (If ((Owner of (Triggering unit)) Equal to (==) (Picked player)) then do (Game - Display to (All players) the text: (((Name of (Owner of (Attacking unit))) + has taken over ) + (Name of (Attacked unit)))) else do (Do nothing))
      • Unit - Set life of (Attacked unit) to ((Percentage life of (Attacked unit)) + [MAX HEALTH OF UNIT])
 
Level 11
Joined
Aug 6, 2009
Messages
697
  • Events
    • Unit - A unit Is attacked
  • Conditions
    • (Percentage life of (Triggering unit)) Less than or equal to 20.00
  • Actions
    • -------- Just add the unit you would like changed when it hits 20% or lower hp in the or - any condition is true. --------
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Or - Any (Conditions) are true
          • Conditions
            • (Unit-type of (Triggering unit)) Equal to Castle
            • (Unit-type of (Triggering unit)) Equal to Keep
            • (Unit-type of (Triggering unit)) Equal to Town Hall
      • Then - Actions
        • Unit - Set life of (Triggering unit) to 100.00%
        • Unit - Change ownership of (Triggering unit) to (Owner of (Attacking unit)) and Change color
        • Game - Display to (All players) for 30.00 seconds the text: ((Name of (Owner of (Attacking unit))) + ( has captured + (Name of (Triggering unit))))
      • Else - Actions
 
Status
Not open for further replies.
Top