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:20 am]
Symmetry -- Dang I'm up to 155 minerals gambling really pays off guys
[2026-10-11. : 6:02 am]
Donald -- Samase
[2026-10-09. : 2:53 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: I'll check it out this weekend!
Thanks
[2026-10-09. : 2:47 am]
Symmetry -- I'll check it out this weekend!
[2026-10-09. : 2:40 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: Another map maker? Damn we really ARE back
I invite you to try out the map I modified. I don't have the creativity to create maps from scratch, but I do have the know-how to modify existing ones; my project is to tweak community campaigns (specifically those with errors—to make them playable.
[2026-10-09. : 2:27 am]
Symmetry -- Another map maker? Damn we really ARE back
[2026-10-09. : 1:51 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Now that I wanted to change my avatar, the error image is showing up, haha.
[2026-10-09. : 1:34 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Mr.BurnLiquid
Mr.BurnLiquid shouted: Ultraviolet Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
I invite you to try out a mission I'm modifying from *StarCraft Reversed*; I'm trying to make it more playable and challenging.
[2026-10-09. : 1:33 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
Please log in to shout.


Members Online: Moose