Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: kill one enemy and add mineral
kill one enemy and add mineral
Jan 24 2014, 12:50 am
By: ranmakun  

Jan 24 2014, 12:50 am ranmakun Post #1



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?? :stfu:



None.

Jan 24 2014, 12:55 am Dem0n Post #2

ᕕ( ᐛ )ᕗ

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.




Jan 24 2014, 1:18 am ranmakun Post #3



thanks for the answer!!! but..work with 4 human players??



None.

Jan 24 2014, 1:43 am Dem0n Post #4

ᕕ( ᐛ )ᕗ

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.




Jan 24 2014, 1:44 am Roy Post #5

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_cash

Here's some previous topics that you might find to have insightful answers:




Jan 25 2014, 3:13 pm Sacrieur Post #6

Still Napping

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.

Feb 5 2014, 9:47 pm Dungeon-Master Post #7



Quote from Sacrieur
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.

Feb 5 2014, 10:10 pm Roy Post #8

An artist's depiction of an Extended Unit Death

Quote from Dungeon-Master
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.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:36 pm]
Oh_Man -- a program called mapstats I think it's on here to DL
[02:39 pm]
GGmano -- so theres a limit on total triggers on around 80k?
[02:38 pm]
GGmano -- thanks for info anyway
[02:38 pm]
GGmano -- how did you found that out ohh man?
[02:15 pm]
Oh_Man -- mapstats says 80k triggers
[2022-7-02. : 9:37 pm]
GGmano -- maybe its not about the size i guess since its now above 6000 and was saved
[2022-7-02. : 9:05 pm]
GGmano -- just seems like 6000kb is an obstacle not sure
[2022-7-02. : 9:05 pm]
GGmano -- idk it could also be about the map size its like above 6k kb map wont be saved,, 6000kb of triggers no sounds im aware sounds can go beyond that size
[2022-7-02. : 8:51 pm]
GGmano -- heres link for the new release http://www.staredit.net/topic/18475/#1
[2022-7-02. : 8:51 pm]
GGmano -- i now released it after deleting triggers 3 times sadly
Please log in to shout.


Members Online: jun3hong