Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /r/ultrahardcore scenario
- # "Speed Swap"
- # Concept by /u/ThePeridotKnight
- # Skript by /u/PenguinDJ
- options:
- P: &8[&b&lSpeed&3&lSwap&8]&7
- command /speedswap [<text>] [<text>]:
- usage: &7/speedswap help
- aliases: /sswap, /speeds, /ss
- permission: skript.op
- trigger:
- if arg 1 is not set:
- if {speedswap} is true:
- send "{@P} Speed Swap is currently &aenabled&7."
- if {speedswap} is false:
- send "{@P} Speed Swap is currently &cdisabled&7."
- if arg 1 is "enable":
- set {speedswap} to true
- broadcast "{@P} Speed Swap has been &aenabled&7."
- if arg 1 is "disable":
- set {speedswap} to false
- set {speedstatus} to none
- set {sspotions} to on
- broadcast "{@P} Speed Swap has been &cdisabled&7."
- remove swiftness from all players
- remove slowness from all players
- if arg 1 is "toggle":
- if {speedswap} is true:
- set {speedswap} to false
- set {speedstatus} to none
- set {sspotions} to on
- broadcast "{@P} Speed Swap has been &cdisabled&7."
- remove swiftness from all players
- remove slowness from all players
- stop
- if {speedswap} is false:
- set {speedswap} to true
- broadcast "{@P} Speed Swap has been &aenabled&7."
- stop
- if arg 1 is "start":
- if {speedswap} is true:
- set {speedstatus} to speed
- broadcast "{@P} Speed Swap has been activated! For info: &b/ssinfo"
- broadcast "{@P} You have received &b&lSpeed I&7."
- remove slowness from all players
- apply swiftness 1 to all players for 20 days
- if {speedswap} is false:
- send "{@P} You must enable the scenario first."
- if arg 1 is "speed":
- if {speedswap} is true:
- set {speedstatus} to speed
- broadcast "{@P} You have received &b&lSpeed I&7."
- remove slowness from all players
- apply swiftness 1 to all players for 20 days
- if {speedswap} is false:
- send "{@P} You must enable the scenario first."
- if arg 1 is "slow":
- if {speedswap} is true:
- set {speedstatus} to slow
- broadcast "{@P} You have received &3&lSlowness I&7."
- remove swiftness from all players
- apply slowness 1 to all players for 20 days
- if {speedswap} is false:
- send "{@P} You must enable the scenario first!"
- if arg 1 is "potions":
- if {speedswap} is true:
- if arg 2 is "on":
- set {sspotions} to on
- broadcast "{@P} Sugar for Speed Potions &acan &7be crafted."
- if arg 2 is "off":
- set {sspotions} to off
- broadcast "{@P} Sugar for Speed Potions &ccannot &7be crafted."
- if {speedswap} is false:
- send "{@P} You must enable the scenario first."
- if arg 1 is "clear":
- if {speedswap} is true:
- set {speedstatus} to none
- remove swiftness from all players
- remove slowness from all players
- broadcast "{@P} Speed Swap effects have been removed."
- if arg 1 is "help":
- send " &8-=+=- {@P} &7Host Commands &8-=+=-"
- send " &8»&b /speedswap <enable:disable> &8»&7 Enable/disable Speed Swap"
- send " &8»&b /speedswap start &8»&7 Give Speed effect and show game info"
- send " &8»&b /speedswap <speed:slow> &8»&7 Give Speed/Slowness effect"
- send " &8»&b /speedswap potions <on:off> &8»&7 Toggles crafting of sugar"
- command /ssinfo:
- usage: /ssinfo
- trigger:
- send " &8-=+=- {@P} &7Information &8-=+=-"
- send " &8»&7 All players are given &bSpeed I&7."
- send " &8»&7 When a player dies, that effect switches to &bSlowness I&7."
- send " &8»&7 When another player dies, the effect switches back to &bSpeed I&7."
- send " &8»&7 This goes on and on until the game ends."
- send " &8»&7 Milk will not clear Speed/Slowness."
- if {sspotions} is off:
- send " &8»&7 Speed Potions are &cdisabled&7."
- if {sspotions} is on:
- send " &8»&7 Speed Potions are &aenabled&7."
- if {sspotions} is not set:
- send " &8»&7 Speed potions are &aenabled&7."
- on join:
- if {speedswap} is true:
- if {speedstatus} is speed:
- send "{@P} You have received &b&lSpeed I&7."
- remove slowness from the player
- apply swiftness 1 to the player for 20 days
- if {speedstatus} is slow:
- send "{@P} You have received &3&lSlowness I&7."
- remove swiftness from the player
- apply slowness 1 to the player for 20 days
- if {speedstatus} is none:
- send "{@P} Speed Swap effects have been removed."
- remove swiftness from the player
- remove slowness from the player
- on death of player:
- if {speedswap} is true:
- if {speedstatus} is speed:
- broadcast "{@P} You have received &3&lSlowness I&7."
- remove swiftness from all players
- apply slowness 1 to all players for 20 days
- set {speedstatus} to slow
- stop
- if {speedstatus} is slow:
- broadcast "{@P} You have received &b&lSpeed I&7."
- remove slowness from all players
- apply swiftness 1 to all players for 20 days
- set {speedstatus} to speed
- stop
- on drink of milk bucket:
- if {speedswap} is true:
- if {speedstatus} is speed:
- wait 2 ticks
- apply swiftness 1 to the player for 20 days
- if {speedstatus} is slow:
- wait 2 ticks
- apply slowness 1 to the player for 20 days
- on craft of sugar:
- if {speedswap} is true:
- if {sspotions} is off:
- cancel the event
- send "{@P} You can't craft this in Speed Swap!"
- on respawn:
- if {speedswap} is true:
- if {speedstatus} is speed:
- wait 20 ticks
- apply swiftness 1 to the player for 20 days
- stop
- if {speedstatus} is slow:
- wait 20 ticks
- apply slowness 1 to the player for 20 days
- stop
- if {speedstatus} is none:
- send "{@P} Speed Swap effects have been removed."
- # Q: Where do penguins go swimming?
- # A: At the South Pool!
Advertisement
Add Comment
Please, Sign In to add comment