Guest User

Untitled

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