QUOTE(OhManTfe @ Apr 26 2006, 03:31 PM)
Food System
I want a system where 20 vespene is full of food and 0 vespene is starved to death and every minute you lose 1 vespene how can I do that without using the countdown timer because I'm planning on using that for something else.
[right][snapback]473332[/snapback][/right]
you can set up a a few simple triggers for the player(s) you want it affecting. like for first trigger;
Conditions;
-always
Actions;
-set resources for 'player' to 20
then;
Conditions;
-current player accumulates at least 1 vespene gas
Actions;
-wait 60000 miliseconds
-set resources, subtract 1 vespene gas for player
-preserve trigger
i might know the wait seconds in that trigger is going a tad bit too extreme, so you might be able to use death counters.
here's some other ones
Conditions;
-Player accumulates exactly 0 vespene gas
-Player commands exactly 0 of unit(this condition is optional as well as adjusting it to something you want)
Actions;
-kill all any unit for player
-end scenario in defeat for current player
i also have other methods, but this one is pretty simple...