#scoreboard help

1 messages · Page 1 of 1 (latest)

timid robin
#

Line 6, 7, and 8 doesnt get a number added to them on death or when they kill player

narrow herald
#
  1. You arent updating the scoreboard
  2. You are using different variables in your scoreboard and death event
narrow herald
#

By using the same var

#

Seems self explanatory

timid robin
#

bruh

#

I am not a expert scripter like you

narrow herald
#

...

timid robin
#

Thats why I need help

#

I dont understand what that means

narrow herald
#

You cant write the same thing twice?

timid robin
#

ohh

narrow herald
timid robin
#

I see

narrow herald
#

You see how those arent the same

#

And just put the lines you want to update in a while loop

timid robin
#

wait

#

put into a loop

#

how do I do that

narrow herald
#

Ex.

  give player diamond
  wait 1 second```
#

Also

#

Theres no attacker/victim in on join

timid robin
#

How do I put as a loop

narrow herald
#

Just use player

timid robin
#
    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

#

?

narrow herald
#

No victim either

timid robin
#

what do I write instaed that

narrow herald
#

Take a guess

timid robin
#

%player%?

narrow herald
#

Mhm

#

Smh

timid robin
#

bruh no

narrow herald
#

Why did you edit the on death

timid robin
#

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```
narrow herald
timid robin
#

alright

narrow herald
#

Omg

timid robin
#

yea-

narrow herald
#

Yeah

#

Ok

#

You have fun

timid robin
#

no

#

no

narrow herald
#

Thanks anonymously :)

timid robin
#

wait

narrow herald
#

You have experience helping him

timid robin
#

I have to relog into the server to get the change

narrow herald
timid robin
#

I dont wanna have to rejoin

#

lol

#

while loop

narrow herald
#

Then fix it

#

With while loop

timid robin
#

How

timid robin
#

bruh

#

That doesnt help me I dont understand

narrow herald
#

Just put the stuff you want to update in a while loop

timid robin
#
on join:
  while player is online:
    #code here
    wait 1 tick
#

i see

#

ty

#

yw

timid robin
wet sorrel
#

:):

tame grove
orchid galleon
#

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

timid robin
#

while loop is better

orchid galleon
#

nope

#

easy to make, not better performance wise

timid robin
#

he is bad at skript so better for him to use while loop

low shard
#

Install skbee
Uninstall Skrayfall
Switch to using skbee
Don't toggle the player's scoreboard

low shard
orchid galleon
#

Using functions to update a line only if it actually changes

low shard
#

Gruh

#

Me when I add extra boilerplate to every event I have just for some extra performance from my scoreboard: