Bonjour, j'ai créer un skript qui séléctionne un joueur aléatoire dans un monde maintenant je ne sais pas comment give un item au joueur restant (les joueurs qui n'ont pas été séléctionner)
voila le code
command /random:
trigger:
if player is in "world":
clear player's inventory
loop all players:
add loop-player to {_WAW::*}
set {_nombre} to 1
loop 1 times:
set {joueur%{_nombre}%} to random element out of {_WAW::*}
remove {joueur%{_nombre}%} from {_WAW::*}
add 1 to {_nombre}
set slot 0 of {joueur1} to diamond sword of sharpness 100 and unbreaking 100 with name "&cL'arme du loup"
equip {joueur1} with golden chestplate of protection 100 and unbreaking 100
equip {joueur1} with golden helmet of protection 100 and unbreaking 100
equip {joueur1} with golden leggings of protection 100 and unbreaking 100
equip {joueur1} with golden boots of protection 100 and unbreaking 100
message "&cLe loup est: %{joueur1}%"
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.
Question
ambroiselebs
Version de Minecraft : 1.8.0
Version de Skript : 2.1.2
Addons utilisés: Umbaska, SkRayFall, SkQuery, RandomSK.
Type du skript : Séléctionner des joueurs
Description du script :
Bonjour, j'ai créer un skript qui séléctionne un joueur aléatoire dans un monde maintenant je ne sais pas comment give un item au joueur restant (les joueurs qui n'ont pas été séléctionner)
voila le code
command /random:
trigger:
if player is in "world":
clear player's inventory
loop all players:
add loop-player to {_WAW::*}
set {_nombre} to 1
loop 1 times:
set {joueur%{_nombre}%} to random element out of {_WAW::*}
remove {joueur%{_nombre}%} from {_WAW::*}
add 1 to {_nombre}
set slot 0 of {joueur1} to diamond sword of sharpness 100 and unbreaking 100 with name "&cL'arme du loup"
equip {joueur1} with golden chestplate of protection 100 and unbreaking 100
equip {joueur1} with golden helmet of protection 100 and unbreaking 100
equip {joueur1} with golden leggings of protection 100 and unbreaking 100
equip {joueur1} with golden boots of protection 100 and unbreaking 100
message "&cLe loup est: %{joueur1}%"
4 réponses à cette question
Messages recommandés