Jump to content

How to search for arguments


Pryzmm

Recommended Posts

example code:

command /example <text>:
	trigger:
		if arg-1 is set to "test1":
  			send "test1" to player
  		if arg-1 is set to "test2":
  			send "test2" to player
  		if arg-1 is set to "test3":
  			send "test3" to player
  
  # How would i search for these arguments?
  # Like minecraft's search for commands command... thingy

read last 2 lines

 

 

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

37 minutes ago, WithqutMe said:

Use [] instead of <> I guess

dosent work 😕

 

 

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

Do you mean tab completion? View [this].

Founder - Minehut.xyz

The leading Minehut support website. We aim to provide top quality tutorials, provide answers to top questions, and help in any way we can. Our site is community driven, and we will continue to make it better and better.

Support | 28/08/20 -13/09/20

Senior Support | 13/09/20 - 19/10/20

 

forums.gif.5d3db2db4a05c9465b84fa9bf0293df4.gif

Link to comment
Share on other sites

I dont mean tab completion. I mean like searching for arguments. Like how mojang made /help and you could search for a command. I want something like this but for arguments

 

 

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

16 hours ago, WithqutMe said:

Can you make an example?

i mAdE aN eXaMpLe aT tHe tOpP

 

 

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

On 11/1/2020 at 2:38 PM, Agentgamer100YT said:

example code:


command /example <text>:
	trigger:
		if arg-1 is set to "test1":
  			send "test1" to player
  		if arg-1 is set to "test2":
  			send "test2" to player
  		if arg-1 is set to "test3":
  			send "test3" to player
  
  # How would i search for these arguments?
  # Like minecraft's search for commands command... thingy

read last 2 lines

Like if arg-1 is set to something you want to make it say something? Its if arg-1 is "test1" not if arg-1 is set to "test1"

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

On 11/1/2020 at 3:56 PM, Agentgamer100YT said:

I dont mean tab completion. I mean like searching for arguments. Like how mojang made /help and you could search for a command. I want something like this but for arguments

😐 that's tab completion

VIP since January 7th, 2020

Support since September 19th, 2020

Helper since November 3rd, 2020

Moderator since March 8th, 2021

unknown.png

5.png.e14b1bf83edf0ac2edc1bfb822177184.png

image.png.fe30b7b2c0be5a541ba4ed2187b23030.png

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...