tsutitire2

Untitled

May 25th, 2020
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.13 KB | None | 0 0
  1. Variables:
  2. {SB.1} = 0
  3. {LA.1} = 0
  4. {LA.2} = 0
  5. {LA.3} = 0
  6. {LA.4} = 0
  7. {LA.5} = 0
  8. {LS.begin} = 0
  9. {LS.pc} = 0
  10. {%player%.LSaj} = 0
  11. {LS.gd} = 0
  12. {LS.sec} = 0
  13. {LS.ab} = 0
  14. {LS.sp1} = 0
  15. {LS.sp2} = 0
  16. command /lvs <text>:
  17. trigger:
  18. if arg 1 is "begin":
  19. if {LS.begin} is not 0:
  20. message "&c既に始まっています!"
  21. if {LS.begin} is 0:
  22. broadcast "&a&l地対空戦闘ゲームを始めます!&b&l /lvs join &a&lで参加できます!"
  23. set {LS.begin} to 1
  24. if arg 1 is "join":
  25. if {LS.begin} is 1:
  26. if {%player%.LSaj} is 1:
  27. message "&c既に参加しています!"
  28. if {%player%.LSaj} is 0:
  29. message "参加しました!"
  30. set {%player%.LSaj} to 1
  31. set {LS.pc} to {LS.pc} + 1
  32. if {LS.pc} is 1:
  33. broadcast "&a%player%さんが、&6爆撃機&aとして参加しました! [1/6]"
  34. set {SB.1} to player
  35. if {LS.pc} is 2:
  36. broadcast "&a%player%さんが、&6対空砲&aとして参加しました! [2/6]"
  37. set {LA.1} to player
  38. if {LS.pc} is 3:
  39. broadcast "&a%player%さんが、&6対空砲&aとして参加しました! [3/6]"
  40. set {LA.2} to player
  41. if {LS.pc} is 4:
  42. broadcast "&a%player%さんが、&6対空砲&aとして参加しました! [4/6]"
  43. set {LA.3} to player
  44. if {LS.pc} is 5:
  45. broadcast "&a%player%さんが、&6対空砲&aとして参加しました! [5/6]"
  46. set {LA.4} to player
  47. if {LS.pc} is 6:
  48. broadcast "&a%player%さんが、&6対空砲&aとして参加しました! [6/6]"
  49. set {LA.5} to player
  50. broadcast "&dまもなくゲームが始まります! テレポートまで...10sec"
  51. set {LS.begin} to 2
  52. wait 10 seconds
  53. broadcast "防衛側は、棒を右クリックして、拠点を配置してください!"
  54. execute console command "/give %{LA.1}% stick "
  55. execute console command "/give %{LA.2}% stick "
  56. execute console command "/give %{LA.3}% stick "
  57. execute console command "/give %{LA.4}% stick "
  58. execute console command "/give %{LA.5}% stick "
  59. teleport {LA.1} to {LS.sp1}
  60. teleport {LA.2} to {LS.sp1}
  61. teleport {LA.3} to {LS.sp1}
  62. teleport {LA.4} to {LS.sp1}
  63. teleport {LA.5} to {LS.sp1}
  64. On right click with stick:
  65. if {LS.begin} is 2:
  66. set {LS.ab} to {LS.ab} + 1
  67. execute console command "/clear %player% stick"
  68. execute console command "/execute %player% ~ ~ ~ summon villager_golem ~ ~1 ~ {PlayerCreated:0,Attributes:[{Name:generic.maxHealth,Base:100}],Health:100.0f,NoAI:1,Silent:1,Glowing:1b}"
  69. every seconds:
  70. set {LS.sec} to {LS.sec} + 1
  71. if {Ls.begin} is 2:
  72. if {LS.ab} is 5:
  73. set {Ls.begin} to 3
  74. broadcast "&e&l防衛側拠点配置完了しました! 続いて、攻勢側をテレポートします TPされ次第の開始となります! また、攻勢側は装備を手にしてください!"
  75. execute console command "/shot give %{SB.1}% ts-504"
  76. execute console command "/give %{SB.1}% elytra"
  77. teleport {SB.1} to {LS.sp2}
  78. if {Ls.begin} is 3:
  79. if {LS.gd} is 5:
  80. broadcast "&c&l攻勢側勝利!"
  81. broadcast "防: %{LA.1}% %{LA.2}% %{LA.3}% %{LA.4}% %{LA.5}% 攻: %{SB.1}%"
  82. execute console command "/clear @a iron_block"
  83. execute console command "/clear @a elytra"
  84. set {SB.1} to 0
  85. set {LA.1} to 0
  86. set {LA.2} to 0
  87. set {LA.3} to 0
  88. set {LA.4} to 0
  89. set {LA.5} to 0
  90. set {LS.begin} to 0
  91. set {LS.pc} to 0
  92. set {%{SB.1}%.LSaj} to 0
  93. set {%{LA.1}%.LSaj} to 0
  94. set {%{LA.2}%.LSaj} to 0
  95. set {%{LA.3}%.LSaj} to 0
  96. set {%{LA.4}%.LSaj} to 0
  97. set {%{LA.5}%.LSaj} to 0
  98. set {LS.gd} to 0
  99. set {LS.sec} to 0
  100. set {LS.ab} to 0
  101. set {LS.sp1} to 0
  102. set {LS.sp2} to 0
  103. if {LS.sec} is 360:
  104. broadcast "&c&l防衛側勝利!"
  105. broadcast "防: %{LA.1}% %{LA.2}% %{LA.3}% %{LA.4}% %{LA.5}% 攻: %{SB.1}%"
  106. execute console command "/clear @a iron_block"
  107. execute console command "/clear @a elytra"
  108. set {SB.1} to 0
  109. set {LA.1} to 0
  110. set {LA.2} to 0
  111. set {LA.3} to 0
  112. set {LA.4} to 0
  113. set {LA.5} to 0
  114. set {LS.begin} to 0
  115. set {LS.pc} to 0
  116. set {%{SB.1}%.LSaj} to 0
  117. set {%{LA.1}%.LSaj} to 0
  118. set {%{LA.2}%.LSaj} to 0
  119. set {%{LA.3}%.LSaj} to 0
  120. set {%{LA.4}%.LSaj} to 0
  121. set {%{LA.5}%.LSaj} to 0
  122. set {LS.gd} to 0
  123. set {LS.sec} to 0
  124. set {LS.ab} to 0
  125. set {LS.sp1} to 0
  126. set {LS.sp2} to 0
  127.  
  128. On death:
  129. if victim is iron golem:
  130. set {LS.gd} to {LS.gd} + 1
  131. command /lvssp <int>:
  132. permission: skript.admin
  133. trigger:
  134. if arg 1 is 1:
  135. set {LS.sp1} to player's location
  136. if arg 1 is 2:
  137. set {LS.sp2} to player's location
  138. command /resetlvs:
  139. trigger:
  140. set {SB.1} to 0
  141. set {LA.1} to 0
  142. set {LA.2} to 0
  143. set {LA.3} to 0
  144. set {LA.4} to 0
  145. set {LA.5} to 0
  146. set {LS.begin} to 0
  147. set {LS.pc} to 0
  148. set {%{SB.1}%.LSaj} to 0
  149. set {%{LA.1}%.LSaj} to 0
  150. set {%{LA.2}%.LSaj} to 0
  151. set {%{LA.3}%.LSaj} to 0
  152. set {%{LA.4}%.LSaj} to 0
  153. set {%{LA.5}%.LSaj} to 0
  154. set {LS.gd} to 0
  155. set {LS.sec} to 0
  156. set {LS.ab} to 0
  157. loop all players:
  158. set {%loop-player%.LSaj} to 0
Add Comment
Please, Sign In to add comment