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.

First word of message

Discussion in 'Skript' started by GamerProPlaysYT, Jul 22, 2020.

Thread Status:
Not open for further replies.
  1. GamerProPlaysYT

    Joined:
    Jul 16, 2020
    Messages:
    30
    Likes Received:
    2
    Hello, I try to do if someone type for example "yes" that it continues and say "no" it cancelles, but I get 2 errors

    https://prnt.sc/tmf4la

    here is the code

    # Javascript Tutorial Command! #

    options:
    p: &3JavaScript &7>

    command /discordjavascript [<text>]:
    aliases: djs, djavas, djscript, discordjs, djavascript
    trigger:
    if arg-1 is not set:
    send "&cTo start, set the argument to &a(Setup|)"
    if arg-1 is "setup":
    wait 1 tick
    send "{@p} &aYou've started the Discord JavaScript Tutorial!"
    wait 2 seconds
    send "{@p} Type 'yes' to start, and 'no' to cancel"
    if "%first word of message%" is "no":
    wait 2 ticks
    send "{@p} &cCancelled!"
    if "%first word of message%" is "yes":
    send "{@p} &aTo start, you need to install the required packages"
    wait 5 seconds
    send "{@p} &aFirst you need to do type in command promt%nl%'npm init' and fill out the things."
    send "{@p} &a Let the 'index.js' stay and fill out!"
    send "{@p} &aType 'done' to continue"
    if "%first word of message%" is "done":
    wait 2 ticks
    send "{@p} &aNow you just need to install 'discord.js' by doing:"
    send "{@p} &a'npm i discord.js --save'"
    wait 5 seconds
    send "{@p} &aDone? Type 'done' to continue!"
    if "%first word of message%" is "done":
    wait 2 seconds
    send "{@p} &aNow we start the code!"
    wait 1 second
    send "{@p} &aTo start off"
     
  2. Gowixx

    Gowixx Member

    Joined:
    Jul 9, 2020
    Messages:
    28
    Likes Received:
    6
    instead of "yes" you have to put 2 so ""yes"" if I remeber correctly.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...