Is there any way to make arguments work work with vanilla GUI?

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

BadName

Member
Oct 23, 2020
23
0
1
20
Hi, im trying to make a /report plugin/script with a GUI. I was wondering if the is any way to make arguments(%arg-#%) work with Vanilla GUIs.
 
The example that you linked does not have arguments
Do you mean opening a gui with arguments on items and stuff like that?
So if I say, in theory:
Code:
command /report <player>:
    permission: report.perm
    trigger:
        if arg-1 is not set:
            send "not set" to player
        else:
            #open chest with 5 items
            #If I click on one, it bans arg-1
            #etc
Yes?
 
Do you mean opening a gui with arguments on items and stuff like that?
So if I say, in theory:
Code:
command /report <player>:
    permission: report.perm
    trigger:
        if arg-1 is not set:
            send "not set" to player
        else:
            #open chest with 5 items
            #If I click on one, it bans arg-1
            #etc
Yes?
I want for when I click one of the items in the gui, it can send a message to ops
Code:
send "%arg-1% blah blah" to ops
Do you mean opening a gui with arguments on items and stuff like that?
So if I say, in theory:
Code:
command /report <player>:
    permission: report.perm
    trigger:
        if arg-1 is not set:
            send "not set" to player
        else:
            #open chest with 5 items
            #If I click on one, it bans arg-1
            #etc
Yes?


how would I implement arguments? kinda new sry
 
I want for when I click one of the items in the gui, it can send a message to ops
Code:
send "%arg-1% blah blah" to ops



how would I implement arguments? kinda new sry
I would set each argument to a gui button, so let's say we have a gui that has 5 blocks, each representing a color.
From there I would send a message that says that "You have selected blue" or something like that.
 
I would set each argument to a gui button, so let's say we have a gui that has 5 blocks, each representing a color.
From there I would send a message that says that "You have selected blue" or something like that.
can I get an example code?
 
Status
Not open for further replies.