Aller au contenu
  • 0

Scoreboard update points


Question

Posté(e)

Bonjour, je suis en ce moment entrain de créer un mini-jeux mais mon scoreboard s'update qu'a un seul joueur, je voudrais qu'il s'update à tous les joueurs.

 

Scoreboard:

command /startplay:
   trigger:
       set {vert} to 0
       set {rouge} to 0
       set {bleu} to 0
       set {orange} to 0
       loop all players:
           wipe loop-player's sidebar
           set name of sidebar of %loop-player% to "  &e<bold>GOLD &c<bold>CO&b<bold>UN&a<bold>TS  "
           set id based score " " in sidebar of loop-player  to 5 with id "test."
           set id based score "&2Vert : %{pointvert}%" in sidebar of loop-player  to 4 with id "test1"
           set id based score "&4Rouge : %{pointrouge}%" in sidebar of loop-player  to 3 with id "test2"
           set id based score "&1Bleu : %{pointbleu}%" in sidebar of loop-player  to 2 with id "test3"
           set id based score "&6Orange : %{pointorange}%" in sidebar of loop-player  to 1 with id "test4"
       while {var} is true:
           edit score id "test1" to "&2Vert : %{pointvert}%" and 4
           edit score id "test2" to "&4Rouge : %{pointrouge}%" and 3
           edit score id "test3" to "&1Bleu : %{pointbleu}%" and 2
           edit score id "test4" to "&6Orange : %{pointorange}%" and 1
           wait 1 second

1 réponse à cette question

Messages recommandés

  • 0
Posté(e)

J'ai trouver la solution.

 

il faut mettre

 

Il faut rajouter .%loop-players% à id "test1"

       set id based score "&2Vert : %{pointvert}%" in sidebar of loop-players to 4 with id "test1.%loop-players%"


et rajouter .%player% à id"test1"

edit score id "test1.%player%" to "&2Vert : %{pointvert}%" and 4

  • J'aime 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.