• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Value In Leaderboard

Status
Not open for further replies.
Level 6
Joined
Oct 10, 2009
Messages
1,425
Fixed!!

How can you get a condition for the value in a leaderboard
Like this...
[trigger=My Trigger]MyTrigger
Events
Time - Every 2.00 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
if - Conditions
value of (player something) in (last created leaderboard) equal to blablabla
Then - Actions
Blablabla
Else - Actions
BlaBlaBla
[/trigger]
 
Last edited:
Level 18
Joined
Jan 21, 2006
Messages
2,552
You cannot reference the values in a multiboard. The way multiboards are setup means that users have to handle the data that they are passing to the multiboard entirely themselves. If you're trying to reference the value that is in a multiboard then you'll have to look at the value that was used to set the value of the multiboard.

For example, if you wanted to have a multiboard that stored the amount of kills each player has then you would store that value in an integer variable, which you would convert to a string for the multiboard. If you're trying to reference the value of the multiboard, in this case, it would be the same as referencing the variable that was used (the integer counter).
 
Level 6
Joined
Oct 10, 2009
Messages
1,425
For example, if you wanted to have a multiboard that stored the amount of kills each player has then you would store that value in an integer variable, which you would convert to a string for the multiboard. If you're trying to reference the value of the multiboard, in this case, it would be the same as referencing the variable that was used (the integer counter).

alrighty, i got it. thanks and +rep (it was a leaderboard not multi just btw:p but its the same thing so it doesnt really matter in this case)
 
Status
Not open for further replies.
Top