Salut,
Je viens demandé une fois de plus de l'aide, cette fois-ci c'est pour comprendre pourquoi en jeu, malgré le fait que je clic avec un bloc de verre Rouge, je ne suis pas set dans la team rouge ?
En fait, c'est un problème avec la condition.
Mais skript ne me dit pas qu'il y a un pb quand je reload le skript.
C'est en fait les conditions des lignes 4 et 6 qui n'arrive pas à être validées
Est-il possible de me dire où se situe le problème ?
Merci d'avance !
On right click with stained glass:
if name of player's tool is "Rouge":
send "Etape 1"
If {team.red} is more than or equal to {team.limit}:
send "L'équipe est plein boloss"
If {team.red} is less than {team.limit}:
send "Etape 2"
If {team::%player%} is set:
send "Etape 3"
If {team::%player%} is "red":
send "T'es déja dans cette équipe boloss..." to player
If {team::%player%} is "blue":
add 1 to {team.red}
add -1 to {team.blue}
set {team::%player%} to red
execute console command "/scoreboard teams join Red %player%"
send "Tu es maintenant dans l'équipe Rouge !" to player
If {team::%player%} is "Orange":
send "Tu es maintenant dans l'équipe Rouge !" to player
add 1 to {team.Red}
add -1 to {team.orange}
set {team::%player%} to Red
execute console command "/scoreboard teams join Red %player%"
If {team::%player%} is "Green":
send "Tu es maintenant dans l'équipe Rouge !" to player
add 1 to {team.Red}
add -1 to {team.green}
set {team::%player%} to Red
execute console command "/scoreboard teams join Red %player%"
If {team::%player%} is "Yellow":
send "Tu es maintenant dans l'équipe Rouge !" to player
add 1 to {team.Red}
add -1 to {team.yellow}
set {team::%player%} to Red
execute console command "/scoreboard teams join Red %player%"
If {team::%player%} is "Magenta":
send "Tu es maintenant dans l'équipe Rouge !" to player
add 1 to {team.Red}
add -1 to {team.magenta}
set {team::%player%} to Red
execute console command "/scoreboard teams join Red %player%"
If {team::%player%} is "Purple":
send "Tu es maintenant dans l'équipe Rouge !" to player
add 1 to {team.Red}
add -1 to {team.Purple}
set {team::%player%} to Red
execute console command "/scoreboard teams join Red %player%"
If {team::%player%} is "Cyan":
send "Tu es maintenant dans l'équipe Rouge !" to player
add 1 to {team.Red}
add -1 to {team.cyan}
set {team.%player%} to Red
execute console command "/scoreboard teams join Red %player%"
If {team::%player%} is "Gray":
send "Tu es maintenant dans l'équipe Rouge !" to player
add 1 to {team.Red}
add -1 to {team.gray}
set {team::%player%} to Red
execute console command "/scoreboard teams join Red %player%"
stop trigger
If {team::%player%} is not set:
send "3"
add 1 to {team.red}
set {team.%player%} to red
execute console command "/scoreboard teams join Red %player%"
send "Tu es maintenant dans l'équipe Rouge !" to player
stop trigger