everytime i try it just adds the minerals and more kills on the leaderboard, can anyone help me?

what do u actually want 2 do? coz it's really not clear to me
make it where it adds 1 kill to the leaderboard not an excessive amount, and only add X minerals
Here's the solution. Instead of using leaderboard of kills and razings or whatever you were using before, instead use: custom.
You would have to have a trigger like this to count the times when a kill is registered.
First have a trigger to display the custom leaderboard. It should be in the actions under the leaderboard stuff. Then you need a hyper trigger.
[Always//wait0msx62, preserve trigger, comment"none"]x3+
Have this hyper trigger under a player without any waits or a player that is a computer.
[current player kill score is at least 1//set score for current player to 0, add 1 to custom, add 1 to minerals, preserve trigger].
That's all you need.
This trigger will see if you have made a kill, and then if you make a kill it will set the kills to zero, add one kill and one point to the custom.
You can modify the numbers to add different amounts if you prefer.
this doesnt work for an RPG where it adds exp and minerals
Your mistake is probably trying to use a trigger like this:
Current player kills at least 1 Zergling
Add 5 minerals
Preserve
However, "kills at least 1 Zergling" in reality will NOT detect everytime you kill a Zergling, but instead becomes true FOREVER after you kill 1 Zergling, which is why it repeats forever.
Proper kills to cash systems can be found
here and
here.
Try this and remember always put the Kill board trigger before the costoms:
| Trigger |
| Description: |
| Kills leader boared |
|
| Players: |
| ¤ All players |
| Conditions: |
| ¤ Always |
Actions::
|
¤ Display leader board: Kills
|
| ¤ Comment: Do not use preserve trigger. |
| Trigger |
| Description: |
| Costoms leader boared |
|
| Players: |
| ¤ All players |
| Conditions: |
| ¤ Always |
Actions::
|
¤ Display leader board: Costom
|
| ¤ Comment: Do not use preserve trigger. |
| Trigger |
| Description: |
| Now the money. |
|
| Players: |
| ¤ All |
| Conditions: |
| ¤ Current player has at least 25 kills |
| Actions: |
¤ Subtract 25 kill points
|
¤ Add 10 minnerals
|
¤ Add 10 points to costoms
|
¤ Preserve trigger
|
| ¤ Comment: Kills |
I have another method you might be able to use. You might have to use multiple triggers though.
You also have to hyper trigger it.
For leaderboard:
-Set the Leaderboard to 'points'
-Set the score type to 'Custom'
For the scoring, you might need to know how much each you'll get for killing them.
IE: Zergling will give 50 points per kill
Scoring:
Players:
-Force 1(or other players you want them custom)
Conditions:
-Player 'kill and razings' score is 'at least 1'
-Player 'kill and razings' score is 'at most 50'
Actions
-Set 'Current Player' Score(Kill and razings) to 0
-Add 'Current Player' Score(Custom) to 'Whatever points for killing a zergling'
-Set Resources for current player (value for them is up to you)
-Preserve trigger
This trigger will add custom points to the leaderboard to you chosing. This method is flexible to whatever you want it to do. This method is very flexible. You won't have to keep adding every kill triggers and adds it automatically. You have to add other points for the units other than zerglings but it won't be much of a problem.