Hi masters, i have what to kill one scourge enemy, when add 25 mineral for me (human player), only every time what i kill one scourge enemy. I try with preserve trigger but does not stop to add 25 mineral.... Help me please
have any idea??
None.
Don't use the death condition to detect when you kill a scourge. Instead use the Scourges kill score and make the condition when player one has kill score of x, add 25 minerals and subtract that kill score. You can find a list of unit kill scores somewhere on sen or on the internet.
thanks for the answer!!! but..work with 4 human players??
None.
Yeah, just have it run for four players and then make the condition "Current player has kill score of exactly 200." Then, add the minerals and subtract the kill score.
An artist's depiction of an Extended Unit Death
This is known as a Kills to Cash system. This question is probably the most often asked question in this forum.
Here's a bunch of implementations in the wiki:
http://www.staredit.net/starcraft/Kills_to_cashHere's some previous topics that you might find to have insightful answers:
The kill score method will only reliably work if one type of unit is being killed. If multiple units are being killed, then refer to Roy's post.
None.
The kill score method will only reliably work if one type of unit is being killed. If multiple units are being killed, then refer to Roy's post.
It works just fine if you make sure you don't kill other units with the same score, and if you do, make sure they're worth the same amount of ressource (by making their stats similar, for example.)
None.
An artist's depiction of an Extended Unit Death
It works just fine if you make sure you don't kill other units with the same score, and if you do, make sure they're worth the same amount of ressource (by making their stats similar, for example.)
Not exactly. Say you kill a Marine (100) and a Zergling (50) at the same time. These are different unit types with different scores, but the total score adds up to 150, which happens to also be the score for killing a Vulture. So you can't distinguish between killing a Vulture and killing a Marine+Zergling at the same time just by relying on the kill score.
The
"Perfect" kills to cash system(s) attempt to remedy this by also associating a death of a unit type with the score, but there's still the scenario where Player 1 kills a Marine+Zergling and Player 2 kills a Vulture at the same time, and Player 1 ends up being rewarded for the Vulture kill while Player 2 is rewarded for the Marine+Zergling. It's all explained quite well in the
wiki article. This type of occurrence is rare for many game types, which is why the name of these systems are audaciously called perfect (while appropriately wrapping "perfect" in quotes), so it's ultimately up to the mapmaker to decide if it's the appropriate approach.