Simple scoreboard not appearing.

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

Rob

New Member
Jan 31, 2017
6
1
3
England
code_language.skript:
on join:
    wipe player's sidebar
    if {scoreboard.%player%} is not set:
        create a new simple scoreboard named "stats:%player%"
        set title of simple scoreboard "stats:%player%" to "&6&lGAME &8(&a%number of all players%&8/&a100&8)"
        set slot 7 of simple scoreboard "stats:%player%" to "&f"
        set slot 6 of simple scoreboard "stats:%player%" to "&8» &6&lStats"
        set slot 5 of simple scoreboard "stats:%player%" to "&aKills: &f%{kills.%player%}%"
        set slot 4 of simple scoreboard "stats:%player%" to "&aDeaths: &f%{deaths.%player%}%"
        set slot 3 of simple scoreboard "stats:%player%" to "&aKillstreak: &f%{killstreak.%player%}%"
        set slot 2 of simple scoreboard "stats:%player%" to "&aPoints: &f%{points.%player%}%"
        set slot 1 of simple scoreboard "stats:%player%" to "&f"
        set simple scoreboard of player to "stats:%player%"

every 10 ticks:
    loop all players:
        if {scoreboard.%loop-player%} is not set:
            create a new simple scoreboard named "stats:%loop-player%"
            set title of simple scoreboard "stats:%loop-player%" to "&6&lGAME &8(&a%number of all players%&8/&a100&8)"
            set slot 7 of simple scoreboard "stats:%loop-player%" to "&f"
            set slot 6 of simple scoreboard "stats:%loop-player%" to "&8» &6&lStats"
            set slot 5 of simple scoreboard "stats:%loop-player%" to "&aKills: &f%{kills.%loop-player%}%"
            set slot 4 of simple scoreboard "stats:%loop-player%" to "&aDeaths: &f%{deaths.%loop-player%}%"
            set slot 3 of simple scoreboard "stats:%loop-player%" to "&aKillstreak: &f%{killstreak.%loop-player%}%"
            set slot 2 of simple scoreboard "stats:%loop-player%" to "&aPoints: &f%{points.%loop-player%}%"
            set slot 1 of simple scoreboard "stats:%loop-player%" to "&f"
            set simple scoreboard of loop-player to "stats:%loop-player%"
Have absolutely no clue why this isn't working, anyone know?
 
Idk why there a problem but just take mine API Code. Its to easy to setup (Yaml File)


code_language.skript:
on script load:
    if existence of "plugins/Scoreboard/config.yml" is false:
        create file "plugins/Scoreboard/config.yml"
        set yaml value "Config.wait" from "../../Scoreboard/config.yml" to "20"
        set yaml value "Config.title" from "../../Scoreboard/config.yml" to "&6&lIm Titel!"
        set yaml value "Standart.1" from "../../Scoreboard/config.yml" to "This is a exmaple for line 1"
        set yaml value "Rolling.10" from "../../Scoreboard/config.yml" to "                 This is scrolling text"
      
on join:
    wait a ticks 
    while player is online:
        create a new simple scoreboard named "Scoreboard.%player%"
        set {_t} to yaml value "Config.title" from "../../Scoreboard/config.yml"
        set title of simple scoreboard "Scoreboard.%player%" to "%{_t}%"
        set {_w} to yaml value "Config.wait" from "../../Scoreboard/config.yml"
        set {_w} to {_w} parsed as number
        loop {_w} times:
            wait a ticks
        set {_s::*} to yaml nodes "Standart" from "../../Scoreboard/config.yml"
        loop {_s::*}:
            set {_a::%loop-value%} to yaml value "Standart.%loop-value%" from "../../Scoreboard/config.yml"
            replace all "(player)" with "%%player%%" in {_a::%loop-value%}
            replace all ";" with ":" in {_a::%loop-value%}
            set slot ("%loop-value%" parsed as number) of simple scoreboard "Scoreboard.%player%" to "%{_a::%loop-value%}%"         
        set slot 2 of simple scoreboard "Scoreboard.%player%" to " "
        set simple scoreboard of player to "Scoreboard.%player%"
        set {_s::*} to yaml nodes "Rolling" from "../../Scoreboard/config.yml"
        if {_s::*} is set:
            loop {_s::*}:
                set {_s::%loop-value%} to yaml value "Rolling.%loop-value%" from "../../Scoreboard/config.yml"
                set {_msg} to "%{_s::%loop-value%}%"
            loop (the length of {_msg}) times:
                wait 2 ticks
                set {_s} to subtext of {_msg} from characters loop-number to (loop-number + 25)
                set slot 2 of simple scoreboard "Scoreboard.%player%" to "%{_s}%"




