#send value of variable in chat
1 messages · Page 1 of 1 (latest)
only two colons?
yes
also, i dont recommend having things that are disabled set to false, as then they are still a set variable, taking up space. you can delete them.
that line
it that the entire line?
line 32 I want to send the value of the var
how do I do that
also how do I use players uuid
what is this colon here for?
exactly as you are using it right now, its just an expression
whats the error abt im confused
just put it inside percents in the string
this code and this error dont line up
I refreshed.
.
now a syntax error
yeah, remove that too
you dont need to have it set to false
you dont need it set at all
then this wouldnt work
you can just have it as true or deleted
set {a} to true
send "enabled"
else:
delete {a}
send "disabled"``````if {a} is set:
#its enabled
if {a} is not set:
#its disabled```
how do I send value of var in chat
.
like the uuid
anything thats not literal text needs to be in percents
what
this is the line
send "&cScaffold: scaffoldToggled::%player's uuid%" to player
send it fixed
I dont understand where to put the percentages
this is confusing
inside of quotes is text. literal text. anything inside them will be sent
Putting percents in a string tells skript that there is not literal text there, and it has to execute that section as code```send "Hello, player, welcome!" to player
-> "Hello, player, welcome!"
"My favourite number is: 8 + 4" to player
-> "My favourite number is: 8 + 4"
"Hello, %player%, welcome!" to player
-> "Hello, Tectonic, welcome!"
send "My favourite number is: %8 + 4%" to player
-> "My favourite number is: 12"```
do I do it like this because i'm confused
you still need the curly braces; its a variable