#scoreboard help
1 messages · Page 1 of 1 (latest)
- You arent updating the scoreboard
- You are using different variables in your scoreboard and death event
well how to I fix?
...
You cant write the same thing twice?
ohh
I see
You see how those arent the same
And just put the lines you want to update in a while loop
Ex.
give player diamond
wait 1 second```
Also
Theres no attacker/victim in on join
How do I put as a loop
Just use player
toggle player's scoreboard to on
wait 1 second
set title of player's scoreboard to "&3&lPunishedBox"
set line 10 of player's scoreboard to "&3&m "
set line 9 of player's scoreboard to "&fKillstreak:&b %{killstreak::%player%}%"
set line 8 of player's scoreboard to "&fKills:&b %{kills::%player%}%"
set line 7 of player's scoreboard to "&fDeaths: &b%{deaths::%player%}%"
set line 6 of player's scoreboard to "&b&lServer"
set line 5 of player's scoreboard to "&fOnline: &b%amount of players%/75"
set line 4 of player's scoreboard to "&fStore: &b/buy"
set line 3 of player's scoreboard to "&fDiscord: &b/discord"
set line 2 of player's scoreboard to "&3&m "
set line 1 of player's scoreboard to "&7PunishedBox.minehut.gg"
on death:
if victim is player:
add 1 to {kills::%player%}
add 1 to {killstreak::%player%}
add 1 to {deaths::%player%}
set {killstreak::%player%} to 0
on first join:
set {kills::%player%} to 0
set {killstreak::%player%} to 0
set {deaths::%player%} to 0
set {killstreak::%player%} to 0```
like that
?
No victim either
what do I write instaed that
Take a guess
%player%?
bruh no
Why did you edit the on death
player messes it up
idk
toggle player's scoreboard to on
wait 1 second
set title of player's scoreboard to "title"
set line 10 of player's scoreboard to "&3&m "
set line 9 of player's scoreboard to "&fKillstreak:&b %{killstreak::%player%}%"
set line 8 of player's scoreboard to "&fKills:&b %{kills::%player%}%"
set line 7 of player's scoreboard to "&fDeaths: &b%{deaths::%player%}%"
set line 6 of player's scoreboard to "&b&lServer"
set line 5 of player's scoreboard to "&fOnline: &b%amount of players%/75"
set line 4 of player's scoreboard to "&fStore: &b/buy"
set line 3 of player's scoreboard to "&fDiscord: &b/discord"
set line 2 of player's scoreboard to "&3&m "
set line 1 of player's scoreboard to "ip of server"
on death:
if victim is player:
add 1 to {kills::%attacker%}
add 1 to {killstreak::%attacker%}
add 1 to {deaths::%victim%}
set {killstreak::%victim%} to 0
on first join:
set {kills::%player%} to 0
set {killstreak::%player%} to 0
set {deaths::%player%} to 0
set {killstreak::%player%} to 0```
alright
Omg
yea-
Thanks anonymously :)
I already helped him in #1044023647473516544 now u do it
wait
You have experience helping him
I have to relog into the server to get the change
That looks good. Now you just have to rejoin for it to update
How
Just put the stuff you want to update in a while loop
:):
you should use%player's uuid% instead of just %player% this is because if a player change their name the stats will be gone if you just use %player% but a uuid of player never changes even if they change name
Also you don't need a while loop
On join set the lines that won't change such as the title and blank lines and then in the appropriate events update the "values" lines
while loop is better
he is bad at skript so better for him to use while loop
Install skbee
Uninstall Skrayfall
Switch to using skbee
Don't toggle the player's scoreboard
What would you suggest using instead
Using functions to update a line only if it actually changes