Solved How to send a variable in chat?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

SandBoxer011

Member
Feb 9, 2024
10
1
3
21
Hello everyone! I'm working on skill upgrade and I need to see how many xp I have, but I don't know how to send variables in chat :emoji_frowning:

command /alchemy_xp:
trigger:
send "{%player%_alchemy_level}" to the player
send "{%player%_alchemy_max}" to the player
send "{%player%_alchemy_xp_current}" to the player

(This thing doesn't work. It says in chat "{SandBoxer011_alchemy_level}")
 
  • Like
Reactions: HeliumBoi
Hello everyone! I'm working on skill upgrade and I need to see how many xp I have, but I don't know how to send variables in chat :emoji_frowning:

command /alchemy_xp:
trigger:
send "{%player%_alchemy_level}" to the player
send "{%player%_alchemy_max}" to the player
send "{%player%_alchemy_xp_current}" to the player

(This thing doesn't work. It says in chat "{SandBoxer011_alchemy_level}")
Add percents around variables if you plan to use them in text. Example: send “%{Example}%” to player.
 
Hello everyone! I'm working on skill upgrade and I need to see how many xp I have, but I don't know how to send variables in chat :emoji_frowning:

command /alchemy_xp:
trigger:
send "{%player%_alchemy_level}" to the player
send "{%player%_alchemy_max}" to the player
send "{%player%_alchemy_xp_current}" to the player

(This thing doesn't work. It says in chat "{SandBoxer011_alchemy_level}")
its more like this

Code:
command /alchemy_xp:
    trigger:
        send "%{player_alchemy_level}%" to the player
        send "%{player_alchemy_max}%" to the player
        send "%{player_alchemy_xp_current}%" to the player
 
  • Like
Reactions: SandBoxer011