Left/Right click in 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 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.

GamingGeek

Supporter
Aug 1, 2017
46
0
0
Is it possible to do different actions in a GUI with 'on inventory click' depending on which button they used? I'm using Mirreski's 1.8 fork.
 
It is possible, I know skellett has support for it:
code_language.skript:
on inventory click:
    if clicked type is left mouse button:
I'm sure other addons may also have support for it, if not it shouldn't be too difficult to achieve with skript-mirror either

Edit: Now that I think about it my example might be vanilla besku's fork syntax, I'm not sure and can't check now as I'm on my way out but either way I know for sure skellett does have support for it, my syntax just might be wrong
 
It is possible, I know skellett has support for it:
code_language.skript:
on inventory click:
    if clicked type is left mouse button:
I'm sure other addons may also have support for it, if not it shouldn't be too difficult to achieve with skript-mirror either

Edit: Now that I think about it my example might be vanilla besku's fork syntax, I'm not sure and can't check now as I'm on my way out but either way I know for sure skellett does have support for it, my syntax just might be wrong
I tried that and it didn't work.
 
Status
Not open for further replies.