• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Help plzzzz

Status
Not open for further replies.
Level 4
Joined
Feb 11, 2006
Messages
44
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)
 
Level 5
Joined
Nov 15, 2005
Messages
172
Yes... first- setting value to 50.

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.
 
Status
Not open for further replies.
Top