#chat help

1 messages · Page 1 of 1 (latest)

still grove
#
  set the chat format to "&8[&7%{levels::%player's uuid%}%&8] %player's prefix%%player%: &f%message%"

on chat:
  if {levels::%{_p}'s uuid%} >= 20:
    set the chat format to "&8[&f%{levels::%player's uuid%}%&8] %player's prefix%%player%: &f%message%"``` i have this now but its always gray now
potent tiger
#

why 2 seperate events

still grove
#

oh so i remove the on chat and just add it to the first one?

still grove
# potent tiger why 2 seperate events
  set the chat format to "&8[&7%{levels::%player's uuid%}%&8] %player's prefix%%player%: &f%message%"
  if {levels::%{_p}'s uuid%} >= 20:
    set the chat format to "&8[&f%{levels::%player's uuid%}%&8] %player's prefix%%player%: &f%message%"```
#

this is what i have. no errors but it doesn't work

#

its always gray

potent tiger
#
  #a
else:
  #b```
still grove
#

yo dude im not good at skript this is what i have could u properly format it on chat: set the chat format to "&8[&7%{levels::%player's uuid%}%&8] %player's prefix%%player%: &f%message%" if {levels::%{_p}'s uuid%} >= 20: set the chat format to "&8[&f%{levels::%player's uuid%}%&8] %player's prefix%%player%: &f%message%" else: set the chat format to "&8[&7%{levels::%player's uuid%}%&8] %player's prefix%%player%: &f%message%"

potent tiger
#

else is indented the same as the if line

still grove
# potent tiger just match the indenation to this

on chat:
if {levels::%{_p}'s uuid%} >= 20:
set the chat format to "&8[&f%{levels::%player's uuid%}%&8] %player's prefix%%player%: &f%message%"
else:
set the chat format to "&8[&7%{levels::%player's uuid%}%&8] %player's prefix%%player%: &f%message%"

this doesnt work. it doesnt understand if levels >= 20

#

sorry im new too script

humble kayak
#

else has same indentation as if

still grove
humble kayak
#

indent means press space 4 times or press tab

#
  send "hi"````
#

see

still grove
#

aight so how would i do this for this skript

if {levels::%{_p}'s uuid%} >= 20:
  set the chat format to "&8[&f%{levels::%player's uuid%}%&8] %player's prefix%%player%: &f%message%"
  else:
  set the chat format to "&8[&7%{levels::%player's uuid%}%&8] %player's prefix%%player%: &f%message%"
humble kayak
#

indent after a colon

still grove
#

the colon after else?

potent tiger
#

the else needs to be outside the if

still grove
#

could you elaborate?

#
  if {levels::%{_p}'s uuid%} >= 20:
  set the chat format to "&8[&f%{levels::%player's uuid%}%&8] %player's prefix%%player%: &f%message%"
  else:
  set the chat format to "&8[&7%{levels::%player's uuid%}%&8] %player's prefix%%player%: &f%message%"```
humble kayak
#
  #inside if
  do stuff
#outside if
else:
  do other stuff```
still grove
#

this is what i got now

humble kayak
#

indent after the if and else

still grove
#
  if {levels::%{_p}'s uuid%} >= 20:
    set the chat format to "&8[&f%{levels::%player's uuid%}%&8] %player's prefix%%player%: &f%message%"
  else:
    set the chat format to "&8[&7%{levels::%player's uuid%}%&8] %player's prefix%%player%: &f%message%"```
humble kayak
#

yup

still grove
#

it doesnt change

#

at 20

humble kayak
#

{_p} isn't set

#

it's player's uuid not {_p}'s uuid

still grove
#

aight it works. how i add more? an if else or just add another else statement

humble kayak
#

else if can work

#

so

#
else if y:
else:```
still grove
#

aight i figured it out ty