[trigger] Money and Kill Help

Post Reply
Trooper
Terran Settler (Unemployed)
Terran Settler (Unemployed)
Posts: 3
Joined: Sat Jul 11, 2009 12:16 pm

[trigger] Money and Kill Help

Post 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?
User avatar
thebrowncloud
Zerg Hydralisk Nail Stylist
Zerg Hydralisk Nail Stylist
Posts: 570
Joined: Sat Jul 04, 2009 11:17 am

Re: [trigger] Money and Kill Help

Post 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
"Imagination is the beginning of creation. You imagine what you desire, you will what you imagine and at last you create what you will."
-George Bernard Shaw
Symmetry
Terran Refinery Attendant
Terran Refinery Attendant
Posts: 26
Joined: Tue Jun 16, 2009 11:13 am

Re: [trigger] Money and Kill Help

Post 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
Trooper
Terran Settler (Unemployed)
Terran Settler (Unemployed)
Posts: 3
Joined: Sat Jul 11, 2009 12:16 pm

Re: [trigger] Money and Kill Help

Post by Trooper »

that dident work, they still got unlimited money after you kill just 1 thing.
Trooper
Terran Settler (Unemployed)
Terran Settler (Unemployed)
Posts: 3
Joined: Sat Jul 11, 2009 12:16 pm

Re: [trigger] Money and Kill Help

Post by Trooper »

Post Reply