Solved NEED HELP BY 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!

Brok3nmind

Active Member
Feb 3, 2017
66
1
8
22
Germany
darkvoid.eu
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
 
Last edited:
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
Follow the help template and then we'll be able to help you.

No help until you don't have the help template on.
 
Here ya go:
code_language.skript:
command /type:
    trigger:
        if {type::%uuid of player%} is set:
            send "You are already in type mode."
            stop
        set {type::%uuid of player%} to true
        send "You are now in type mode. Type ""cancel"" to exit."
        wait 10 seconds
        if {type::%uuid of player%} is set:
            delete {type::%uuid of player%}
            send "You have been taken out of type mode due to inactivity."

on chat:
    if {type::%uuid of player%} is set:
        if "%message%" is "cancel":
            send "You are no longer in type mode."
        else if "%message%" is "yes":
            send "Nope."
            # do stuff
        delete {type::%uuid of player%}