• 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.

Leaderboard SHOW/HIDE ability ¿Why is not WORKING?

Status
Not open for further replies.
Level 2
Joined
Sep 9, 2017
Messages
11
hideshow.jpg


I don´t know how to upload triggers. sorry.

so i wanted to make a ability to show and hide a leaderboard. and also a made a variable to track if it is showing or not. =1 for showing (default value) 0 for hidden.

the problem is that the Hide fuction works. when i start the leaderboard shows and i press the ability and it hides but i can`t make it reapear. for the ability i used as base "armor scroll" i removed all the stats of the ability and made it`s duration 0.05 sec. any ideas on what is wrong?
 
Level 2
Joined
Sep 9, 2017
Messages
11
Both triggers fired in sequence in response to the same cast. Basically you cast, it showed and then instantly hid again. The best solution is to merge them into a single trigger and use an if then else decision to either hide or show, this removes the need for a hacky wait action.


Hey man, thanks for the help but i am encountering another problem. i tried this trigger on multiplayer and it turns out that it shows and hides the score board for ALL the players, even tho the actions sais "leaderboard of X player" is there a way to fix this?

i should make 1 leaderboard for each player right?
 
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,286
even tho the actions sais "leaderboard of X player" is there a way to fix this?
The action does not say that... It says it will show or hide to all players the argument leaderboard, even if that is named funny or from a specific player.

What you need to do is use GetLocalPlayer to run the show/hide action locally on a single client. GetLocalPlayer returns the player who's client executes it. As such each player client returns their own player and so a test can be done to run triggers for a specific client. This works fine for visual stuff like timer dialogs, leader boards, multi boards, etc. It will cause an out of sync disconnect if done for anything that alters the game play state like moving a unit, creating a unit, damaging a unit etc.

There should be a ton of tutorials on how to use GetLocalPlayer, and if not there are certainly a ton of threads about it with examples.
 
Status
Not open for further replies.
Top