Aller au contenu
  • 0

Probleme scoreboard qui clignote


Question

Posté(e)

command /score <text>:
   trigger:
       if arg 1 is "ingame":
           display board named "&6*---==== Mini-Jeu ====---*" to player
           make score "&7Joueurs : &f%{game.player}% /32" in board of player to 7
           make score "&8&nPoints:" in board of player to 5
           make score "&9Equipe Bleue :" in board of player to 4
           make score "&cEquipe Rouge :" in board of player to 3
           make score "&eEn jeu" in board of player to 2
           make score "&7Temps : %{time}%" in board of player to 1
           move display of player to sidebar



every second:
   make all players execute command "/score ingame"

Bonjour, je me suis mis à développer un mini-jeux tout automatisé de a à z et tout marche nickel;

cependant, lorsque je me mets à travailler sur les scoreboards, je remarque que la sidebar du player clignote lorsqu'il actualise ce dernier : je vous envoie le code, j'ai modifié le temps du "every" mais ça clignote toujours

 

Serait-il possible de me dire comment faire pour éviter que ça clignote ?

Merci

9 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Essaye sa :

command /score <text>:
   trigger:
       if arg 1 is "ingame":
           set {score.%player%} to true
           display board named "&6*---==== Mini-Jeu ====---*" to player
           make score "&7Joueurs : &f%{game.player}% /32" in board of player to 7
           make score "&8&nPoints:" in board of player to 5
           make score "&9Equipe Bleue :" in board of player to 4
           make score "&cEquipe Rouge :" in board of player to 3
           make score "&eEn jeu" in board of player to 2
           make score "&7Temps : %{time}%" in board of player to 1
           move display of player to sidebar
           while {score.%player%} is true:
               display board named "&6*---==== Mini-Jeu ====---*" to player
               make score "&7Joueurs : &f%{game.player}% /32" in board of player to 7
               make score "&8&nPoints:" in board of player to 5
               make score "&9Equipe Bleue :" in board of player to 4
               make score "&cEquipe Rouge :" in board of player to 3
               make score "&eEn jeu" in board of player to 2
               make score "&7Temps : %{time}%" in board of player to 1
               move display of player to sidebar
               wait 1 second
       if arg 1 is "disable":
           set {score.%player%} to false

  • 0
Posté(e)
Essaye sa :

command /score <text>:
   trigger:
       if arg 1 is "ingame":
           set {score.%player%} to true
           display board named "&6*---==== Mini-Jeu ====---*" to player
           make score "&7Joueurs : &f%{game.player}% /32" in board of player to 7
           make score "&8&nPoints:" in board of player to 5
           make score "&9Equipe Bleue :" in board of player to 4
           make score "&cEquipe Rouge :" in board of player to 3
           make score "&eEn jeu" in board of player to 2
           make score "&7Temps : %{time}%" in board of player to 1
           move display of player to sidebar
           while {score.%player%} is true:
               display board named "&6*---==== Mini-Jeu ====---*" to player
               make score "&7Joueurs : &f%{game.player}% /32" in board of player to 7
               make score "&8&nPoints:" in board of player to 5
               make score "&9Equipe Bleue :" in board of player to 4
               make score "&cEquipe Rouge :" in board of player to 3
               make score "&eEn jeu" in board of player to 2
               make score "&7Temps : %{time}%" in board of player to 1
               move display of player to sidebar
               wait 1 second
       if arg 1 is "disable":
           set {score.%player%} to false

merci d'avoir essayé mais chez moi cela clignote quand même, je voudrais avoir un système qui fasse comme les timers d'Epicube par exemple où le scoreboard ne clignote pas pour se refresh.

@NelGossem_ tu as une idée ?

  • 0
Posté(e)

J'en ai un si tu veut

 

tien :

on load:
   set {timer} to 900
   set {pvp} to "off"
   set {phase} to "10/-10"

command /score:
   trigger:
       loop 200 times:
           if player is online:
               wait 1 second
                   if player is online:
                   wipe player's sidebar
                   set name of sidebar of player to "&aUCHRUN"
                   set score "&aBordure : %{phase}%" in sidebar of player to 2
                   set score "Pvp: %{pvp}%" in sidebar of player to 1
                   set score "Timer (sec): %{timer}%" in sidebar of player to 1
every 1 seconds:
   add -1 to {timer}

command /reset:
   trigger:
       set {timer} to 900

 

Voià

  • 0
Posté(e)
Et c'est quoi la solution ? :)

la solution c'est l'Addon skrayfall et les loop-players

every 1 second:
   loop all players:
       wipe loop-player's sidebar
       if {game.phase} is "preparation":
           set name of sidebar of loop-player to "&c&l*--=== Test ===--*"
           set score "&6Préparation " in sidebar of loop-player to 3
           set score "&7Kit: &f%{kit.%loop-player%}%" in sidebar of loop-player to 2
           set score "&7Joueurs : &f%number of all players%" in sidebar of loop-player to 1

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.