Hey everyone, I'm in need of a Trigger that every 10 kills creates a unit. How would I do something like that, some EVERY 10 kills the action takes place?
is there a way to like make a custom event? Thanks In Advance.
Also Im refering to 10 kills in Total not 10 kills for a specific unit.
event - any unit dies
cond - owner of triggering unit = player y
owner of killing unit = player x
action
modify kills_playerx +1
if (mod kills_playerx 10 == 0) {
create unit for player z
}
Hey everyone, I'm in need of a Trigger that every 10 kills creates a unit. How would I do something like that, some EVERY 10 kills the action takes place? is there a way to like make a custom event? Thanks In Advance. Also Im refering to 10 kills in Total not 10 kills for a specific unit.
global var kills_playerx = 0 <int>
event - any unit dies
cond - owner of triggering unit = player y
owner of killing unit = player x
action
modify kills_playerx +1
if (mod kills_playerx 10 == 0) {
create unit for player z
}
@b0ne123: Go
Could you plz tell me how to create that variable/trigger you describe.. cant seem to find it..
thx
which part are you unable to find? mod() is a math function