#Can't Get the Right Syntax

1 messages · Page 1 of 1 (latest)

grave peak
#

Hey, I've tried a bunch of syntax but I just can't get this to work right. The /getlevel commands don't return anything. Should be an easy fix

upper escarp
#

Uhh

#

Thats alot of code

#

For something this simple

grave peak
#

sorry sorry probably best to just look at the last few lines

#

hold on

#

let me send the right code

#
            set {_msg} to "&e&l" parsed as "&"
            add "%name of loop-player%: " to {_msg}
            add "%{_color}%%{_lvl}%%{_suffix}%" to {_msg}
            send {_msg} to player

and

        set {_name} to name of {_target}
        set {_msg} to "&e&l" parsed as "&"
        add "%{_name}%'s LEVEL: " to {_msg}
        add "%{_color}%%{_lvl}%%{_suffix}%" to {_msg}
        send {_msg} to player
upper escarp
#

I mean yeah i see that

#

What does it send exactly

#

Just {_lvl}

#

or?

grave peak
#

Nono it just doesn't return anything

#

I have an older version of the code that did return {_lvl} that was formatted correctly

upper escarp
#

any errors?

grave peak
#

nope

upper escarp
#

I mean

#

Uhh

#

Youre settinh alot of local variables

grave peak
#

Code that returns {_lvl}

            set {_msg} to "&e&l%name of loop-player%: %{_color}%{_lvl}%{_suffix}%"
            send {_msg} to player
```and
    set {_name} to name of {_target}
    set {_msg} to "&e&l%{_name}%’s LEVEL: %{_color}%{_lvl}%{_suffix}%"
    send {_msg} to player
upper escarp
#

Smth that ive noticed between the 2

#

Is that the 1st one

grave peak
upper escarp
#

Has like %%{var}%% etx

#

And the 2nd

#

Has %{var}%

grave peak
#

sooo

upper escarp
#

Maybe

#

If it worked with 1 %

#

and it doesnt

#

With 2

#

uhh

#

Yk

grave peak
#

okay i reimplemented the old logic

#

i just want the value to appear not the text {_lvl}

#

oh do i just remove all the percentages there

upper escarp
#

Im prolly leading u in the wrong direction cuh

#

Its like

#

Send ”%{_lvl}%“ to player

#

Should send you the lvl

#

U dont need

#

To set everything else

#

To a variavle

#

To add it

#

To a message

#

Thats like

#

All i can tell u

grave peak
#

alright thanks man

upper escarp
#

I cant find the character on mobile

upper escarp
#

And say if it outputs the lvl

#

Or not