Jump to content

Keyall/scoreboard skript


Askn

Recommended Posts

I have always skripted my scoreboards within a function, so when I need to update it I call the function like so:

command /reloadscoreboard:
	trigger:
		scoreboard(player)
		send "&7Your scoreboard has been successfully reloaded!" to player

function scoreboard(p: player):
	set title of {_p}'s scoreboard to "Your Title"
	set line 15 of {_p}'s scoreboard to "Line 1 (closest to top)"
	set line 14 of {_p}'s scoreboard to "and"
	set line 13 of {_p}'s scoreboard to "so"
	set line 12 of {_p}'s scoreboard to "on"
	set line 11 of {_p}'s scoreboard to "down"
	set line 10 of {_p}'s scoreboard to "to"
	set line 9 of {_p}'s scoreboard to "line"
	set line 8 of {_p}'s scoreboard to "1!"
	...

This way when say, updating someones balance, you can call the function to reload their scoreboard. But for you, it would be more of:

every second:
<-- Code for Timer -->
	loop all players:
		scoreboard(loop-player)

Although I always try to only update scoreboard when I really need to

If I helped you at all please consider boosting my account with the follow button!
Minehut ♥ [VIP] 12/19/2020 - Present

I am either extremely active or not lol.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...