• 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.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

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