Warcraft III resources & community, 2003–2006 · archived

Simple trigger

2 posts
#1

Simple trigger

Ok so i'm no good at triggers, I would like to ask someone to, well instead of making me a trigger tell me how to make it. I want a set up where every 50 kills a player makes he/she would receive 1 peice of lumber. Please be in-depth if it's not too much trouble as, again im not really that good with triggers.
#2
Variables (you can edit those by pressing cntrl + B in the trigger editor)

Name: Variable (pick another name if you wish)
Type: Integer
Array: 12 (One for each player)
Initial Value: 0


Triggers

Trigger 1
Event: A unit dies
Condition: None (unless you only want E.g. neutral hostile kills to be counted...)
Action: Set Variable [(Player number of (Owner of (Killing unit)))]
= Variable [(Player number of (Owner of (Killing unit)))] + 1

Trigger 2
Event: a unit dies
Condition: Integer Comparison - Variable [(Player number of (Owner of (Killing unit)))] Equal to 50
Action: Set Variable [(Player number of (Owner of (Killing unit)))] Equal to 0
Add 1 to (Owner of (Killing unit))'s current Lumber