Personwhoskripts Posted November 21, 2020 Share Posted November 21, 2020 How do you put curly brackets in quotation marks, the title says it all. Link to comment Share on other sites More sharing options...
CoolProgrammer Posted November 22, 2020 Share Posted November 22, 2020 I assume you meant this: "How do I use Skript variables in quotation marks?" This is how you do it: command /cooltest: trigger: set {cool} to "%player% is really cool" send "%{cool}%" to player Basically, if you want to use a variable in quotation marks, you surround the curly braces {} with %% Like soo: "%{yayMyVariable}%" Hello there! If you're reading this, hope you're having a wonderful day! Feel free to contact me via Discord (CoolProgrammer#1920) for any help. My DMs are always open for help. You can also message via. forum messages for help. Also, don't hesitate to leave a like on my post if I helped you in any way. Link to comment Share on other sites More sharing options...
UntitledGoose Posted November 23, 2020 Share Posted November 23, 2020 20 hours ago, CoolProgrammer said: I assume you meant this: "How do I use Skript variables in quotation marks?" This is how you do it: command /cooltest: trigger: set {cool} to "%player% is really cool" send "%{cool}%" to player Basically, if you want to use a variable in quotation marks, you surround the curly braces {} with %% Like soo: "%{yayMyVariable}%" Expanding on this: If you don't actually want a variable to be represented, throw out the percentage signs. Skript only looks for a variable in a string if it is wrapped in percentage signs. set {epic} to "honk" send "%{epic}%" # Resulting string: "honk" set {epic} to "honk" send "{epic}" # Resulting string: "{epic}" VIP since January 7th, 2020 Support since September 19th, 2020 Helper since November 3rd, 2020 Moderator since March 8th, 2021 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now