Jump to content

How to add multiple scenarios to 1 arguemnet


iwantadaddy

Recommended Posts

Example:

command /command <text> [<text>]

arg-1 is "beep"
send "h" to player
arg-1 is "boop"
send "hhh" to player

If somebody could give me examples on how to refine this code so it works correctly, it would be appreciated

Edited by iwantadaddy
better understanding
Link to comment
Share on other sites

5 hours ago, iwantadaddy said:

Example:

command /command <text> [<text>]

arg-1 is "beep"
send "h" to player
arg-1 is "boop"
send "hhh" to player

If somebody could give me examples on how to refine this code so it works correctly, it would be appreciated

command /command <text> [<text>]:
	trigger:
		if arg-1 is "beep":
			send "h" to player
		else if arg-1 is "boop":
			send "hhh" to player

 

  • Like 1
  • Thanks 1

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...