So I've been testing out a King of The Hill Skript for a little while, and got it down to 2 errors, which I can't fix.
Here are my errors: http://prntscr.com/jgp21j
code_language.skript:
Variables:
{skoth} = false
{kmsg} = false
on walk on polished andesite:
if {skoth} is true:
if player's location is within 3 blocks of {koth}:
if size of {capping::*} is 1:
stop
else:
if size of {capping::*} is 0:
add player to {capping::*}
if {kmsg} is not true:
broadcast "&bVile &7» &c%player% &7is now capturing the KoTH! 30 Seconds Left!"
set {kmsg} to true
wait 15 seconds
if player is in {capping::*}:
broadcast "&bVile &7» &c%player% &7is capturing the KoTH! 15 Seconds Left!"
wait 15 seconds
if player is in {capping::*}:
broadcast "&bVile &7» &c%player% &7has captured the KoTH!"
execute console command "/cc give physical Enchanted 2 %player%"
set {skoth} to false
set {kmsg} to false
remove player from {capping::*}
on walk on grass:
if {skoth} is true:
if player is in {capping::*}:
if player's location is not within 3 blocks of {koth}:
if player's location is within 4 blocks of {koth}:
broadcast "&bVile &7» &c%player% &7is no longer capturing the KoTH!"
set {kmsg} to false
command /setkoth:
permission: rank.admin
permission message: &cInsufficient Permissions.
trigger:
set {koth} to player's location
send "&aSuccess! &7&o(Set The KoTH's Location to %player's location%!)"
command /startkoth:
permission: rank.admin
permission message: &cInsufficient Permissions.
trigger:
set {skoth} to true
broadcast "&bVile &7» A KoTH has begun at &c%{koth}%&b!"
command /endkoth:
permission: rank.admin
permission message: &cInsufficient Permissions.
trigger:
set {skoth} to false
set {kmsg} to false
delete {capping::*}
broadcast "&bVile &7» The KoTH was abruptly ended!"
command /koth:
trigger:
send "&bVile &7» The KoTH's location is &c%{koth}%&7!"
Here are my errors: http://prntscr.com/jgp21j