How to Animate scoreboard

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

Status
Not open for further replies.

Adrihun

Member
Feb 1, 2017
368
6
0
I have a really simple scoreboard script. How do i make it animated like those fancy servers do with the server name in the top part of the scoreboard ?

code_language.skript:
on join:
    set name of sidebar of player to "Server"
    set score "lol" in sidebar of player to
1
(I Only want to animate the server name)
6f32130f172383f84d91b11e544f4198cfe45681
 
I have a really simple scoreboard script. How do i make it animated like those fancy servers do with the server name in the top part of the scoreboard ?

code_language.skript:
on join:
    set name of sidebar of player to "Server"
    set score "lol" in sidebar of player to
1
(I Only want to animate the server name)
6f32130f172383f84d91b11e544f4198cfe45681


Just do while.

code_language.skript:
on join:
    while player is online:
        set name of sidebar of player to "&6S&8erver"
        set score "lol" in sidebar of player to
        wait 10 ticks
        set name of sidebar of player to "&6Se&8rver"
        wait 10 ticks
        set name of sidebar of player to "&6Ser&8ver"
#contiue it

btw you maybe try with my "Api Scoreboard"

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}%"
#btw mine Yaml look like this
YAML:
Config:
  wait: '30'
  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 '
 
Thank you!
[doublepost=1491925956,1491879759][/doublepost]@ChisleLP


If a player leaves this happens. Help?

code_language.skript:
[16:52:06 ERROR]: [Skript] The player is not online!
[16:52:06 ERROR]: [Skript] The player is not online!
[16:52:06 ERROR]: [Skript] The player is not online!
[16:52:06 ERROR]: [Skript] The player is not online!
[16:52:06 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:08 ERROR]: [Skript] The player is not online!
[16:52:08 ERROR]: [Skript] The player is not online!
[16:52:08 ERROR]: [Skript] The player is not online!
[16:52:08 ERROR]: [Skript] The player is not online!
[16:52:08 ERROR]: [Skript] The player is not online!
[16:52:08 ERROR]: [Skript] The player is not online!
[16:52:09 ERROR]: [Skript] The player is not online!
[16:52:09 ERROR]: [Skript] The player is not online!
[16:52:09 ERROR]: [Skript] The player is not online!
[16:52:09 ERROR]: [Skript] The player is not online!
[16:52:09 ERROR]: [Skript] The player is not online!
[16:52:10 ERROR]: [Skript] The player is not online!
[16:52:10 ERROR]: [Skript] The player is not online!
[16:52:10 ERROR]: [Skript] The player is not online!
[16:52:10 ERROR]: [Skript] The player is not online!
[16:52:11 ERROR]: [Skript] The player is not online!
[16:52:11 ERROR]: [Skript] The player is not online!
[16:52:11 ERROR]: [Skript] The player is not online!
[16:52:12 ERROR]: [Skript] The player is not online!
[16:52:12 ERROR]: [Skript] The player is not online!
[16:52:12 ERROR]: [Skript] The player is not online!
[doublepost=1491959218][/doublepost]bump
 
Thank you!
[doublepost=1491925956,1491879759][/doublepost]@ChisleLP


If a player leaves this happens. Help?

code_language.skript:
[16:52:06 ERROR]: [Skript] The player is not online!
[16:52:06 ERROR]: [Skript] The player is not online!
[16:52:06 ERROR]: [Skript] The player is not online!
[16:52:06 ERROR]: [Skript] The player is not online!
[16:52:06 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:07 ERROR]: [Skript] The player is not online!
[16:52:08 ERROR]: [Skript] The player is not online!
[16:52:08 ERROR]: [Skript] The player is not online!
[16:52:08 ERROR]: [Skript] The player is not online!
[16:52:08 ERROR]: [Skript] The player is not online!
[16:52:08 ERROR]: [Skript] The player is not online!
[16:52:08 ERROR]: [Skript] The player is not online!
[16:52:09 ERROR]: [Skript] The player is not online!
[16:52:09 ERROR]: [Skript] The player is not online!
[16:52:09 ERROR]: [Skript] The player is not online!
[16:52:09 ERROR]: [Skript] The player is not online!
[16:52:09 ERROR]: [Skript] The player is not online!
[16:52:10 ERROR]: [Skript] The player is not online!
[16:52:10 ERROR]: [Skript] The player is not online!
[16:52:10 ERROR]: [Skript] The player is not online!
[16:52:10 ERROR]: [Skript] The player is not online!
[16:52:11 ERROR]: [Skript] The player is not online!
[16:52:11 ERROR]: [Skript] The player is not online!
[16:52:11 ERROR]: [Skript] The player is not online!
[16:52:12 ERROR]: [Skript] The player is not online!
[16:52:12 ERROR]: [Skript] The player is not online!
[16:52:12 ERROR]: [Skript] The player is not online!
[doublepost=1491959218][/doublepost]bump

Does that happen when ONE player leaves?

EDIT: put
code_language.skript:
if player is not online:
    stop
before and after every 'wait'
 
Does that happen when ONE player leaves?

EDIT: put
code_language.skript:
if player is not online:
    stop
before and after every 'wait'
[16:02:54 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (scoreboard.sk, line 294: if player is not online:')

code_language.skript:
        if player is not online:
        stop
        wait 20 ticks
        if player is not online:
        stop
 
[16:02:54 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (scoreboard.sk, line 294: if player is not online:')

code_language.skript:
        if player is not online:
        stop
        wait 20 ticks
        if player is not online:
        stop
Ok, well, you need to indent 'stop'

What happens now is that it just stops after the stop. You don't want that.
 
  • Like
Reactions: Adrihun
Status
Not open for further replies.