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!

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

Solved NEED HELP BY CHAT

Discussion in 'Requests' started by Brok3nmind, Feb 3, 2017.

  1. Brok3nmind

    Brok3nmind Active Member

    Joined:
    Feb 3, 2017
    Messages:
    66
    Likes Received:
    1
    If a player should make a command and then write "YES" or "NO" to get the message "NOPE". If it writes something else the command should be canceled. NEED HELP Please

    command /test:
    trigger:
    if player's message is "YES":
    send "NOPE"
    stop
    if player's message is "NO":
    stop
    else:
    stop

     
    #1 Brok3nmind, Feb 3, 2017
    Last edited: Feb 3, 2017
  2. Best Answer:
    Post #3 by ShaneBee, Feb 4, 2017
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Follow the help template and then we'll be able to help you.

    No help until you don't have the help template on.
     
    • Agree Agree x 2
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Here ya go:
    Code (Skript):
    1. command /type:
    2.     trigger:
    3.         if {type::%uuid of player%} is set:
    4.             send "You are already in type mode."
    5.             stop
    6.         set {type::%uuid of player%} to true
    7.         send "You are now in type mode. Type ""cancel"" to exit."
    8.         wait 10 seconds
    9.         if {type::%uuid of player%} is set:
    10.             delete {type::%uuid of player%}
    11.             send "You have been taken out of type mode due to inactivity."
    12.  
    13. on chat:
    14.     if {type::%uuid of player%} is set:
    15.         if "%message%" is "cancel":
    16.             send "You are no longer in type mode."
    17.         else if "%message%" is "yes":
    18.             send "Nope."
    19.             # do stuff
    20.         delete {type::%uuid of player%}
    21.        
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Thanks you "mathhulk"
     

Share This Page

Loading...