scoreboard 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.

lordgamadon

New Member
Apr 4, 2020
8
0
1
24
https://gyazo.com/d33843fdd26726e596c2d0ff645dcf0b

please help
then you are a sk legend!!!



Code:
options:
    max: 60

every 3 seconds:
    loop all players:
        set {_prefix:%loop-player%} to "%colored loop-player's prefix%"
        set {_ball} to "%loop-player's balance%"
        replace all "[" with "" in {_prefix:%loop-player%}
        replace all "]" with "" in {_prefix:%loop-player%}
        replace all "(" with "" in {_prefix:%loop-player%}
        replace all ")" with "" in {_prefix:%loop-player%}
        replace all " " with "" in {_prefix:%loop-player%}
        replace all "dollar" with "Kr" in {_ball}
        replace all "dollars" with "Kr" in {_ball}
        wipe loop-player's sidebar
        set name of sidebar of loop-player to "&7&l[&c&lO&7&l]"
        set score "&8&m&m----------------------" in sidebar of loop-player to 11
        set score "&e&l%loop-player%:" in sidebar of loop-player to 10
        set score "&a" in sidebar of loop-player to 9
        set score "&6> &eOnline: &6%number of all players%&e/&6{@max}" in sidebar of loop-player to 2
        set score "&a" in sidebar of loop-player to 7
        set score "&6> &eBal: &6%{_ball}%" in sidebar of loop-player to 6
        set score "&d" in sidebar of loop-player to 3
        set score "&6> &eRank: %{_prefix:%loop-player%}%" in sidebar of loop-player to 8
        set score "&d" in sidebar of loop-player to 5
        set score "&6> &6Kills: %{Kills.%player%}%" in sidebar of loop-player to 3
        set score "&8&m----------------------" in sidebar of loop-player to 0


on first join:
    set {Kills::%player%} to 0
    set {deaths::%player%} to 0


on death:
    if attacker is a player:
        add 1 to {Kills.%attacker%}
        add 1 to {deaths.%victim%}

if {Kills.%player%} is not set:
    set {Kills.%player%} to 0
 
https://gyazo.com/d33843fdd26726e596c2d0ff645dcf0b

please help
then you are a sk legend!!!



Code:
options:
    max: 60

every 3 seconds:
    loop all players:
        set {_prefix:%loop-player%} to "%colored loop-player's prefix%"
        set {_ball} to "%loop-player's balance%"
        replace all "[" with "" in {_prefix:%loop-player%}
        replace all "]" with "" in {_prefix:%loop-player%}
        replace all "(" with "" in {_prefix:%loop-player%}
        replace all ")" with "" in {_prefix:%loop-player%}
        replace all " " with "" in {_prefix:%loop-player%}
        replace all "dollar" with "Kr" in {_ball}
        replace all "dollars" with "Kr" in {_ball}
        wipe loop-player's sidebar
        set name of sidebar of loop-player to "&7&l[&c&lO&7&l]"
        set score "&8&m&m----------------------" in sidebar of loop-player to 11
        set score "&e&l%loop-player%:" in sidebar of loop-player to 10
        set score "&a" in sidebar of loop-player to 9
        set score "&6> &eOnline: &6%number of all players%&e/&6{@max}" in sidebar of loop-player to 2
        set score "&a" in sidebar of loop-player to 7
        set score "&6> &eBal: &6%{_ball}%" in sidebar of loop-player to 6
        set score "&d" in sidebar of loop-player to 3
        set score "&6> &eRank: %{_prefix:%loop-player%}%" in sidebar of loop-player to 8
        set score "&d" in sidebar of loop-player to 5
        set score "&6> &6Kills: %{Kills.%player%}%" in sidebar of loop-player to 3
        set score "&8&m----------------------" in sidebar of loop-player to 0


on first join:
    set {Kills::%player%} to 0
    set {deaths::%player%} to 0


on death:
    if attacker is a player:
        add 1 to {Kills.%attacker%}
        add 1 to {deaths.%victim%}

if {Kills.%player%} is not set:
    set {Kills.%player%} to 0
First of all, you cannot do this:

upload_2020-4-11_18-4-27.png

You cannot place effects or conditions without having a trigger or event to execute it. This would be the correct thing:

code_language.skript:
on join:
    if {Kills.%player%} is not set:
        set {Kills.%player%} to 0

And please make the Scoreboard neat.
 
Status
Not open for further replies.