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.

Anvil Typing GUI

Discussion in 'Skript' started by PlaycastSteffen, Jun 15, 2018.

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

    Joined:
    Jun 15, 2018
    Messages:
    14
    Likes Received:
    0
    I am working on a script where you type the command "/name" and it opens an anvil gui that you type in the name you want to be changed to and then click in slot 2 of the anvil on a piece of paper that says submit. I do not know how open an anvil gui, how to set the slots, how to test when paper (submit) is click, or how to create a variable of what they typed.
     
    • Creative Creative x 1
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Code (Skript):
    1. command /test:
    2.     trigger:
    3.         open an anvil gui named "Name" to player with default text "Write what you want!"
    4.    
    5. on close anvil gui named "Name":
    6.     set {YourVariableHere} to event-text
     
    • Agree Agree x 1
    • Useful Useful x 1
  3. PlaycastSteffen

    Joined:
    Jun 15, 2018
    Messages:
    14
    Likes Received:
    0
    Thank you
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    You're welcome
     
  5. PlaycastSteffen

    Joined:
    Jun 15, 2018
    Messages:
    14
    Likes Received:
    0
    I get 2 error with that code. The errors include can't understand condition open an anvil gui named "Name" to player with default text "USERNAME TO INVITE" and can't understand event on close anvil gui named "Name"
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    hmm.... i have a bunch of addons that is probably why... i THINK its SkQuery (lime) that i am using for this. Give that a try
     
  7. PlaycastSteffen

    Joined:
    Jun 15, 2018
    Messages:
    14
    Likes Received:
    0
    That's what I figured. I'll try it. Thanks.
     
  8. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Youre welcome :emoji_slight_smile:
     
  9. PlaycastSteffen

    Joined:
    Jun 15, 2018
    Messages:
    14
    Likes Received:
    0
    Unfortunately that was not the correct plugin
     
  10. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    hm.... okay I will keep searching
    --- Double Post Merged, Jun 15, 2018, Original Post Date: Jun 15, 2018 ---
    actually, here is a list of addons i have, that MAY be used for this, i cant seem to find this in the docs anywhere
    (someone else posted it the other day, and i helped them, thats the only reason i know it)

    SkDragon (Probably not)
    Skellett (Maybe)
    SkQuery-Lime (You said no)
    skRayFall (I doubt it)
    skript-miror (Most likely not)
    skript-ping (NO)
    SkStuff (Hm.... maybe!?!?)
    SkUniversal (Probably not)
    SkUtilities (Hm... possibly?!?!)
    Tukse (Very possible)
    WolvSK (Highly doubt it)
     
  11. PlaycastSteffen

    Joined:
    Jun 15, 2018
    Messages:
    14
    Likes Received:
    0
    Lol I'll get them all
     
  12. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    well wtf.... maybe one of them is outdated?
    Which version/author of skript are you running?
    which version of MC are you running?
     
    • Funny Funny x 1
  13. PlaycastSteffen

    Joined:
    Jun 15, 2018
    Messages:
    14
    Likes Received:
    0
    Latest version of skript. Minecraft 1.12.2
     
  14. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    by latest are you using bensku 2.2? or njols?
     
  15. PlaycastSteffen

    Joined:
    Jun 15, 2018
    Messages:
    14
    Likes Received:
    0
    I am just an admin/developer so I am not sure. How would I check?
     
  16. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    /version skript
     
  17. PlaycastSteffen

    Joined:
    Jun 15, 2018
    Messages:
    14
    Likes Received:
    0
  18. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    hm.... okay, so then im completely stumped.... i will keep trying to figure this out.
     
  19. PlaycastSteffen

    Joined:
    Jun 15, 2018
    Messages:
    14
    Likes Received:
    0
    Where would I download Tukse?
     
  20. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    EEEEE ok, after adding/removing each individual god damn add-on, i figured it out, it IS WOLVSK
     
    • Like Like x 2
Thread Status:
Not open for further replies.

Share This Page

Loading...