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

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Skript GUI help

Discussion in 'Skript' started by SilentWitch, Oct 28, 2018.

Thread Status:
Not open for further replies.
  1. SilentWitch

    SilentWitch Member

    Joined:
    Oct 28, 2018
    Messages:
    2
    Likes Received:
    0
    I'm attempting to use skript to create a multiverse gui world manager. I want to create a gui and when an object in the gui is clicked to have a new gui open.

    My laptop died so this is from my phone, I know a bit of syntax isn't right so please forgive me.

    My code so far has been command /menu: trigger: open chest with 3 rows named "&e&lCustom Menu" to player format slot 0 of player with grass named "&b&lMinigameHub" to close then run [execute console command "mvtp %player% MinigameHub"]


    That works fine, but I can't figure out how to
    add another block that when clicked opens a new gui with its own options.
     
  2. Dave

    Dave Active Member

    Joined:
    Jul 20, 2018
    Messages:
    228
    Likes Received:
    9
    try the event ''on inventory click''
     
  3. BrettPlayMC

    Supporter

    Joined:
    Jan 26, 2017
    Messages:
    715
    Likes Received:
    53
    Don’t use format slot, use skQuery’s GUI manager.
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Sorry Brett but I have to disagree with you here.
    95% of the community will suggest to use TuSke GUIs over SkQuery's GUIs any day.
     
  5. BrettPlayMC

    Supporter

    Joined:
    Jan 26, 2017
    Messages:
    715
    Likes Received:
    53
    I mean both are better than format slot..
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    oh i see what you mean,
    i was thinking they were using Tuske because the format slot, but remembered its format gui slot 0 of player
     
  7. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,501
    Likes Received:
    107
    Medals:
    Format slot IS SkQuery's GUI manager.
     
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Thats what I thought
     
  9. BrettPlayMC

    Supporter

    Joined:
    Jan 26, 2017
    Messages:
    715
    Likes Received:
    53
    Oh I thought it was Skript’s built in GUI manager.
     
  10. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Skript doesn't have a built in GUI manager.
    I mean you can make shift it with open inventory effect, inventory click events, and set slot effects, but thats about it!
     
  11. Scholler

    Scholler Active Member

    Joined:
    Aug 6, 2018
    Messages:
    130
    Likes Received:
    9
    So. Another block, that opens another gui? Like this?
    Code (Skript):
    1. command /menu:
    2.       trigger:
    3.             open virtual chest inventory with size 6 with name "&e&lCustom Menu" to player
    4.             format gui slot 0 of player with a grass with name "&b&lMinigameHub" to close then run console command "mvtp %player% MinigameHub"
    5.             #Now is the part you don't know:
    6.             format gui slot 1 of player with a bedrock with name "&cSome Other Gui" to close then run player command "agui"
    7.  
    8. command /agui:
    9.       trigger:
    10.             #same here, virtual chest inventory, format gui slot,...
    You can change the "bedrock" to another block, the name, the command. This is works only with Tuske, I am using TuSKe 1.8.3-PikachuPatch-v3
    And you can add other blocks with format gui slot 2,3,4... of player with something with name "something"
    And now, if this block opens another gui, you don't need to write "to close then.." only "to run player/console command"
    I hope this is what you want
     
Thread Status:
Not open for further replies.

Share This Page

Loading...