#Update variable name

1 messages · Page 1 of 1 (latest)

vestal urchin
#

You need to loop the scoreboard or set the scoreboard line 1 of all players to the variable in the on damage event

#
command /something:
  trigger:
    set {a} to random element of all players in world “world”
    set line 1 of all players’ scoreboard to {a}

on damage:
  set {a} to attacker
  set line 1 of all players’ scoreboard to {a}
zinc prawn
#

like every second

vestal urchin
#

That would be really bad for your server

zinc prawn
#

anyways we are like 5 players so

vestal urchin
#

Lag

#

Still

zinc prawn
vestal urchin
#

Don’t use every X

#

What you could do is on join, while players is online, code

#

That would not cause as much lag

#

But do add a 1 tick delay

#

And the end of code

zinc prawn
#

it is like a playmode that when i run that command starts

#

and it loops X(the time that i want the playmode to last) times and waits 1 seconds every loop

#

and also update the scoreboard

#

so i cant use on join

vestal urchin
#

Oh you have a playtime?

#

I though it was just forever

zinc prawn
# vestal urchin Oh you have a playtime?

No, it will be kinda long to explain, let's say i did a playmode, where when i start it with a command a players get selected and have to catch other players, when he catches someone the one that got caught become the cather, so i just want a scoreboard that displays the current catcher

vestal urchin
#

Oh its like tag?

zinc prawn
#

yeah

vestal urchin
#

OHHH now i know what direction you’re going in

#

Imma help you with that when i get to my pc

#

Brb

zinc prawn
#

ok ty

#

btw i did all the code i just need that thing

#

i just didnt posted all of it because it would be a waste of time to read all the things that doesent matter in what i'm trying to do

#

I just figured it out

#

Ty btw

vestal urchin
#

alr :)

#

also, make sure to set it to a variable not a list, as if you make a list it can sometimes add more things at once

#

so use {a} instead of {a::*}

zinc prawn
#

Oh ok ty

vestal urchin
#

do you want me to make it for you? to maybe optimize it a bit?

#

im bored lol

zinc prawn
#

I mean it is kinda fine if you really wanna use your time on it

#

Like we only run that in the server so it wont lag i think