Jump to content

how do i use arguments in skript


xp69

Recommended Posts

i'm learning skript, and i came across arguments: things like arg-1 and arg-2, etc. how do i use this? also i was looking at how do i use arguments but i found one but i couldnt understand it. if i use this:

command /prefix [<text>] [<text>]:

then what would be all the arguments? like [whatever] = arg-1 and [anything] = arg-2. please tell me this.

Link to comment
Share on other sites

So your command /prefix [<text>] [<text>]:

 

Let's say your banning some one

First, your text would have to be changed to player or offline player then use arg-1 or arg-2

Examples

Ban arg-1

Execute console command "time set %arg-1%"

give arg-1 apple named "&cArgument"

 

To refer back to your argument in like a broadcast or a variable do %arg-1%

Examples:

send "&b%arg-1% is my first argument"

Set {argument} to "%arg-1%"

 

 

 

 

hope this helps

 

Edited by Yo_The_pro19
Grammar
  • Like 1

 

350kb.gif.0ff78007b131dd46bab00eb5980d6c35.gif

Yo_the_pro19

owner of Aqua-lands.net

rank: VIP 

 

 

Link to comment
Share on other sites

17 hours ago, Yo_The_pro19 said:

So your command /prefix [<text>] [<text>]:

 

Let's say your banning some one

First, your text would have to be changed to player or offline player then use arg-1 or arg-2

Examples

Ban arg-1

Execute console command "time set %arg-1%"

give arg-1 apple named "&cArgument"

 

To refer back to your argument in like a broadcast or a variable do %arg-1%

Examples:

send "&b%arg-1% is my first argument"

Set {argument} to "%arg-1%"

 

 

 

 

hope this helps

 

i don't really understand. you were putting commands like time set arg-1 but you didn't tell me what the arg-1 is. another: you put ban arg-1 but that doesn't make sense, what is arg-1 and how do i set a certain thing to an argument? also again with my command:
command /prefix [<text>] [<text>]:

what would be arg-1 and what would be arg-2, etc. with my command?

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