#Weird placeholder moment

1 messages · Page 1 of 1 (latest)

feral wing
#
    trigger:
        set {_oblvl} to placeholder "OB_lvl" of player
        set {_ptime} to {playtime.%player%}
        set {_blocksmined} to {blocks.mined.%player%}
        send "&eDebug: OB level raw: %{_oblvl}%" to player
        send "&eDebug: Playtime raw: %{_ptime}%" to player
        send "&eDebug: Blocks mined raw: %{_blocksmined}%" to player
        if {_ptime} is greater than or equal to 240:
            if {_blocksmined} is greater than or equal to 3500:
                if {_oblvl} is greater than or equal to 22:
                    send "Condition met. Executing command..." to player
                    execute console command "/lp user %player% parent set sky"
                    wait 2 seconds
                    send "&aCongratulations, you have been ranked up to &aSKY" to player
                else:
                    send "Not enough OB level. Required: 22 but you have %{_oblvl}%" to player
            else:
                send "Not enough blocks mined. Required: 3500, but you have %{_blocksmined}%" to player
        else:
            send "Not enough playtime. Required: 240 minutes, but you have %{_ptime}%" to player```
Okay so i have this rankup command that requires 22 oneblock levels, although i'm level 25 it still denies it and says u have to be lvl 22 and now ur lvl 25, whats going on?
languid saddle
#

any errors?

#

i changed a few things basically changed the wording into symbols

#
    trigger:
        set {_oblvl} to placeholder "OB_lvl" from player
        set {_ptime} to {playtime.%player%}
        set {_blocksmined} to {blocks.mined.%player%}
        send "&eDebug: OB level raw: %{_oblvl}%" to player
        send "&eDebug: Playtime raw: %{_ptime}%" to player
        send "&eDebug: Blocks mined raw: %{_blocksmined}%" to player
        if {_ptime} is >= 240:
            if {_blocksmined} >= 3500:
                if {_oblvl} >= 22:
                    send "Condition met. Executing command..." to player
                    execute console command "/lp user %player% parent set sky"
                    wait 2 seconds
                    send "&aCongratulations, you have been ranked up to &aSKY" to player
                else:
                    send "Not enough OB level. Required: 22 but you have %{_oblvl}%" to player
            else:
                send "Not enough blocks mined. Required: 3500, but you have %{_blocksmined}%" to player
        else:
            send "Not enough playtime. Required: 240 minutes, but you have %{_ptime}%" to player```
#

not sure if it will have any difference or effect.

#

is your debug line for OB LEVEL actually returning the correct value?

feral wing
#

i tried those it's just the oblvl doesnt work

languid saddle
#

so going back to my question

feral wing
#

yes it does