#chat help
1 messages · Page 1 of 1 (latest)
why 2 seperate events
oh so i remove the on chat and just add it to the first one?
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
#a
else:
#b```
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%"
just match the indenation to this
else is indented the same as the if line
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
else has same indentation as if
could u explain what an indentation is? sorry i just dont understand
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%"
indent after a colon
the colon after else?
the else needs to be outside the if
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%"```
#inside if
do stuff
#outside if
else:
do other stuff```
this is what i got now
indent after the if and else
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%"```
yup
aight it works. how i add more? an if else or just add another else statement
aight i figured it out ty