Solved One Scoreboard Per World code (Need help)

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

Pingusate

Active Member
Mar 29, 2018
50
4
8
20
Suggested name: Scoreboard per world
What I want:
Hey, i need help to set a scoreboard per world, for example, lets say the world name is World, I want it to have its own scoreboard, but it won't be displayed in World2 or World3, and World2 has its own scoreboard, but it won't be displayed in World or World3

Please someone submit the code in a spoiler, Thanks :emoji_slight_smile:

Ideas for commands: No Commands just code in a spoiler

Ideas for permissions: No permissions, just code in a spoiler

When I'd like it by: Just in any minute today please :emoji_slight_smile:
 
Hello Pingusate!

First, I want to wonder what type of scoreboard you are using. SkRayFall or Skellet!

I know what to do for SkRayFall, so here it is!

code_language.skript:
every 5 ticks:
    loop all players:
        if loop-player is in "WORLD NAME":
            set name of sidebar of loop-player to "SCOREBOARD TITLE"
            set score "PUT YOUR FIRST INFO" in sidebar of loop-player to 5
            set score "PUT YOUR SECOND INFO" in sidebar of loop-player to 4
            set score "PUT YOUR THIRD INFO" in sidebar of loop-player to 3
            set score "PUT YOUR FOURTH INFO" in sidebar of loop-player to 2
            set score "PUT YOUR FIFTH INFO" in sidebar of loop-player to 1
        if loop-player is in "WORLD 2 NAME":
            set name of sidebar of loop-player to "SCOREBOARD TITLE"
            set score "2ND PUT YOUR FIRST INFO" in sidebar of loop-player to 5
            set score "2ND PUT YOUR SECOND INFO" in sidebar of loop-player to 4
            set score "2ND PUT YOUR THIRD INFO" in sidebar of loop-player to 3
            set score "2ND PUT YOUR FOURTH INFO" in sidebar of loop-player to 2
            set score "2ND PUT YOUR FIFTH INFO" in sidebar of loop-player to 1

Change the WORLD NAME, SCOREBOARD TITLE, and the INFO.
You can always copy and paste it to create more worlds! Also, you can copy and paste the info!

Happy Coding!
 
Hello Pingusate!

First, I want to wonder what type of scoreboard you are using. SkRayFall or Skellet!

I know what to do for SkRayFall, so here it is!

code_language.skript:
every 5 ticks:
    loop all players:
        if loop-player is in "WORLD NAME":
            set name of sidebar of loop-player to "SCOREBOARD TITLE"
            set score "PUT YOUR FIRST INFO" in sidebar of loop-player to 5
            set score "PUT YOUR SECOND INFO" in sidebar of loop-player to 4
            set score "PUT YOUR THIRD INFO" in sidebar of loop-player to 3
            set score "PUT YOUR FOURTH INFO" in sidebar of loop-player to 2
            set score "PUT YOUR FIFTH INFO" in sidebar of loop-player to 1
        if loop-player is in "WORLD 2 NAME":
            set name of sidebar of loop-player to "SCOREBOARD TITLE"
            set score "2ND PUT YOUR FIRST INFO" in sidebar of loop-player to 5
            set score "2ND PUT YOUR SECOND INFO" in sidebar of loop-player to 4
            set score "2ND PUT YOUR THIRD INFO" in sidebar of loop-player to 3
            set score "2ND PUT YOUR FOURTH INFO" in sidebar of loop-player to 2
            set score "2ND PUT YOUR FIFTH INFO" in sidebar of loop-player to 1

Change the WORLD NAME, SCOREBOARD TITLE, and the INFO.
You can always copy and paste it to create more worlds! Also, you can copy and paste the info!

Happy Coding!
Thank you a lot!!!
 
No problem!

Make sure to label the post as solved!

Have a great day and Happy Skripting!