How to determine clicked slot number in SkQuery 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.

2266Flash

New Member
Jun 23, 2020
8
0
1
24
Hi! I need to know how to determine a clicked slot number for my skript. I am making a GUI with SkQuery.

Here is my code:
Code:
set {_} to event-slot
send "%{_}%"

However, this only prints "air" rather than slot 1, 2, 3, etc.

Please help!

Thanks,
Flash
 
Hi! I need to know how to determine a clicked slot number for my skript. I am making a GUI with SkQuery.

Here is my code:
Code:
set {_} to event-slot
send "%{_}%"

However, this only prints "air" rather than slot 1, 2, 3, etc.

Please help!

Thanks,
Flash
The skript only prints 'air' to you because the 'event-slot' verifies the item that is in the inventory you are viewing. Try with this:
code_language.skript:
set {_slot.number} to index of event-slot
send "%{_slot.number}%"
This should send the slot number to you.
 
Status
Not open for further replies.