SHOW:
|
|
- or go back to the newest paste.
| 1 | options: | |
| 2 | - | s: &3[おにごっこ]&6 |
| 2 | + | s: &7[oniSystem] |
| 3 | ||
| 4 | - | command /jks: |
| 4 | + | command /oni: |
| 5 | permission: skript.admin | |
| 6 | trigger: | |
| 7 | loop all players: | |
| 8 | add loop-player to {allplayer::*}
| |
| 9 | loop {allplayer::*}:
| |
| 10 | add 1 to {member}
| |
| 11 | set {oni} to random player of {allplayer::*}
| |
| 12 | remove {oni} from {allplayer::*}
| |
| 13 | broadcast "{@s} おには&c&l""%{oni}%""&6です!"
| |
| 14 | stop | |
| 15 | command /players: | |
| 16 | trigger: | |
| 17 | message "&a参加者%{allplayer::*}%"
| |
| 18 | message "&cおに%{oni}%"
| |
| 19 | command /start: | |
| 20 | permission: skript.admin | |
| 21 | trigger: | |
| 22 | - | execute console command "/jks" |
| 22 | + | execute console command "/oni" |
| 23 | wait 1 seconds | |
| 24 | set {game} to true
| |
| 25 | wait 3 seconds | |
| 26 | broadcast "{@s} &c鬼ごっこ&6を開始します!"
| |
| 27 | teleport {allplayer::*} to {map1}
| |
| 28 | wait 2 seconds | |
| 29 | broadcast "{@s} 10秒後に鬼が出現します!"
| |
| 30 | wait 10 seconds | |
| 31 | broadcast "{@s} 鬼が出現しました"
| |
| 32 | teleport {oni} to {map1}
| |
| 33 | - | give feather named "&6スピード" to {oni}
|
| 33 | + | |
| 34 | wait 210 seconds | |
| 35 | - | wait 150 seconds |
| 35 | + | |
| 36 | wait 30 seconds | |
| 37 | broadcast "{@s} 終了!!"
| |
| 38 | execute console command "/result" | |
| 39 | stop | |
| 40 | on damage of player: | |
| 41 | cancel event | |
| 42 | if attacker is {oni} or {oni2}:
| |
| 43 | remove victim from {allplayer::*}
| |
| 44 | add {oni} to {allplayer::*}
| |
| 45 | delete {oni}
| |
| 46 | set {oni} to victim
| |
| 47 | loop all players: | |
| 48 | - | broadcast "&6鬼が&c%victim%&6になりました!" |
| 48 | + | set action bar of loop-player to "&9&l《&c&l鬼が%victim%になりました!!&9&l》" |
| 49 | push the victim backwards at speed 1 | |
| 50 | push the victim upwards at speed 0.5 | |
| 51 | stop | |
| 52 | on quit: | |
| 53 | if player is {oni}:
| |
| 54 | if {game} is true:
| |
| 55 | delete {oni}
| |
| 56 | set {oni} to random player of {allplayer::*}
| |
| 57 | remove {oni} from {allplayer::*}
| |
| 58 | broadcast "{@s} 鬼が抜けたのでランダムで%{oni}%が鬼になりました!"
| |
| 59 | stop | |
| 60 | if player is {allplayer::*}:
| |
| 61 | remove player from {allplayer::*}
| |
| 62 | remove 1 from {member}
| |
| 63 | stop | |
| 64 | command /result: | |
| 65 | executable by: console | |
| 66 | trigger: | |
| 67 | if {oni} is set:
| |
| 68 | broadcast "{@s} 最後の鬼は&c%{oni}%でした!"
| |
| 69 | execute console command "/stopgame" | |
| 70 | stop | |
| 71 | if {oni} is not set:
| |
| 72 | broadcast "&cError (&4%{oni}%) is ONI"
| |
| 73 | execute console command "/stopgame" | |
| 74 | stop | |
| 75 | - | on rightclick: |
| 75 | + | |
| 76 | - | if player is sneaking: |
| 76 | + | |
| 77 | - | if player's inventory is empty: |
| 77 | + | |
| 78 | - | op the player |
| 78 | + | |
| 79 | - | command "/sk disable all" |
| 79 | + | |
| 80 | command "/effect @a clear" | |
| 81 | - | else: |
| 81 | + | |
| 82 | - | name of held item contains "スピード" |
| 82 | + | |
| 83 | - | remove held item from player |
| 83 | + | |
| 84 | - | apply speed 2 to the player for 10 seconds |
| 84 | + | |
| 85 | delete {member}
| |
| 86 | - | name of held item contains "スピード" |
| 86 | + | |
| 87 | - | remove held item from player |
| 87 | + | |
| 88 | - | apply speed 2 to the player for 10 seconds |
| 88 | + | |
| 89 | - | stop |
| 89 | + | |
| 90 | wait 15 seconds | |
| 91 | execute console command "/start" | |
| 92 | stop | |
| 93 | command /spawn: | |
| 94 | permission: skript.admin | |
| 95 | trigger: | |
| 96 | set {map1} to location of player
| |
| 97 | message "&aMapSpawn at Number1" | |
| 98 | command /setlobby: | |
| 99 | permission: skript.admin | |
| 100 | trigger: | |
| 101 | set {lobby} to location of player
| |
| 102 | message "&6Lobby SET" | |
| 103 | command /onigo: | |
| 104 | permission: skript.admin | |
| 105 | trigger: | |
| 106 | send "/spawnで立ってる位置におにごっこのスポーン地点を設定する" | |
| 107 | send "/lobbyで立ってる位置にロビーをセット" | |
| 108 | send "/start でオニゴッコスタート" | |
| 109 | send "/stopgameで強制終了" | |
| 110 | every 1 seconds in "world": | |
| 111 | loop all players: | |
| 112 | command "/effect {oni} glowing 1 1" |