Money for kills
Jul 28 2011, 4:10 am
By: Seigekiller  

Jul 28 2011, 4:10 am Seigekiller Post #1



Trigger
Players
  • Player 1
  • Player 2
  • Player 3
  • Player 4
  • Player 5
  • Player 6
  • Conditions
  • Current Player Kills Exactly 1 Zergling
  • Actions
  • Modify Resources for Current Player: Add 20 Ore

  • and preserve trigger
    but what happens is it constantly gives me. Anyone no what to do to fix the trigger? and since im asking for this
    how would i have it give say 100XP to a points leaderboard



    None.

    Jul 28 2011, 4:21 am Roy Post #2

    An artist's depiction of an Extended Unit Death

    http://www.staredit.net/?p=oldwiki&s=21

    The condition you have will always pass as true after one kill, so it will spam the player money. Above is a link to kills to cash systems.




    Jul 28 2011, 4:23 am Azrael Post #3



    Your trigger doesn't work right because you've still killed 1 Zergling, so it keeps firing forever. You can't subtract kills either, so there's no way to fix that specific trigger except to remove the preserve and then duplicate the entire trigger for 2 kills, 3 kills, etc. This method is shown under "Rewards with individual triggers" in Roy's link, and there's a program called Trigger Duplicator for just such things.

    You may not want to do it like that though, so look at the other methods listed. You can also check out the triggers in this map.

    Also, you can set a leaderboard to display Custom with the label "XP", then include the "Set Score" action in a trigger to add 100 Custom for the player.




    Jul 28 2011, 5:26 am Dem0n Post #4

    ᕕ( ᐛ )ᕗ

    Just set their kill score to 0 before you want any of these triggers to fire and then make the condition "Current Player kills score is exactly 50." Fifty represents the zergling's unit score or w/e. Then, make the action add 20 ore and then subtract 50 kill score from the current player and preserve. ;o

    Unit Kills Scores If You Need It





    Jul 28 2011, 5:28 am samsizzle Post #5



    The best way to do it, I think, is to use the kill score condition or whatever it is. Only problem with this is when a player kills two units at once or something like that, especially if you want to give unit specific rewards, I don't think it'd be that big of a deal if you weren't giving unit specific rewards.

    Here is a list of the score each unit gives when you kill it.

    EDIT:
    Damnit demon beat me.



    None.

    Jul 28 2011, 6:56 am Seigekiller Post #6



    Can you by chance make an example trigger? Also I tried most of the triggers in kill 4 cash and they don't work for me



    None.

    Jul 28 2011, 2:47 pm rockz Post #7

    ᴄʜᴇᴇsᴇ ɪᴛ!

    Quote
    Conditions
    Current player Kills score is at least 25.
    Foes has suffered at least 1 deaths of Broodling.

    Actions:
    Preserve Trigger.
    Modify score for Current player: Subtract to 25 Kills.
    Modify resources for Current player: Add 20 Minerals.
    Modify deaths for Foes: Subtract 1 for Broodling.
    make the trigger look exactly like that, then post it, because you're doing it wrong. Make sure you use "kills score" and not "kills".



    "Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

    Jul 28 2011, 4:43 pm Dem0n Post #8

    ᕕ( ᐛ )ᕗ

    Quote from rockz
    Quote
    Conditions
    Current player Kills score is at least 25.
    Foes has suffered at least 1 deaths of Broodling.

    Actions:
    Preserve Trigger.
    Modify score for Current player: Subtract to 25 Kills.
    Modify resources for Current player: Add 20 Minerals.
    Modify deaths for Foes: Subtract 1 for Broodling.
    make the trigger look exactly like that, then post it, because you're doing it wrong. Make sure you use "kills score" and not "kills".
    Make sure any kills/deaths for current player and foes is set to 0 before you want these triggers to run. ;o




    Jul 28 2011, 7:07 pm samsizzle Post #9



    Quote from name:Dem0nS1ayer
    Make sure any kills/deaths for current player and foes is set to 0 before you want these triggers to run. ;o

    Why does this matter?



    None.

    Jul 28 2011, 7:28 pm rockz Post #10

    ᴄʜᴇᴇsᴇ ɪᴛ!

    if you don't want to reward the player for previous kills.



    "Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

    Jul 28 2011, 7:54 pm samsizzle Post #11



    Wouldn't that just make the condition false every time?



    None.

    Jul 28 2011, 8:21 pm ubermctastic Post #12



    I know what he means. The deaths and score should be set to 0 at the end of every trigger cycle to make sure there is no overflow. Overflow can screw up the game. Or if you are only using these triggers at a specific time, the deaths should be set to 0 previous to that time.

    death count can find who was killed how many times which is all you need to know in single player games.
    In multiplayer games you need to also use kill score to find who has kills and who doesn't.

    The only time this trigger doesn't work is when both players have the same kill score, and they killed different things. In this case the first player to run the triggers will be awarded points for killing whatever unit death is counted first in the kill triggers.



    None.

    Jul 28 2011, 8:28 pm samsizzle Post #13



    Quote from name:Dem0nS1ayer
    Make sure any kills/deaths for current player and foes is set to 0 before you want these triggers to run. ;o
    This is what confused me. I get it now, thanks bro.



    None.

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [04:31 pm]
    Zoan -- where's the option to delete my account
    [04:30 pm]
    Zoan -- goodbye forever
    [04:30 pm]
    Zoan -- it's over, I've misclicked my top right magic box spot
    [2024-4-14. : 9:21 pm]
    O)FaRTy1billion[MM] -- there are some real members mixed in those latter pages, but the *vast* majority are spam accounts
    [2024-4-14. : 9:21 pm]
    O)FaRTy1billion[MM] -- there are almost 3k pages
    [2024-4-14. : 9:21 pm]
    O)FaRTy1billion[MM] -- the real members stop around page 250
    [2024-4-14. : 9:20 pm]
    O)FaRTy1billion[MM] -- look at the members list
    [2024-4-12. : 12:52 pm]
    Oh_Man -- da real donwano
    da real donwano shouted: This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
    it's pretty common
    [2024-4-11. : 9:53 pm]
    da real donwano -- This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
    [2024-4-11. : 4:18 pm]
    IlyaSnopchenko -- still better than "Pakistani hookers in Sharjah" that I've seen advertised in another forum
    Please log in to shout.


    Members Online: NudeRaider, Zoan, C(a)HeK, jjf28