"Stop " problem

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

wr we

New Member
Jun 7, 2020
5
0
1
I want to know why the "stop" on the bottom of the code doesn't work on singal player but works with the player have parties.

the video will show the problem
pastebin: https://pastebin.com/80EAUaHp
Code:
command /1:
   trigger:
       if {boss1} is true:
           if player is in party:
               if player is leader of party (party of player):
                   if online members of party (party of player) and leader of party (party of player) have permission "boss.1":
                       teleport online members of party (party of player) and leader of party (party of player) to location at 1, 11, 1 in world "world"
                       set {boss1} to false
                       apply blindness to player for 5 seconds
                       send online members of party (party of player) and leader of party (party of player) title "&c一之獄x" with subtitle "HAHAHAHA" for 5 seconds
                       wait 5 seconds
                       send online members of party (party of player) and leader of party (party of player) title "&c第一波戰鬥即將開始" with subtitle "" for 3 seconds
                       wait 3 seconds
                       send online members of party (party of player) and leader of party (party of player) title "&c3" with subtitle "" for 1 seconds
                       play "UI_BUTTON_CLICK" to online members of party (party of player) and leader of party (party of player) at volume 10
                       wait 1 seconds
                       send online members of party (party of player) and leader of party (party of player) title "&c2" with subtitle "" for 1 seconds
                       play "UI_BUTTON_CLICK" to online members of party (party of player) and leader of party (party of player) at volume 10
                       wait 1 seconds
                       send online members of party (party of player) and leader of party (party of player) title "&c1" with subtitle "" for 1 seconds
                       play "UI_BUTTON_CLICK" to online members of party (party of player) and leader of party (party of player) at volume 10
                       wait 1 seconds
                        
           else if player has permission "boss.1":
               teleport player to location at 1, 11, 1 in world "world"
               set {boss1} to false
               apply blindness to player for 5 seconds
               send player title "&c一之獄H" with subtitle "HAHAHAHA" for 5 seconds
               wait 5 seconds
               send player title "&c第一波戰鬥即將開始" with subtitle "" for 3 seconds
               wait 3 seconds
               send player title "&c3" with subtitle "" for 1 seconds
               wait 1 seconds
               send player title "&c2" with subtitle "" for 1 seconds
               wait 1 seconds
               send player title "&c1" with subtitle "" for 1 seconds
               wait 1 seconds
           else:
               message "no"
       else:
           message "no"
           set {boss1} to true
on death:
   if leader of party (party of player) is dead:
       message "隊長死亡,遊戲結束,請重新組隊" to online members of party (party of player)
       delete party (party of player)
   else if online members of party (party of player) is dead:
       teleport online members of party (party of player) to location at 1, 11, 1 in world "world"
       message "由於你隊伍中有人死亡,遊戲結束,請重新組隊" to online members of party (party of player)
       delete party (party of player)
   else:
       set the death message to "你已死亡,遊戲結束"
   stop
 
Status
Not open for further replies.