• 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.

Using Food/Max food as something like GOld?

Status
Not open for further replies.
Level 3
Joined
Jun 16, 2004
Messages
36
I am using Gold and Lumber for Ammo and clips, but i still want to use something for Cost, like gold/lumber.

First, I want to have ammo/clips as something els, like maybe Food(as ammoo) and MAx food as clips, but I dont know how that can be done, but i know that Gates 2(map) has that system, but have no clue how to do it.

So my question is, If i use gold and lumber, then can i have food as my gold sorce? Like when i pick up an item, it gives my Food, as for example, Fuel?

That wold be awesome, if anone could help me, that would be awesome!

PS-if anyone knows of another way i cna use Ammo and Clips, please let me know! That would really be helpfull! 8)
 
Level 5
Joined
Nov 21, 2005
Messages
100
You can add 'food used', and 'max food' using
Player-Add property.
See? Simple. Didn't need coding at all.

Then you just use the classic "When unit attacks, take away 1 food" trigger.
 
Level 3
Joined
Jun 16, 2004
Messages
36
Wow! THanks! I got it basily down, but there is a problem!

After i run out of food uses, it wackes out and there are like 492832 food... I triggerd it so that when it gets to like 100, its set to go back to 50, setting te max, but it stil wackes out... can anyone help?
 
Status
Not open for further replies.
Top