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
the video will show the problem
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