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.

Solved "Or" argument in send command

Discussion in 'Skript' started by Exonl, May 10, 2022.

Tags:
Thread Status:
Not open for further replies.
  1. Exonl

    Exonl Member

    Joined:
    May 10, 2022
    Messages:
    2
    Likes Received:
    0
    Hello im trying to make a Talking ben command that looks like this:

    Code (Text):
    1. command /ben [<text>]:
    2.     trigger:
    3.         if arg 1 is set:
    4.             send "<%player%> Ben %arg 1%"
    5.             send "<Ben> yes" or "<Ben> no" or "<Ben> eugh" or "<Ben> hohoho"
    6.         else:
    7.             send "<Ben> ring..."
    8.             wait 1 second
    9.             send "<Ben> Ben?"
    It shows no error when im reloading Skript, but if im trying the command out, it looks like this in the chat:

    ------------------------------
    <Username> Ben Test

    <Ben> yes
    <Ben> no
    <Ben> eugh
    <Ben> hohoho
    ------------------------------

    I googled solutions but i found nothing.
    Btw im not using any other Plugin as Skript and the version is 1.8.8 Paper.

    Thanks.
     
  2. Best Answer:
    Post #2 by Practice, May 10, 2022
  3. Practice

    Practice Member

    Joined:
    Apr 23, 2022
    Messages:
    37
    Likes Received:
    1
    Code (Text):
    1. set {_response} to random integer between 1 and 4
    2.  
    3. if {_response} is 1:
    4.     send "<Ben> yes"
    5. if {_response} is 2:
    6.     send "<Ben> no"
    7. if {_response} is 3:
    8.     send "<Ben> eugh"
    9. if {_response} is 4:
    10.     send "<Ben> hohoho"
     
  4. Exonl

    Exonl Member

    Joined:
    May 10, 2022
    Messages:
    2
    Likes Received:
    0
    Tysm, it worked the last time just by putting "or" between the words but it didnt after tho.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...