#how to use vanilla scoreboard value with skrayfall script

1 messages · Page 1 of 1 (latest)

livid blaze
#

how to use vanilla scoreboard value with skrayfall script

#

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

knotty merlin
livid blaze
#

how..?

knotty merlin
#

open the docs

livid blaze
#

i don't use this

#

I've already seen it, but I don't understand

knotty merlin
# livid blaze i don't use this

looping every player in the server will create a lag to your server + in skbee scoreboard you don't need to wipe anything after

livid blaze
#

can you give me an example

knotty merlin
#

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
livid blaze
#

i want to use vanilla score value

knotty merlin
#

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!

livid blaze
#

T.T

#

i can't

#

i'm noob

#

so hard

agile vortex
#

What’s so hard about this?

#

An 7 year old would figure this out.

#

Most of the code is just copy paste.

livid blaze
#

i want to use vanilla score value with script!!!!

agile vortex
#

Okay?

livid blaze
#

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

analog fable
livid blaze
#

i don't know

analog fable
#

explain what 5 is and i’ll help