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

How to change gold to Ammo, and lumber to clips?

Status
Not open for further replies.
Level 5
Joined
Oct 22, 2008
Messages
156
Hello Gamers...
I was wondering how i can change gold, to Ammo, so every time he shoots he use one gold/ammo, and then he rounded 0 ammo he change clip/lumber?

Just like the map " Undead Assault " and " Dawn of the dead " ?
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
Try this:

  • Trigger
    • Events
      • -------- Your Events --------
    • Conditions
      • ((Owner of (Triggering unit)) Current gold) Greater than 0
      • -------- Add more conditions if you want to --------
    • Actions
      • Player - Set (Owner of (Triggering unit)) Current gold/lumber to (((Owner of (Triggering unit)) Current gold) - 1)
      • -------- Your Actions --------
''((Owner of (Triggering unit)) Current gold) Greater than 0'' is ''Integer Comparison''
 
Status
Not open for further replies.
Top