#signs

1 messages · Page 1 of 1 (latest)

pure wolf
#

am i doing this right? like it wont work i did try it

    set line 3 of block at {lobby1} to "&e%size of {tttjoin::*}%/32"

command resetgame:
    trigger:
#        set {gameon} to false
        delete {rank::*}
        delete {tttjoin::*}
        delete {rank::%player's uuid%}
        updateSign(location)
        delete {traitors::*}
        delete {innocents::*}
    

on sign change:
    line 1 is "Lobby1"
    set {lobby1} to location of event-block
    send "%{lobby1}%" to player
    set line 1 to "&4Lobby1"
    set line 2 to "&aClick to join"
    set line 3 to "&e%size of {tttjoin::*}%/32"
    set line 4 to "&fMAP <>"

on rightclick on sign:
    line 1 of the clicked block is "&4Lobby1":
        set line 1 to "&4Lobby1"
        set line 2 to "&aClick to join"
        add player to {tttjoin::*}
        set line 3 to "&e%size of {tttjoin::*}%/32"
        set line 4 to "&fMAP <>"```
like it wont update when i run the /resetgame cmd
rare orchid
#

Well the expression location in the update function is from where

#

Location. Of what

pure wolf
#

fixed it

#

i just did this ```function updateSign():
set line 3 of block at {lobby1} to "&e%size of {tttjoin::*}%/32"
command resetgame:
trigger:

set {gameon} to false

    delete {rank::*}
    delete {tttjoin::*}
    delete {rank::%player's uuid%}
    updateSign()```
rare orchid
#

Yeah

pure wolf
#

but will it mess anything up in the server

#

if i do it this way

rare orchid
#

Should not

pure wolf
#

like in terms if lag

#

or something

rare orchid
#

But... you could do
updateSign({lobby1})
Just in case you will use functions in future

#

If location is in the variable

pure wolf
#

so i would do function updateSign(l:location): set line 3 of block at {lobby1} to "&e%size of {tttjoin::*}%/32"

#

and then updateSign({lobby1})

#

in a cmd

#

yup it worked

#

thanks ❤️