Mine currently Yaml file look like this

code_language.skript:
Config:
  wait: '30' #Ticks!
  title: §6§lIm Titel!
Standart:
  '15': §e§l§m-§e§l§m-----------------
  '12': §e§l§m--§e§l§m----------------
  '10': §e§l§m---§e§l§m---------------
  '3': §e§l§m----§e§l§m--------------
  '1': §e§l§m------------------
  '14': §aIsland Level§8; §r0
  '13': §aIsland Member§8; §r0
  '11': §eBalance§8; §r0
  '9': §cPing§8; §r5
  '8': §cServer TPS§8; §r19.99
  '7': (player)
Rolling:
  '2': '                          www.TroubleSky.de/shop '#yes, i added here 16 space empty words. because its a rolling (Moving) Text
[/QUOTE]


1m7f48.gif

#Edit:

added Gif
 
Last edited by a moderator:
Idk why there a problem but just take mine API Code. Its to easy to setup (Yaml File)


code_language.skript:
on script load:
    if existence of "plugins/Scoreboard/config.yml" is false:
        create file "plugins/Scoreboard/config.yml"
        set yaml value "Config.wait" from "../../Scoreboard/config.yml" to "20"
        set yaml value "Config.title" from "../../Scoreboard/config.yml" to "&6&lIm Titel!"
        set yaml value "Standart.1" from "../../Scoreboard/config.yml" to "This is a exmaple for line 1"
        set yaml value "Rolling.10" from "../../Scoreboard/config.yml" to "                 This is scrolling text"
     
on join:
    wait a ticks
    while player is online:
        create a new simple scoreboard named "Scoreboard.%player%"
        set {_t} to yaml value "Config.title" from "../../Scoreboard/config.yml"
        set title of simple scoreboard "Scoreboard.%player%" to "%{_t}%"
        set {_w} to yaml value "Config.wait" from "../../Scoreboard/config.yml"
        set {_w} to {_w} parsed as number
        loop {_w} times:
            wait a ticks
        set {_s::*} to yaml nodes "Standart" from "../../Scoreboard/config.yml"
        loop {_s::*}:
            set {_a::%loop-value%} to yaml value "Standart.%loop-value%" from "../../Scoreboard/config.yml"
            replace all "(player)" with "%%player%%" in {_a::%loop-value%}
            replace all ";" with ":" in {_a::%loop-value%}
            set slot ("%loop-value%" parsed as number) of simple scoreboard "Scoreboard.%player%" to "%{_a::%loop-value%}%"        
        set slot 2 of simple scoreboard "Scoreboard.%player%" to " "
        set simple scoreboard of player to "Scoreboard.%player%"
        set {_s::*} to yaml nodes "Rolling" from "../../Scoreboard/config.yml"
        if {_s::*} is set:
            loop {_s::*}:
                set {_s::%loop-value%} to yaml value "Rolling.%loop-value%" from "../../Scoreboard/config.yml"
                set {_msg} to "%{_s::%loop-value%}%"
            loop (the length of {_msg}) times:
                wait 2 ticks
                set {_s} to subtext of {_msg} from characters loop-number to (loop-number + 25)
                set slot 2 of simple scoreboard "Scoreboard.%player%" to "%{_s}%"




Mine currently Yaml file look like this

code_language.skript:
Config:
  wait: '30' #Ticks!
  title: §6§lIm Titel!
Standart:
  '15': §e§l§m-§e§l§m-----------------
  '12': §e§l§m--§e§l§m----------------
  '10': §e§l§m---§e§l§m---------------
  '3': §e§l§m----§e§l§m--------------
  '1': §e§l§m------------------
  '14': §aIsland Level§8; §r0
  '13': §aIsland Member§8; §r0
  '11': §eBalance§8; §r0
  '9': §cPing§8; §r5
  '8': §cServer TPS§8; §r19.99
  '7': (player)
Rolling:
  '2': '                          www.TroubleSky.de/shop '#yes, i added here 16 space empty words. because its a rolling (Moving) Text
[/QUOTE]


1m7f48.gif

#Edit:

added Gif
Still doesn't work, really weird.
 
Status
Not open for further replies.