#Scoreboard skript

1 messages · Page 1 of 1 (latest)

runic laurel
#

you sidnt even try smg

wicked chasm
#

i dont know how to fix this

#

cannot use 'attacker' outside of a damage/death/destroy event 10 and 12

#

thats the error

runic laurel
#

sir

plain cosmos
#

then use %player%?

fossil pasture
#

then dont use attacker

wicked chasm
#

THANKS!

#

ily you guys

runic laurel
#

you didn't even try

fossil pasture
#

just gotta read the error messages and you would have never had to ask

runic laurel
#

😠

fossil pasture
#

last i checked falling off a cliff and dying has no attacker

wicked chasm
#

wups

#

wait

#

now it says use attacker or victim or/and

#

again error

plain cosmos
#

I like how the event is on death of a player, then he proceeds to check if it's a player

wicked chasm
#

huh.

fossil pasture
#

if there is no attacker there is no victim

wicked chasm
#

so how to i fix that.

#

%player deaths% ?

#

nvm that doesnt work

#

so?

plain cosmos
#

send skript again

wicked chasm
#

on join:
set {_online} to number of all players
while player is online:
set title of player's scoreboard to "&b&lKINGEI"
set line 14 of player's scoreboard to "&7&m "
set line 13 of player's scoreboard to " &b&lStats &7>"
set line 12 of player's scoreboard to ""
set line 11 of player's scoreboard to " &7Player > &b&l%player%"
set line 10 of player's scoreboard to ""
set line 9 of player's scoreboard to " &7Deaths > &b&l{playerdeath::%player%}"
set line 8 of player's scoreboard to ""
set line 7 of player's scoreboard to " &7Kills > &b&l{playerkills::%player%}"
set line 6 of player's scoreboard to ""
set line 5 of player's scoreboard to "&7Rank > %player's group%"
set line 4 of player's scoreboard to ""
set line 3 of player's scoreboard to " &7Online players &7> &b&l%{_online}%"
set line 2 of player's scoreboard to "&7&m "
set line 1 of player's scoreboard to ""
wait 1 second

variables:
{playerkills::%player%} = 0
{playerdeath::%player%} = 0

on death of player:
if victim is player:
add 1 to {playerkills::%player%}

on death of player:
add 1 to {playerdeath::%player%}

plain cosmos
#

dude

#

what line did u change

#

did u even read the error

#

why did u change all of the lines

wicked chasm
#

now the kills and deaths dont work at lines 10 and 12

viscid rain
#
on death of player:
    add 1 to {playerkills::%attacker%}
    add 1 to {playerdeath::%victim%}  

in the image is just wrong you should not add everything to player

cunning coyote
#

also the condition victim is player will always pass since using player in the death event is the same as victim so you are basically checking if victim is victim

wicked chasm
#

working

rich vine
#
{playerkills::%player’s uuid%} 

That’d probably be better so if the player changes there name there stats don’t go away