SHOW:
|
|
- or go back to the newest paste.
1 | variables: | |
2 | {%player%.coin} = 0 | |
3 | ||
4 | options: | |
5 | p: &e[&cTAG&e]&f | |
6 | max: 20 | |
7 | ||
8 | command /tagjoin: | |
9 | trigger: | |
10 | if {tagplayers::%player%} is not set: | |
11 | add {tagplayers::%player%} to player | |
12 | loop {tagplayers::*}: | |
13 | send "%{@p}% 鬼ごっこに参加しました" | |
14 | - | if loop-value-1 is more than or equal to 3: |
14 | + | if loop-value-1 is more than or equal to 2: |
15 | set {_player} to loop-index-1 | |
16 | send "%{@p}% &f30秒後にKIT選択を始めます。" to {_player} | |
17 | set {gamemode::tag} to true | |
18 | wait 30 seconds | |
19 | loop {tagplayers::*}: | |
20 | if loop-value-2 is more than or equal to 2: | |
21 | set {_player} to loop-index-2 | |
22 | send "%{@p}% &f60秒間でKIT選択を開始してください" to {_player} | |
23 | open chest with 3 rows named "&cKits" to {_player} | |
24 | format slot 12 of {_player} with green wool named "&fスタンダード" to close then run [make console execute command "kit %player% st"] | |
25 | if {tag.win.%{_player}%} is true: | |
26 | format slot 13 of {_player} with green wool named "&bスピーディ" with lore "&aUNLOCKED" to close then run [make console execute command "kit %player% sp"] | |
27 | else if {tag.win.%{_player}%} is false or not set: | |
28 | format slot 13 of {_player} with red wool named "???" with lore "&cLocked" to be unstealable | |
29 | wait a minute | |
30 | set {tag} to random player out of all players | |
31 | execute {tag} command "/oni" | |
32 | set {_random} to random integer between 1 and {@max} | |
33 | teleport the {_player} to the location {tagspawn.%arg-1%.%{_random%} | |
34 | broadcast "&d鬼ごっこ戦を開始します!" | |
35 | broadcast "試合時間は5分間です!鬼は&c%{tag}%&fです!" | |
36 | broadcast "はじめ!" | |
37 | wait 5 minutes | |
38 | broadcast "終了!最後の鬼は&c%{tag}%<White>です" | |
39 | execute console command "/effect %{tag}% clear" | |
40 | send "&7===========|&6You Lose Get Coin 100|&7============" to {tag} | |
41 | delete {tagplayers::%{tag}%} | |
42 | add 100 to {%{tag}%.coin} | |
43 | loop {tagplayers::*}: | |
44 | set {_winner} to loop-index-3 | |
45 | send "&7===========|&6You Win Get Coin 500|&7============" to {_winner} | |
46 | add 500 to {%{_winner}%.coin} | |
47 | delete {tag} | |
48 | delete {tagplayers::*} | |
49 | else: | |
50 | send "%{@p}% すでに参加済みです" | |
51 | ||
52 | on death of player: | |
53 | {gamemode::tag} is true | |
54 | attacker is a player | |
55 | {tag} is attacker | |
56 | set {tag} to player | |
57 | broadcast "鬼が&c%player%&fになりました!" | |
58 | execute console command "/effect %attacker% clear" | |
59 | if {tag.kit.%attacker%} is "speady": | |
60 | apply Speed 1 to player for 1 day | |
61 | ||
62 | on respawn: | |
63 | execute player command "/oni" | |
64 | ||
65 | ||
66 | command /oni: | |
67 | trigger: | |
68 | {tag} is player | |
69 | wait 1 tick | |
70 | apply Strength 10 to player for 1 day | |
71 | apply Resistance 5 to player for 1 day | |
72 | apply Speed 2 to player for 1 day | |
73 | ||
74 | on quit: | |
75 | if {gamemode::tag} is true: | |
76 | if {tagplayers::%player%} is player: | |
77 | loop {tagplayers::*}: | |
78 | set {tag} to random player out of all players | |
79 | broadcast "鬼が&c%{tag}%&fになりました!" | |
80 | delete {tagplayers::%player%} | |
81 | ||
82 | command /kit <player> <text>: | |
83 | permission: skript.admin | |
84 | trigger: | |
85 | if arg-2 is "sp": | |
86 | set {tag.kit.%arg-1%} to "speady" | |
87 | apply Speed 1 to player for 1 day | |
88 | if arg-2 is "st": | |
89 | set {tag.kit.%arg-1%} to "standard" | |
90 | ||
91 | command /settagspawn <number>: | |
92 | permission: skript.admin | |
93 | trigger: | |
94 | - | set {tagspawn.%arg-1%} to location of player |
94 | + | set {tagspawn.%arg-1%} to location of player |
95 | send "&eここの地点をナンバー%arg-1%に追加しました。座標:%{tagspawn.%arg-1%}%" |