KOTH Skript Help!

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

iChinchillinq

Member
May 11, 2018
10
0
0
22
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.

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
 
code_language.skript:
if distance between player and {koth} is less than 3:
 
Status
Not open for further replies.