#how to use vanilla scoreboard value with skrayfall script
1 messages · Page 1 of 1 (latest)
every 1 seconds:
loop all players:
if {scoreboard.%loop-player%} is true:
wipe loop-player's sidebar
set name of sidebar of loop-player to "Skill Cooldown"
set score "&3-%loop-player%-" in sidebar of loop-player to 9
set score "Skill1: seconds" in sidebar of loop-player to 8
set score "Skill2: seconds" in sidebar of loop-player to 7
set score "Skill3: seconds" in sidebar of loop-player to 6
set score "Skill4: seconds" in sidebar of loop-player to 5
set score "Skill5: seconds" in sidebar of loop-player to 4
set score "Skill6: seconds" in sidebar of loop-player to 3
set score "Skill7: seconds" in sidebar of loop-player to 2
set score "Skill8: seconds" in sidebar of loop-player to 1
please use skbee scoreboard
https://github.com/ShaneBeee/SkBee/wiki/Scoreboards
how..?
open the docs
looping every player in the server will create a lag to your server + in skbee scoreboard you don't need to wipe anything after
can you give me an example
here is the official skbee exmaple:
# set things here that don't change (no need to include them in the loop)
set title of player's scoreboard to "&bLe &3Title"
set line 15 of player's scoreboard to "&aPlayers:"
set line 13 of player's scoreboard to "&aMoney:"
set line 11 of player's scoreboard to "&aKills:"
set line 9 of player's scoreboard to "&aDeaths:"
while player is online:
# set things here that need to update periodically
set line 14 of player's scoreboard to "&7 - &b%size of all players%"
set line 12 of player's scoreboard to "&7 - &b%balance of player%"
set line 10 of player's scoreboard to "&7 - &b%kill entity stat using player of player%"
set line 8 of player's scoreboard to "&7 - &b%deaths stat of player%"
wait 1 second
i want to use vanilla score value
you can
@livid blaze here is simplified example
on join:
set title of player's scoreboard to "&3BLAH"
set line 1 of player's scoreboard to "&aKILLS:"
while player is online:
set line 2 of player's scoreboard to "&c%{kills:%player%}%"
wait 1 second
you don't need to loop all the player or wipe loop-player's sidebar
NOTE: looping all the player's creates lag!
What’s so hard about this?
An 7 year old would figure this out.
Most of the code is just copy paste.
i want to use vanilla score value with script!!!!
Okay?
Nowhere did I tell you how I want it
What I want is a way to use the vanilla score value in the script.
I still haven't got the answer I want
what is line 5
i don't know
this copy paste
explain what 5 is and i’ll help