Guest User

"SpeedSwap" Scenario

a guest
Mar 29th, 2016
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.36 KB | None | 0 0
  1. # /r/ultrahardcore scenario
  2. # "Speed Swap"
  3. # Concept by /u/ThePeridotKnight
  4. # Skript by /u/PenguinDJ
  5.  
  6. options:
  7. P: &8[&b&lSpeed&3&lSwap&8]&7
  8.  
  9. command /speedswap [<text>] [<text>]:
  10. usage: &7/speedswap help
  11. aliases: /sswap, /speeds, /ss
  12. permission: skript.op
  13. trigger:
  14. if arg 1 is not set:
  15. if {speedswap} is true:
  16. send "{@P} Speed Swap is currently &aenabled&7."
  17. if {speedswap} is false:
  18. send "{@P} Speed Swap is currently &cdisabled&7."
  19. if arg 1 is "enable":
  20. set {speedswap} to true
  21. broadcast "{@P} Speed Swap has been &aenabled&7."
  22. if arg 1 is "disable":
  23. set {speedswap} to false
  24. set {speedstatus} to none
  25. set {sspotions} to on
  26. broadcast "{@P} Speed Swap has been &cdisabled&7."
  27. remove swiftness from all players
  28. remove slowness from all players
  29. if arg 1 is "toggle":
  30. if {speedswap} is true:
  31. set {speedswap} to false
  32. set {speedstatus} to none
  33. set {sspotions} to on
  34. broadcast "{@P} Speed Swap has been &cdisabled&7."
  35. remove swiftness from all players
  36. remove slowness from all players
  37. stop
  38. if {speedswap} is false:
  39. set {speedswap} to true
  40. broadcast "{@P} Speed Swap has been &aenabled&7."
  41. stop
  42. if arg 1 is "start":
  43. if {speedswap} is true:
  44. set {speedstatus} to speed
  45. broadcast "{@P} Speed Swap has been activated! For info: &b/ssinfo"
  46. broadcast "{@P} You have received &b&lSpeed I&7."
  47. remove slowness from all players
  48. apply swiftness 1 to all players for 20 days
  49. if {speedswap} is false:
  50. send "{@P} You must enable the scenario first."
  51. if arg 1 is "speed":
  52. if {speedswap} is true:
  53. set {speedstatus} to speed
  54. broadcast "{@P} You have received &b&lSpeed I&7."
  55. remove slowness from all players
  56. apply swiftness 1 to all players for 20 days
  57. if {speedswap} is false:
  58. send "{@P} You must enable the scenario first."
  59. if arg 1 is "slow":
  60. if {speedswap} is true:
  61. set {speedstatus} to slow
  62. broadcast "{@P} You have received &3&lSlowness I&7."
  63. remove swiftness from all players
  64. apply slowness 1 to all players for 20 days
  65. if {speedswap} is false:
  66. send "{@P} You must enable the scenario first!"
  67. if arg 1 is "potions":
  68. if {speedswap} is true:
  69. if arg 2 is "on":
  70. set {sspotions} to on
  71. broadcast "{@P} Sugar for Speed Potions &acan &7be crafted."
  72. if arg 2 is "off":
  73. set {sspotions} to off
  74. broadcast "{@P} Sugar for Speed Potions &ccannot &7be crafted."
  75. if {speedswap} is false:
  76. send "{@P} You must enable the scenario first."
  77. if arg 1 is "clear":
  78. if {speedswap} is true:
  79. set {speedstatus} to none
  80. remove swiftness from all players
  81. remove slowness from all players
  82. broadcast "{@P} Speed Swap effects have been removed."
  83. if arg 1 is "help":
  84. send " &8-=+=- {@P} &7Host Commands &8-=+=-"
  85. send " &8»&b /speedswap <enable:disable> &8»&7 Enable/disable Speed Swap"
  86. send " &8»&b /speedswap start &8»&7 Give Speed effect and show game info"
  87. send " &8»&b /speedswap <speed:slow> &8»&7 Give Speed/Slowness effect"
  88. send " &8»&b /speedswap potions <on:off> &8»&7 Toggles crafting of sugar"
  89.  
  90. command /ssinfo:
  91. usage: /ssinfo
  92. trigger:
  93. send " &8-=+=- {@P} &7Information &8-=+=-"
  94. send " &8»&7 All players are given &bSpeed I&7."
  95. send " &8»&7 When a player dies, that effect switches to &bSlowness I&7."
  96. send " &8»&7 When another player dies, the effect switches back to &bSpeed I&7."
  97. send " &8»&7 This goes on and on until the game ends."
  98. send " &8»&7 Milk will not clear Speed/Slowness."
  99. if {sspotions} is off:
  100. send " &8»&7 Speed Potions are &cdisabled&7."
  101. if {sspotions} is on:
  102. send " &8»&7 Speed Potions are &aenabled&7."
  103. if {sspotions} is not set:
  104. send " &8»&7 Speed potions are &aenabled&7."
  105.  
  106. on join:
  107. if {speedswap} is true:
  108. if {speedstatus} is speed:
  109. send "{@P} You have received &b&lSpeed I&7."
  110. remove slowness from the player
  111. apply swiftness 1 to the player for 20 days
  112. if {speedstatus} is slow:
  113. send "{@P} You have received &3&lSlowness I&7."
  114. remove swiftness from the player
  115. apply slowness 1 to the player for 20 days
  116. if {speedstatus} is none:
  117. send "{@P} Speed Swap effects have been removed."
  118. remove swiftness from the player
  119. remove slowness from the player
  120.  
  121. on death of player:
  122. if {speedswap} is true:
  123. if {speedstatus} is speed:
  124. broadcast "{@P} You have received &3&lSlowness I&7."
  125. remove swiftness from all players
  126. apply slowness 1 to all players for 20 days
  127. set {speedstatus} to slow
  128. stop
  129. if {speedstatus} is slow:
  130. broadcast "{@P} You have received &b&lSpeed I&7."
  131. remove slowness from all players
  132. apply swiftness 1 to all players for 20 days
  133. set {speedstatus} to speed
  134. stop
  135.  
  136. on drink of milk bucket:
  137. if {speedswap} is true:
  138. if {speedstatus} is speed:
  139. wait 2 ticks
  140. apply swiftness 1 to the player for 20 days
  141. if {speedstatus} is slow:
  142. wait 2 ticks
  143. apply slowness 1 to the player for 20 days
  144.  
  145. on craft of sugar:
  146. if {speedswap} is true:
  147. if {sspotions} is off:
  148. cancel the event
  149. send "{@P} You can't craft this in Speed Swap!"
  150.  
  151. on respawn:
  152. if {speedswap} is true:
  153. if {speedstatus} is speed:
  154. wait 20 ticks
  155. apply swiftness 1 to the player for 20 days
  156. stop
  157. if {speedstatus} is slow:
  158. wait 20 ticks
  159. apply slowness 1 to the player for 20 days
  160. stop
  161. if {speedstatus} is none:
  162. send "{@P} Speed Swap effects have been removed."
  163.  
  164. # Q: Where do penguins go swimming?
  165. # A: At the South Pool!
Advertisement
Add Comment
Please, Sign In to add comment