Gui to run help

  • 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 community!

    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.

Jakku

New Member
Dec 18, 2019
5
0
0
Im trying to get a command to issue after clicking on something in a gui menu im working on, but when I use to run I keep getting an error

Error: Can't understand this condition/effect: format gui slot 0 of arg-1 with diamond named "test" with lore "test" to run [make player execute command "nextshop %arg-1%"] (villagermenu.sk, line 21: format gui slot 0 of arg-1 with diamond named "test" with lore "test" to run [make player execute command "nextshop %arg-1%"]')

Code:
Code:
on right click on villager:
    cancel event
    wait 1 tick
    execute console command "/open %player%"
    
command /open <player>:
    permission: shop.admin
    trigger:
        wait 1 tick
        open chest with 2 rows named "&6Shop" to arg-1
        wait 1 tick
        format gui slot 0 of arg-1 with diamond named "test" with lore "test" to run [make player execute command "nextshop %arg-1%"]

command /nextshop <player>:
    permission: shop.admin
    trigger:
        wait 1 tick
        open chest with 1 row named "This is a test" to arg-1
        wait 1 tick
        format gui slot 0 of arg-1 with gold ingot named "test2" with lore "test2"
 
Im trying to get a command to issue after clicking on something in a gui menu im working on, but when I use to run I keep getting an error

Error: Can't understand this condition/effect: format gui slot 0 of arg-1 with diamond named "test" with lore "test" to run [make player execute command "nextshop %arg-1%"] (villagermenu.sk, line 21: format gui slot 0 of arg-1 with diamond named "test" with lore "test" to run [make player execute command "nextshop %arg-1%"]')

Code:
Code:
on right click on villager:
    cancel event
    wait 1 tick
    execute console command "/open %player%"
 
command /open <player>:
    permission: shop.admin
    trigger:
        wait 1 tick
        open chest with 2 rows named "&6Shop" to arg-1
        wait 1 tick
        format gui slot 0 of arg-1 with diamond named "test" with lore "test" to run [make player execute command "nextshop %arg-1%"]
Going off the error, try using arg-player instead of arg-1
command /nextshop <player>:
    permission: shop.admin
    trigger:
        wait 1 tick
        open chest with 1 row named "This is a test" to arg-1
        wait 1 tick
        format gui slot 0 of arg-1 with gold ingot named "test2" with lore "test2"
Going off the error, try using arg-player instead of arg-1

ree im bored so im shortening your code lol

Code:
on right click on villager:
    cancel event
    open chest with 2 rows named "&6Shop" to player
    format gui slot 0 of player with diamond named "test" with lore "test" to close then run:
        open chest with 1 row named "This is a test" to player
        format gui slot 0 of player with gold ingot named "test2" with lore "test2"
 
Last edited:
Hey goose, I tried your shortened code and im still getting the same (or close to same) error that I have gotten last time

Are you possibly using some Skript plugins that I don't have on my server that could be causing this?
I am running 1.14.4 so I cannot have some Skript plugins, that or I am just missing a few :emoji_stuck_out_tongue:

Error: [Server thread/ERROR]: can't understand this condition: 'format gui slot 0 of player with diamond named "test" with lore "test" to close then run' (villagermenu.sk, line 13: format gui slot 0 of player with diamond named "test" with lore "test" to close then run:')
 
Do you have TuSKe?
I dont have TuSKe, because it is does not have a 1.14.4 version, would it be better to run a server on 1.12.2?
[doublepost=1576731257,1576730732][/doublepost]
I dont have TuSKe, because it is does not have a 1.14.4 version
I dont have TuSKe, because it is does not have a 1.14.4 version, would it be better to run a server on 1.12.2?
I think ive downloaded TuSKe, it shows up in the plugins but the code does still not work, and im not sure if the plugin actually is working 100%

EDIT: I tried using TuSKe, got the code to work but was given a massive error when trying to run it. I believe TuSKe does not working for 1.14.4

EDIt EDIT: Apparently TuSKe works, but I still have no idea why the to run isnt working
 
Last edited:
Status
Not open for further replies.