First word of message

  • 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!

Status
Not open for further replies.
Jul 16, 2020
30
2
8
18
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"
 
instead of "yes" you have to put 2 so ""yes"" if I remeber correctly.
 
Status
Not open for further replies.