[SOLVED] Kills for Cash
Topic Locked
Topic Locked
|
First off: You can't reset kills so that won't work. You will need to use a razings count to detect what buildings the player kills. You can find a razing/kills list here. For your example, the razings score of a Supply Depot is 150. So here's an example trigger:
Conditions: Current players Score (Razings) is exactly 150 Player 8 has at least 1 deaths of Supply Depot Actions: Set Score for Razings to 0 Set deaths for Player 8 set to 0 for Supply Depot (Insert whatever you want here ie. a mineral bonus) Preserve Trigger I don't believe that killing your own buildings gives you razings. But if it does, then you can do this: Conditions: Current players Score (Razings) is exactly 150 Current Player has at least 1 deaths of Supply Depot Actions: Set Score for Razings to 0 Set deaths for Current Player set to 0 for Supply Depot Preserve Trigger Also: FIRST POST WOOOHH!!! |
|
Well, it all depends on what your needs are. If you want kills for men and buildings then you would use "kills and razings score". If you just want a kills to cash system for only killing men then use "kills score" and likewise for only buildings.
As for your triggers, and mouse's triggers. Both should be scrapped as they are both flawed. It should look something like this. Conditions. Current players razings score is at least 150 player 8 has suffered at least 1 death of supply depot Actions Add mineral amount Set score SUBTRACT 150 razings Set Deaths for player 8 SUBTRACT 1 for supply depot Preserve The reason you do subtract instead of set is in case you kill multiple supply depots within less than a second of each other. You will be rewarded for all supply depots killed instead of just 1. It should also be noted that you should set these triggers up to reset on killing player 1-7 units. For example, player 1 kills player 2's supply depot. player 1 will have a razing score of 150. this 150 will sit stagnant until someone kills one of player 8's supply depots. If player 2-7 kill a player 8 supply depot, player 1 will get the reward for it because triggers run in order player 1 first player 8 last. So to prevent this from happening you would set something up like whats listed above except you would replace player 8 with players 1-7. (*EDIT - Without the reward obvioustly. Don't think you need to be told, but you never know) Furthermore, you will need to arrange these triggers on your list in order from highest to lowest for razings amount. This post was edited 1 time, last edit by staxx: Aug 11 2012, 6:17 am. ![]() ![]() ![]() ![]() ![]() ![]() |
|
An artist's depiction of an Extended Unit Death
|
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: ![]() ![]() ![]() ![]() ![]() ![]() Learn how to make EUDs: [EUD] A Mapmaker's Guide for Creating EPDs
Don't like learning? EUDGen2 Other stuff: Farlap Bound Maker [EUD] EUPCalc SC1 Maps: Dash: 1 2 3 4 5 6 7 8 9 X Jog: Original Warp Other: Super Mario SC Fireball Guard Your Civilian Strength Contest Interceptor Arena |
|
@Staxx: He specifically said a Supply Depot that's why I was talking about a razings list. Btw you gave him almost the exact same information I did except you did subtract instead of set to 0. And Staxx I have never had to arrange my triggers in order from highest to lowest and it works fine lol.. But have your own methods is okay.
@Flameviper: It's really simple to use kills to cash systems. If you want them to be all the same (maybe give 5 minerals for each kill), then say if Score of Kills and Razings is at least 1, then set Score of Kills and Razings to 0 and add 5 minerals. It's a really easy system. If you want them individually to give different rewards, then you have to find each Kill Score or Razings for each unit. Kills are for units and razings are for buildings. |
|
I didnt say yours wouldnt work, i said it was flawed. If you read through the entire post i explain why you use subtract instead of set. Also i use at least instead of exactly for the same reason you use subtract instead of set. Your method will fire until the player has killed 2 or more supply depots before the trigger has ran for them. Why? Because the player will not have exactly 150 razings, they will have 300+ razings at that point. Either way, Roy has given him a sufficient amount of information for him to read over covering a few variances of kills to cash. To answer your uncertainty in your initial post, no you do not get razings for killing your own buildings. ![]() ![]() ![]() ![]() ![]() ![]() |
|
:(){ :|:& };:
|
No. Two Supply Depots at 1 HP, each attacked by a different Marine at once. Blam, broken triggers. Always go with the option that works more generally unless you have a good reason not to.
![]() ![]() ![]() ![]() ![]() ![]() Catapultam habeo. Nisi pecuniam omnem mihi dabis, ad caput tuum saxum immane mittam.
|