Heyy. Does anyone know the trigger so you make a leaderboard and stuff and it starts with 50(value) and if a guy enters region the value goes down? Like lives in a TD.
P.S. I know how to make the leaderboard and variables and stuff, just gotta make it so it goes down)
Heres an example of a leaderboard tigger i just made. Team 1 Leaderboard Events Time - Elapsed game time is 1.00 seconds Conditions Actions Leaderboard - Create a leaderboard for (All allies of Player 1 (Red)) titled |cff00ff00P|cff00ea... Custom script: set bj_wantDestroyGroup=true Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Picked player) controller) Equal to User ((Picked player) slot status) Equal to Is playing Then - Actions Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 50 Else - Actions Do nothing Leaderboard - Show (Last created leaderboard)
That trigger sets the value to 50 ( the underlined action).
And now for the -1 for each creep when entering region. This will require some variables... Create a variable type integer, with an array of 1, and initial value of 0.
This following trigger will minus 1 per every entering unit. Tally Kill for Team1 LB Events Unit - A unit enters Up ELEVATOR TR <gen> Conditions ((Killing unit) belongs to an ally of Player 1 (Red)) Equal to True Actions Set Player_Kills[(Player number of (Owner of (Killing unit)))] = Player_Kills[((Player number of (Owner of (Killing unit))) - 1)] Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Player_Kills[(Player number of (Owner of (Killing unit)))] Leaderboard - Sort (Last created leaderboard) by Value in Descending order
The underlined actio is what minuses 1. If you need any more help with triggering... just send me a PM.