Page 1 of 1
[trigger] Money and Kill Help
Posted: Sat Jul 11, 2009 12:19 pm
by Trooper
For a map im doing i want to make it so that every kill that player gets X amount of minerals for killing. but when i tried it gave them a never ending flow of money. how do i fix this so that it give them money for 1 kill but keeps giving when they get more kills?
Re: [trigger] Money and Kill Help
Posted: Sat Jul 11, 2009 12:24 pm
by thebrowncloud
Condition:
Current player kills exactly 1 (insert unit)
Action:
Give (insert number) minerals to current player
Reset kill count to 0 for current player
Preserve Trigger
Re: [trigger] Money and Kill Help
Posted: Sat Jul 11, 2009 12:54 pm
by Symmetry
thebrowncloud wrote:
Condition:
Current player kills exactly 1 (insert unit)
Action:
Give (insert number) minerals to current player
Reset kill count to 0 for current player
Preserve Trigger
This method will only work if the player cannot kill two units at the same time. So if that works for your purposes, Trooper, by all means use it. However if the player has the opportunity to kill multiple units within a single trigger cycle, you will have to use an alternate method. There's a great article on it over at staredit.net's wiki.
http://www.staredit.net/wiki/Kills_To_Cash
Re: [trigger] Money and Kill Help
Posted: Sun Jul 12, 2009 8:55 am
by Trooper
that dident work, they still got unlimited money after you kill just 1 thing.
Re: [trigger] Money and Kill Help
Posted: Sun Jul 12, 2009 12:07 pm
by Trooper