Advertisement
nunonuno_riku

TagSystem

Dec 1st, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 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. teleport the {_player} to the location {tagspawn.%{_random}%}
  33. broadcast "&7[&4Tag&dSystem&7]&f&d鬼ごっこ戦を開始します!"
  34. broadcast "&7[&4Tag&dSystem&7]&f試合時間は5分間です!鬼は&c%{tag}%&fです!"
  35. broadcast "はじめ!"
  36. wait 5 minutes
  37. broadcast "&7[&4Tag&dSystem&7]&f終了!最後の鬼は&c%{tag}%<White>です"
  38. execute console command "/effect %{tag}% clear"
  39. send "&7===========|&6You Lose Get Coin 100|&7============" to {tag}
  40. delete {tagplayers::%{tag}%}
  41. add 100 to {%{tag}%.coin}
  42. loop {tagplayers::*}:
  43. set {_winner} to loop-index-3
  44. send "&7===========|&6You Win Get Coin 500|&7============" to {_winner}
  45. add 500 to {%{_winner}%.coin}
  46. delete {tag}
  47. delete {tagplayers::*}
  48. else:
  49. send "&7[&4Tag&dSystem&7]&fすでに参加済みです"
  50.  
  51. on death of player:
  52. {gamemode::tag} is true
  53. attacker is a player
  54. {tag} is attacker
  55. set {tag} to player
  56. broadcast "&7[&4Tag&dSystem&7]&f鬼が&c%player%&fになりました!"
  57. execute console command "/effect %attacker% clear"
  58. if {tag.kit.%attacker%} is "speady":
  59. apply Speed 1 to player for 1 day
  60.  
  61. on respawn:
  62. execute player command "/oni"
  63.  
  64.  
  65. command /oni:
  66. trigger:
  67. {tag} is player
  68. wait 1 tick
  69. apply Strength 10 to player for 1 day
  70. apply Resistance 5 to player for 1 day
  71. apply Speed 2 to player for 1 day
  72.  
  73. on quit:
  74. if {gamemode::tag} is true:
  75. if {tagplayers::%player%} is player:
  76. loop {tagplayers::*}:
  77. set {tag} to random player out of all players
  78. broadcast "&7[&4Tag&dSystem&7]&f鬼が退出したため、&c%{tag}%&fになりました!"
  79. delete {tagplayers::%player%}
  80.  
  81. command /kit <player> <text>:
  82. permission: skript.admin
  83. trigger:
  84. if arg-2 is "sp":
  85. if {%arg-1%.Speady} is false:
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement