code_language.skript:
# ----------------------------------------------------
# An introduction to skRayFall's animated scoreboards
# ----------------------------------------------------
# Developed by: eyesniper2
# ----------------------------------------------------
# This skript is meant to give you an introduction
# to skRayFall's animated scoreboards
# ----------------------------------------------------
# Required Addons: skRayFall, skQuery
# ----------------------------------------------------
#Will make sure once skript starts the player count is synced up, even during reloads!
on Skript start:
set {playersOnline} to number of all players
on join:
add 1 to {playersOnline}
#Wait for the players world to load a bit, helps to smooth out the animation. Increase this if you have a player download a resource back.
wait 10 ticks
#Call the animation sub, you can also do this through fuctions!
invoke "joinAnimate" from player
#Also update all the players with new scoreboard data!
loop all players:
set score "&3Player's Online:" in sidebar of loop-player to {playersOnline}
on quit:
subtract 1 from {playersOnline}
loop all players:
set score "&3Player's Online:" in sidebar of loop-player to {playersOnline}
sub "joinAnimate":
set {_player} to parameter 1
#First frame/set up of scoreboard
set name of sidebar of {_player} to ">"
#Set more scores here if you want
set score "&3Player's Online:" in sidebar of {_player} to {playersOnline}
#Set the delay between the first frame and the next frame
wait 3 ticks
#All frames after the inital frame
set name of sidebar of {_player} to "s>"
wait 3 ticks
set name of sidebar of {_player} to "sk>"
wait 3 ticks
set name of sidebar of {_player} to "skR>"
wait 3 ticks
set name of sidebar of {_player} to "skRa>"
wait 3 ticks
set name of sidebar of {_player} to "skRay>"
wait 3 ticks
set name of sidebar of {_player} to "skRayF>"
wait 3 ticks
set name of sidebar of {_player} to "skRayFa>"
wait 3 ticks
set name of sidebar of {_player} to "skRayFal>"
wait 3 ticks
set name of sidebar of {_player} to "skRayFall>"
wait 3 ticks
set name of sidebar of {_player} to "&bskRayFall>"
wait 2 ticks
set name of sidebar of {_player} to "&3skRayFall>"
wait 2 ticks
set name of sidebar of {_player} to "&bskRayFall>"
wait 2 ticks
set name of sidebar of {_player} to "&3skRayFall>"
wait 2 ticks
set name of sidebar of {_player} to "&bskRayFall>"
wait 2 ticks
set name of sidebar of {_player} to "&askRayFall"
As you can see, it is scoreboard but it has 1 line.
set score "&3Player's Online:" in sidebar of {_player} to {playersOnline}
how can i add second line ?
[doublepost=1498652153,1498650172][/doublepost]I solved it but my question is how can i delete red numbers at the line of end ?
[doublepost=1498652185][/doublepost]And sorry, i write to umbaska. It must skrayfall..