Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {%player%.coin} = 0
- options:
- max: 20
- command /tagjoin:
- trigger:
- if {tagplayers::%player%} is not set:
- add {tagplayers::%player%} to player
- loop {tagplayers::*}:
- send "&7[&4Tag&dSystem&7]&f鬼ごっこに参加しました"
- if loop-value-1 is more than or equal to 3:
- set {_player} to loop-index-1
- send "&7[&4Tag&dSystem&7]&f30秒後にKIT選択を始めます。" to {_player}
- set {gamemode::tag} to true
- wait 30 seconds
- loop {tagplayers::*}:
- if loop-value-2 is more than or equal to 2:
- set {_player} to loop-index-2
- send "&7[&4Tag&dSystem&7]&f60秒間でKIT選択を開始してください" to {_player}
- open chest with 3 rows named "&cKits" to {_player}
- format slot 12 of {_player} with green wool named "&fスタンダード" to close then run [make console execute command "kit %player% st"]
- if {tag.win.%{_player}%} is true:
- format slot 13 of {_player} with green wool named "&bスピーディ" with lore "&aUNLOCKED" to close then run [make console execute command "kit %player% sp"]
- else:
- format slot 13 of {_player} with red wool named "???" with lore "&cLocked" to be unstealable
- wait a minute
- set {tag} to random player out of all players
- execute {tag} command "/oni"
- set {_random} to random integer between 1 and {@max}
- teleport the {_player} to the location {tagspawn.%{_random}%}
- broadcast "&7[&4Tag&dSystem&7]&f&d鬼ごっこ戦を開始します!"
- broadcast "&7[&4Tag&dSystem&7]&f試合時間は5分間です!鬼は&c%{tag}%&fです!"
- broadcast "はじめ!"
- wait 5 minutes
- broadcast "&7[&4Tag&dSystem&7]&f終了!最後の鬼は&c%{tag}%<White>です"
- execute console command "/effect %{tag}% clear"
- send "&7===========|&6You Lose Get Coin 100|&7============" to {tag}
- delete {tagplayers::%{tag}%}
- add 100 to {%{tag}%.coin}
- loop {tagplayers::*}:
- set {_winner} to loop-index-3
- send "&7===========|&6You Win Get Coin 500|&7============" to {_winner}
- add 500 to {%{_winner}%.coin}
- delete {tag}
- delete {tagplayers::*}
- else:
- send "&7[&4Tag&dSystem&7]&fすでに参加済みです"
- on death of player:
- {gamemode::tag} is true
- attacker is a player
- {tag} is attacker
- set {tag} to player
- broadcast "&7[&4Tag&dSystem&7]&f鬼が&c%player%&fになりました!"
- execute console command "/effect %attacker% clear"
- if {tag.kit.%attacker%} is "speady":
- apply Speed 1 to player for 1 day
- on respawn:
- execute player command "/oni"
- command /oni:
- trigger:
- {tag} is player
- wait 1 tick
- apply Strength 10 to player for 1 day
- apply Resistance 5 to player for 1 day
- apply Speed 2 to player for 1 day
- on quit:
- if {gamemode::tag} is true:
- if {tagplayers::%player%} is player:
- loop {tagplayers::*}:
- set {tag} to random player out of all players
- broadcast "&7[&4Tag&dSystem&7]&f鬼が退出したため、&c%{tag}%&fになりました!"
- delete {tagplayers::%player%}
- command /kit <player> <text>:
- permission: skript.admin
- trigger:
- if arg-2 is "sp":
- if {%arg-1%.Speady} is false:
- set {tag.kit.%arg-1%} to "speady"
- apply Speed 1 to player for 1 day
- if arg-2 is "st":
- set {tag.kit.%arg-1%} to "standard"
- command /settagspawn <number>:
- permission: skript.admin
- trigger:
- set {tagspawn.%arg-1%} to location of player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement