Solved I have been having problems with my skript

  • 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 community!

    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!

Meggy_Mode

Active Member
Aug 30, 2024
206
8
18
So i have been making a minecraft server and this variable wont work

set {bounty::%player’s uuid%} to 0

errors

Screen Shot 2024-08-29 at 7.07.41 PM.png

(full code)
code_language.skript:
on first join:

  set {points::%player's uuid%} to 0

  set {bounty::%player’s uuid%} to 0



on join:

    if {points::%player's uuid%} is not set:

        set {points::%player's uuid%} to 0

    set {points::%player's uuid%} to player's level

    if {bounty::%player’s uuid%} is not set:

        set {bounty::%player’s uuid%} to 0



 

on death:

    wait 1 tick

    if victim is a player:

        if attacker is a player:

            give 1 sunflower named "&x&F&4&B&3&1&0K&x&F&1&A&7&1&0i&x&E&D&9&A&1&0l&x&E&9&8&D&1&0l&x&E&5&8&0&0&Fe&x&E&1&7&4&0&Fr&x&D&D&6&7&0&F &x&D&A&5&A&0&FT&x&D&6&4&D&0&Eo&x&D&2&4&1&0&Ek&x&C&E&3&4&0&Ee&x&C&A&2&7&0&En" to attacker

            add 1 to {kills::%attacker's uuid%}

            add 1 to {deaths::%victim's uuid%}

            #add {bounty::%victim’s uuid%} to {bounty::%attacker’s uuid%}

            add {bounty::%victim's uuid%} * -1 to {bounty::%victim's uuid%}



on death:

    if victim is a player:

        if attacker is a player:

            if {kills::%attacker's uuid%} is greater than 50:

                add 1 to {_bounty}

                send "&8&lYou have gained 1 bounty"

            if {_bounty} is greater than 200:

                send "&8&lYou Have Become An Outcast"







on damage:

    victim is goat

    attacker is a player:

        add 1 to attacker's level



on level change:

    if player's level is greater than 0:

        set {points::%player's uuid%} to player's level





on join:

    if {kills::%player's uuid%} is not set:

        set {kills::%player's uuid%} to 0

    if {deaths::%player's uuid%} is not set:

        set {deaths::%player's uuid%} to 0

    while player is online:

        if {points::%player's uuid%} is not set:

            set {points::%player's uuid%} to 0

        set title of player's scoreboard to "&x&0&8&4&C&F&BB&x&1&A&5&F&F&Be&x&2&D&7&1&F&Bt&x&3&F&8&4&F&Ct&x&5&1&9&6&F&Ce&x&6&4&A&9&F&Cr &x&8&8&C&E&F&DP&x&9&B&E&0&F&DV&x&A&D&F&3&F&DP"

        set line 5 of player's scoreboard to "&8 "

        set line 6 of player's scoreboard to "&7IP:"

        set line 4 of player's scoreboard to "&fGoat Points: &e%{points::%player's uuid%}%"

        set line 3 of player's scoreboard to "&fKills: %{kills::%player's uuid%}%"

        set line 2 of player's scoreboard to "&fDeaths: %{deaths::%player's uuid%}%"

        set line 1 of player's scoreboard to "&b%player%"

        wait 1 second



on death:

    if victim is a player:

        add 1 to {kills::%attacker's uuid%}

        add 1 to {deaths::%victim's uuid%}



command /ScoreboardReset:

    permission: score.reset

    trigger:

        add -1 * {points::%player's uuid%} to player's level

        set {points::%player's uuid%} to 0

        set {deaths::%player's uuid%} to 0

        set {kills::%player's uuid%} to 0

        send "&6Reset Scorebord"
 
Hey, you had a spelling mistake, but I fixed all the errors for you. I hope that helps! ^^

CSS:
on join:
    if {points::%player's uuid%} is not set:
        set {points::%player's uuid%} to 0
    set {points::%player's uuid%} to player's level
    if {bounty::%player's uuid%} is not set:
        set {bounty::%player's uuid%} to 0


 
on death:
    wait 1 tick
    if victim is a player:
        if attacker is a player:
            give 1 sunflower named "&x&F&4&B&3&1&0K&x&F&1&A&7&1&0i&x&E&D&9&A&1&0l&x&E&9&8&D&1&0l&x&E&5&8&0&0&Fe&x&E&1&7&4&0&Fr&x&D&D&6&7&0&F &x&D&A&5&A&0&FT&x&D&6&4&D&0&Eo&x&D&2&4&1&0&Ek&x&C&E&3&4&0&Ee&x&C&A&2&7&0&En" to attacker
            add 1 to {kills::%attacker's uuid%}
            add 1 to {deaths::%victim's uuid%}
            #add {bounty::%victim’s uuid%} to {bounty::%attacker’s uuid%}
            add {bounty::%victim's uuid%} * -1 to {bounty::%victim's uuid%}


on death:
    if victim is a player:
        if attacker is a player:
            if {kills::%attacker's uuid%} is greater than 50:
                add 1 to {_bounty}
                send "&8&lYou have gained 1 bounty" to attacker
            if {_bounty} is greater than 200:
                send "&8&lYou Have Become An Outcast" to attacker






on damage:
    victim is goat
    attacker is a player:
        add 1 to attacker's level


on level change:
    if player's level is greater than 0:
        set {points::%player's uuid%} to player's level




on join:
    if {kills::%player's uuid%} is not set:
        set {kills::%player's uuid%} to 0
    if {deaths::%player's uuid%} is not set:
        set {deaths::%player's uuid%} to 0
    while player is online:
        if {points::%player's uuid%} is not set:
            set {points::%player's uuid%} to 0
        set title of player's scoreboard to "&x&0&8&4&C&F&BB&x&1&A&5&F&F&Be&x&2&D&7&1&F&Bt&x&3&F&8&4&F&Ct&x&5&1&9&6&F&Ce&x&6&4&A&9&F&Cr &x&8&8&C&E&F&DP&x&9&B&E&0&F&DV&x&A&D&F&3&F&DP"
        set line 5 of player's scoreboard to "&8 "
        set line 6 of player's scoreboard to "&7IP:"
        set line 4 of player's scoreboard to "&fGoat Points: &e%{points::%player's uuid%}%"
        set line 3 of player's scoreboard to "&fKills: %{kills::%player's uuid%}%"
        set line 2 of player's scoreboard to "&fDeaths: %{deaths::%player's uuid%}%"
        set line 1 of player's scoreboard to "&b%player%"
        wait 1 second


on death:
    if victim is a player:
        add 1 to {kills::%attacker's uuid%}
        add 1 to {deaths::%victim's uuid%}


command /ScoreboardReset:
    permission: score.reset
    trigger:
        add -1 * {points::%player's uuid%} to player's level
        set {points::%player's uuid%} to 0
        set {deaths::%player's uuid%} to 0
        set {kills::%player's uuid%} to 0
        send "&6Reset Scorebord"