Solved Bounty System

  • 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
just wondering if there are any errors : )
code_language.skript:
on first join:
    set {bounty::%player's uuid%} to 0

on death of player:
    if {bounty::%victim%} is 0:
        add 1 to {bounty::%attacker%}
        send "Bounty: " and {bounty::%attacker%}
    else if {bounty::%victim%} is greater than 0:
        remove {bounty::%victim%} from {bounty::%attacker%}
        send "Bounty: " and {bounty::%attacker%}
 
Python:
on first join:
    set {bounty::%player's uuid%} to 0

on death:
    if {bounty::%victim%} is 0:
        add 1 to {bounty::%attacker%}
        send "Bounty: " and {bounty::%attacker%} # to players or attacker? define it.
    else if {bounty::%victim%} is greater than 0:
        remove {bounty::%victim%} from {bounty::%attacker%}
        send "Bounty: " and {bounty::%attacker%} # to players or attacker? define it.


Check comments. You can't use "send" without telling skript who to send in death events. Because there is no player in on death. victim or attacker.
 
Python:
on first join:
    set {bounty::%player's uuid%} to 0

Change this to this:


Python:
on first join:
    set {bounty::%player%} to 0



I think this one is more efficent.