Warcraft III resources & community, 2003–2006 · archived

Using Food/Max food as something like GOld?

5 posts
#1

Using Food/Max food as something like GOld?

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)
#2
Doubt it is possible without modding, it is hard codded into the game system.
#3
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.
#4
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?
#5
I have absolutely no idea what does that. Could you be a little more specific? When does it wackle out? When it reaches the food cap?
Maybe you should set the food cap to 1000.