Aller au contenu
  • 0

Stopper tout les programmes


Question

Posté(e) (modifié)

Bonjour / Bonsoir.

 

Skript : 2.1.2

Minecraft : 1.7.10

Addons: SKQuery, SKExtras, Umbaska, SpecialSkript (Addons Perso), WildSkript, SkriptOras1.1.0 (Addons Perso)

Cauldron 1..7.10

 

Je cherche actuellement à arrêter tout un programme.

Je m'explique, un long programme de progression d'un virus en en cours et je cherche à l’arrêter.

J'ai essayé de mettre un "stop" mais cela ne sert qu'à interrompre la suite du programme et non sa totalité. Voici le code :

 

command /startvirus [<text>]:
   trigger:
       if arg 1 is not set:
           make player execute command "/§virus0"
           wait 4 seconds
           if {infection.%uuid of player%} is true:
               make player execute command "/§virus1"
               wait 4 seconds
               if {infection.%uuid of player%} is true:
                   make player execute command "/§virus2"
                   wait 4 seconds
                   if {infection.%uuid of player%} is true:
                       make player execute command "/§virus3"
                       wait 4 seconds
                       if {infection.%uuid of player%} is true:
                           make player execute command "/§virus4"
                           wait 4 seconds
                           if {infection.%uuid of player%} is true:
                               make player execute command "/§virus5"
                               wait 4 seconds
                               if {infection.%uuid of player%} is true:
                                   make player execute command "/§virus6"
                                   wait 4 seconds
                                   if {infection.%uuid of player%} is true:
                                       make player execute command "/§virus7"
                                       wait 4 seconds
                                       if {infection.%uuid of player%} is true:
                                           make player execute command "/§virus8"
                                           wait 4 seconds
                                           if {infection.%uuid of player%} is true:
                                               make player execute command "/§virus9"
                                               wait 4 seconds
                                               if {infection.%uuid of player%} is true:
                                                   make player execute command "/§virus10"
                                                   wait 4 seconds
                                                   if {infection.%uuid of player%} is true:
                                                       make player execute command "/§virus11"
                                                       wait 4 seconds
                                                       if {infection.%uuid of player%} is true:
                                                           make player execute command "/§virus12"
                                                           wait 4 seconds
                                                           if {infection.%uuid of player%} is true:
                                                               make player execute command "/§virus13"
                                                               wait 4 seconds
                                                               if {infection.%uuid of player%} is true:
                                                                   make player execute command "/§virus14"
                                                                   wait 4 seconds
                                                                   if {infection.%uuid of player%} is true:
                                                                       make player execute command "/§virus15"
                                                                       wait 4 seconds
                                                                       if {infection.%uuid of player%} is true:
                                                                           make player execute command "/§virus16"
                                                                           wait 4 seconds
                                                                           if {infection.%uuid of player%} is true:
                                                                               make player execute command "/§virus17"
                                                                           else:
                                                                               stop
                                                                       else:
                                                                           stop
                                                                   else:
                                                                       stop
                                                               else:
                                                                   stop
                                                           else:
                                                               stop
                                                       else:
                                                           stop
                                                   else:
                                                       stop
                                               else:
                                                   stop
                                           else:
                                               stop
                                       else:
                                           stop
                                   else:
                                       stop
                               else:
                                   stop
                           else:
                               stop
                       else:
                           stop
                   else:
                       stop
               else:
                   stop
           else:
               stop
       else:
           if arg 1 is "stop":
               stop

 

Mon but est donc d’arrêter totalement ce programme.

Dans l’espoir que vous pourrez m'aider, Dram.

Modifié par Invité

12 réponses à cette question

Messages recommandés

  • 0
Posté(e) (modifié)

Mets sa ...

command /inf [<player>]:
    trigger:
       if arg 1 is set:
           set {infection.%uuid of player%} to false
           message "Vous avez bien stopper l'infection de %arg 1%"

 

Ou

 command /inf:
    trigger:
       loop all players:
          set {infection.%%uuid of loop-player%} to false
          message "Vous avez bien stopper l'infection de toutes les personnes présentes sur le serveur"

Modifié par lazerda456
  • J'aime 1
  • 0
Posté(e) (modifié)
Nan vraiment stopper tout genre que l'infection ne progresse plu.

Bah mon code fonctionne tu verras ^^ Mets le sur ton serveur et l'infection va stoper

Modifié par lazerda456
  • J'aime 2
  • 0
Posté(e)
Désolé de relancer mais après des heures de recherches je n'ai toujours rien trouve de fonctionnel --'

Essaye ça (j'ai pas mal opti en même temps) :

command /startvirus [<text>]:
   trigger:
       if arg 1 is not set:
           make player execute command "/§virus0"
           set {_s} to 1
           while {infection.%uuid of player%} is true and {_s} is not 18:
               wait 4 seconds
               if {infection.%uuid of player%} is true:
                   make player execute command "/§virus%{_s}%"
               add 1 to {_s}

command /stopvirus:
   trigger:
       set {infection.%uuid of player%} to false

Et piter au lieu des "make player execute command" passe par des function :p

  • J'aime 1
Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • 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.