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




    Memes gather, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post. I am the sword in the darkness. I am the memer on the walls. I am the shield that guards the realms of memes. I pledge my life and honor to the Meme's Watch, for this meme and all the memes to come.

    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



    Memes gather, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post. I am the sword in the darkness. I am the memer on the walls. I am the shield that guards the realms of memes. I pledge my life and honor to the Meme's Watch, for this meme and all the memes to come.

    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.
    [11:15 pm]
    razorback9423 -- I'm just kidding, it's okay about that you made some mistakes.
    [11:12 pm]
    razorback9423 -- Congratulations Zoan you are a candidate for ban due to spamming.
    [10:56 pm]
    Zoan -- :wob: code
    [10:56 pm]
    Zoan -- :wob: :wob: :wob: : :wob: : :wob: : :wob:
    [10:56 pm]
    Zoan -- :wob: :wob: :wob: : :wob: :wob: :wob: : :wob: :wob: :wob:
    [10:56 pm]
    Zoan -- :wob: : :wob: :wob: :wob:
    [10:55 pm]
    Zoan -- no wait I'll do it in 3 messages
    [10:55 pm]
    Zoan -- it got cut off. I give up
    [10:55 pm]
    Zoan -- :wob: : :wob: :wob: :wob: : : : :wob: :wob: :wob: : :wob: :wob: :wob: : :wob: :wob: :wob: : : : :wob: :wob: : : :
    [10:54 pm]
    Zoan -- omg I screwed up again. why isn't there a delete button
    Please log in to shout.


    Members Online: Roy, MidNighTime