Draining Resources

P

PandemoniumFox

Is there a way to make it so if you kill an enemy unit, you receive the amount of mins/gas it cost to make them? It only half works when I do "add 50 mins" when I kill a drone with preserve trigger, but it keeps on doing it.


I'd like to say that I'm using a mac, so none of your fancy windows programs will work :/
 

Zeroth

Member!
Joined
Jan 28, 2004
Messages
728
Reaction score
0
Location
right here
read up on money for kills. I think a few threads here have that... and BTW, you gotta add the trigger (been a while, might be wrong..):

Conditions:
Player kills 1 <unit>
Actions:
Set kills <unit> to 0
Preserve trigger

without that, all it will do is just keep adding money for an infinite time because its conditions state Kills <x> <unit> and has a preserve trigger in its actions, so when its done, it rechecks itself, and what do you? all the conditions are still met!
 

Lwek

Member!
Joined
May 18, 2003
Messages
4,487
Reaction score
0
Website
www.Battleforums.com
I've tested that many times and it doesn't work.
One way that works:

CONDITIONS
-Current Players kills score is atleast 1.
ACTIONS
-Add 50 minerals for current player.
-Set score for current player to 0.
-Preserve trigger.
Whats different about this and the one Lord Hishado posted is that his condition are always going to be met and the trigger will always fire due to the preserve trigger.
 

Zeroth

Member!
Joined
Jan 28, 2004
Messages
728
Reaction score
0
Location
right here
it has been a while, so I couldn't remember exactly what was right...
 

NewPosts

New threads

Top