isharo Posté(e) le 28 juin 2015 Posté(e) le 28 juin 2015 Je cherche à faire un truc du genre si l'élément choisis est "Rail" alors une action s’exécute j'ai essayer if {@annonce} is Rail mais ça ne marche pas Merci! options: annonce : "", "Rail", "Boussole", "Beacon", "Diamond ChestPlate", "Échelle", "Piston", "Montre" command /choice: trigger: set {_tempList::*} to {@annonce} set {_tempRandom} to random integer from 1 to size of {_tempList::*} message "%{_tempList::%{_tempRandom}%}%" broadcast "&e%{_tempList::%{_tempRandom}%}%" every 2 seconds: loop all players: display board named " &6&lBattleOfCraft " to loop-player make score "&fTemps restant: &c%{time.m}%/%{time.s}%" in board of loop-player to 1 move display of loop-player to sidebar
angelus76 Posté(e) le 28 juin 2015 Posté(e) le 28 juin 2015 et comme ça ? command /choice: trigger: set {_tempList::*} to {@annonce} set {_tempRandom} to random integer from 1 to size of {_tempList::*} if {_tempList::%{_tempRandom}%} is "Rail": message "Action particuliere car Rail es selectioné" message "%{_tempList::%{_tempRandom}%}%" broadcast "&e%{_tempList::%{_tempRandom}%}%"
isharo Posté(e) le 28 juin 2015 Auteur Posté(e) le 28 juin 2015 et comme ça ? command /choice: trigger: set {_tempList::*} to {@annonce} set {_tempRandom} to random integer from 1 to size of {_tempList::*} if {_tempList::%{_tempRandom}%} is "Rail": message "Action particuliere car Rail es selectioné" message "%{_tempList::%{_tempRandom}%}%" broadcast "&e%{_tempList::%{_tempRandom}%}%" Nice! Rapide merci :D
Messages recommandés