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

[Trigger] Is there an easier way to do this?

Status
Not open for further replies.
Level 19
Joined
Feb 25, 2009
Messages
2,004
  • Stone
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Stone
    • Actions
      • Set StoneVar[(Player number of (Owner of (Attacking unit)))] = (StoneVar[(Player number of (Owner of (Attacking unit)))] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • StoneVar[(Player number of (Owner of (Attacking unit)))] Equal to 5
        • Then - Actions
          • Set Stones[(Player number of (Owner of (Attacking unit)))] = (Stones[(Player number of (Owner of (Attacking unit)))] + 1)
          • Set StoneVar[(Player number of (Owner of (Attacking unit)))] = 0
        • Else - Actions
 
Status
Not open for further replies.
Top