| 01-30-2004, 03:26 AM | #1 |
Guess who needs more help! Hey guys, im addicted to your helpfullness :P What I need this time is a trigger that will give a player 1 lumber for every 25 kills. Without having to make a ton of triggers like... When killcount = 25,50,75...so on |
| 01-30-2004, 03:47 AM | #2 |
Code:
Events: Unit dies
Conditions:
Owner of (dying unit) not equal to player 1
Actions:
If (integervariable < 25) then
set integervariable = integervariable + 1
skip remaining actions
else
set integervariable = 0
add 25 lumber to player 1 |
| 01-30-2004, 04:39 AM | #3 |
Or in your kill count trigger (if you already have such a trigger, like for a leaderboard or something) just do: Code:
If Kills[Playernumber(owner of(killing unit))] mod 25 = 0 then give Player (owner of (killing unit)) +1 lumber Mod gives you remainders for divinsion, so mod25 = 0 means 25 goes into with no remainders... |
| 01-30-2004, 05:01 AM | #4 |
Hmm.... which method to use..... they both work.... lol. Ya, AllPainful's idea will work fine too, I gues it is up to you to chose which one you want to use. |
| 02-01-2004, 04:29 AM | #5 |
both ways are fabulous, but i stuck with Allpainful's since i do have that leaderboard :) |
