Aller au contenu

Messages recommandés

Posté(e)

Bonjour,

 

J'aimerais un script de Arrow, j'ai déjà fais un bout du code mais je ne sais pas comment faire la suite (il faut qu'il y a au moins 2 joueurs pour jouer... démarrer ou arrêter la partie etc....)

 

Merci

on damage:
   if victim is in world "arrow":
       if damage cause is fall:
           cancel event


on damage:
   if victim is in world "arrow":
       if damage cause is a projectile:
           if projectile is an arrow:
               kill victim
               if {arrow.%attacker%}>=25:
                   set {arrow.finish} to true
                   loop all players:
                       if loop-players is in world "arrow":
                           set gamemode of loop-players to creative
                           send "&a&l[Arrow] %attacker% &r&aa gagné la partie !" to loop-players
                           send "&a&l[Arrow] &r&aVotre score : &7{arrow.%loop-players%" to loop-players
                           wait 15 seconds
                           clear loop-players's inventory
                           clear {arrow.%loop-players%}
                           make loop-players execute command "/lobby"
               else:
                   send "&a&l[Arrow] &r&6Vous avez été tué par &7%attacker%" to victim
                   add 1 to {arrow.%attacker%}
                   wait 1 ticks
                   send "&a&l[Arrow] &r&6Vous avec tué &7%victim% (%{arrow.%attacker%}%)" to attacker
                   if {arrow.finish} is true:
                       loop all players:
                           if loop-players is in world "arrow":
                               set gamemode of loop-players to creative
                               send "&a&l[Arrow] %attacker% &r&aa gagné la partie !" to loop-players
                               send "&a&l[Arrow] &r&aVotre score : &7{arrow.%loop-players%" to loop-players
                               wait 15 seconds
                               clear loop-players's inventory
                               clear {arrow.%loop-players%}
                               make loop-players execute command "/lobby"





on death:
   if player is in world "arrow":
       wait 10 ticks
       force respawn victim

on respawn:
   teleport player to {arrow.spawn1} or {arrow.spawn2} or {arrow.spawn3} or {arrow.spawn4} or {arrow.spawn5}


command /arrow [<text>] [<text>]:
   trigger:
       if arg-1 is "stop":
           set {arrow.finish} to true
           send "&aLa partie sera fini quand un joueur sera mort"
           if arg-1 is "attente":
               if {arrow.attente} exists:
                   delete {arrow.attente}
                   wait 10 ticks
                   set {arrow.attente} to location of player
                   send "&a&l[Arrow] &r&aPoint d'attente créer !"
                   if arg-1 is "setspawn":
                       if arg-2 is "1":
                           set {arrow.spawn1} to location of player
                           if arg-2 is "2":
                               set {arrow.spawn2} to location of player
                               if arg-2 is "3":
                                   set {arrow.spawn3} to location of player
                                   if arg-2 is "4":
                                       set {arrow.spawn4} to location of player
                                       if arg-2 is "5":
                                           set {arrow.spawn5} to location of player
           else:
               if arg-1 is "join":
                   add 1 to {arrow.players}
                   teleport player to {arrow.attente}
                   send "&6Vous avez rejoins une partie de Arrow"
                   loop all players:
                       if loop-players is in world "arrow":



Posté(e)

A oui, merci beaucoup :)

 

J'ai des erreurs :

[12:22:12 INFO]: [skript] Reloading arrow.sk...
[12:22:12 ERROR]: Can't understand this condition/effect: play enderman teleport at location of player with pitch 1 (arrow.sk, line 56: play enderman teleport at location of player with pitch 1')
[12:22:13 ERROR]: 'with pitch 1' is not an entity type (arrow.sk, line 109: play enderman teleport at location of victim with pitch 1')
[12:22:13 ERROR]: 'with pitch 1' is not an entity type (arrow.sk, line 149: play enderman teleport at location of victim with pitch 1')
[12:22:14 ERROR]: There's no loop that matches 'loop-player-2 with pitch 1' (arrow.sk, line 184: play level up at loop-player-2 with pitch 1')
[12:22:14 ERROR]: Can't understand this condition/effect: play wolf howl at location of attacker with pitch 1 (arrow.sk, line 209: play wolf howl at location of attacker with pitch 1')
[12:22:14 ERROR]: Can't understand this condition/effect: play wolf howl at location of attacker with pitch 1 (arrow.sk, line 215: play wolf howl at location of attacker with pitch 1')
[12:22:15 INFO]: [skript] Encountered 6 errors while reloading arrow.sk!

×
×
  • 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.