Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /Muder [<text>]:
- trigger:
- if arg-1 is "join":
- if {Muder::start} is not set:
- if {Muder.much::*} contains Player:
- send "&8┃&aMuder &8| &e既に参加しています"
- else:
- add Player to {Muder.much::*}
- add 1 to {Muder::count}
- broadcast "&8┃&aMuder &8| &e%Player%さんが試合にエントリーしました"
- set the player's tablist name to "&6%Player%"
- if {Muder::countdown} is not set:
- set {Muder::countdown} to 30
- if {Muder::count} is more than 2:
- if {Muder::countstart} is not set:
- set {Muder::countstart} to "on"
- while {Muder::countdown} is more than 0:
- if {Muder::cancel} is "on":
- broadcast "&8┃&aMuder &8| &c参加人数が足りないためマッチングカウントをキャンセルさせました"
- delete {Muder::cancel}
- delete {Muder::countstart}
- set {Muder::countdown} to 30
- stop
- else:
- wait 1 second
- remove 1 from {Muder::countdown}
- loop all Players:
- set the loop-player's tablist name to "&f%loop-Player%"
- set {Muder::start} to "on"
- set {Muder::Muder} to random Player of {Muder.much::*}
- remove {Muder::Muder} from {Muder.much::*}
- set {Muder::hunter} to random Player of {Muder.much::*}
- remove {Muder::hunter} from {Muder.much::*}
- send "&8┃&aMuder &8| &eあなたの役職は &cMuder &eです" to {Muder::Muder}
- send "&8┃&aMuder &8| &eあなたの役職は &bHunter &eです" to {Muder::hunter}
- send "&8┃&aMuder &8| &eあなたの役職は &fInnocent &eです" to {Muder.much::*}
- set {_count} to random integer between 1 and 10
- if {_count} is between 1 and 3:
- set {_count} to random integer between 1 and 3
- if {_count} is 1:
- send ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement