1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I need help

Discussion in 'Skript' started by Knot, Jul 31, 2022.

Tags:
  1. Knot

    Knot Member

    Joined:
    Jun 8, 2022
    Messages:
    4
    Likes Received:
    0
    How do i get a player's message into a variable and send it back to them only if a variable is true? I really need to know this.
     
  2. JakeTheChad

    Supporter

    Joined:
    Jan 30, 2022
    Messages:
    99
    Likes Received:
    6
    use the on chat event
     
  3. Sabified

    Sabified Member

    Joined:
    Jun 5, 2022
    Messages:
    28
    Likes Received:
    2
    Code (Text):
    1. on chat:
    2.     set {msg.%player%} to message
    3.     if {yourvariable} is true:
    4.         send {msg.%player%} to player
     
  4. Knot

    Knot Member

    Joined:
    Jun 8, 2022
    Messages:
    4
    Likes Received:
    0
    ty i will try it
     
  5. JakeTheChad

    Supporter

    Joined:
    Jan 30, 2022
    Messages:
    99
    Likes Received:
    6
    dont use dots in variables, use lists.
    example:
    Code (Text):
    1. {kills::%player's uuid%}
    also you dont need to set a variable to the message, it's literally the same event just one line later

    Code (Text):
    1. on chat:
    2.   {var} is true
    3.   send message to player
     

Share This Page

Loading...