• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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