Click Type: 'number key'

  • 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.
Jan 19, 2018
18
1
3
There is a click type in skript called 'number key'
https://skriptlang.github.io/Skript/classes.html#clicktype

I want to get the actual number pressed (1-9) in an inventory click event, but using the click type expression only gives me that a number key was pressed.
E.g.

Code:
on inventory click:
    if click type = number key:
        set {_key} to ???
        #how to get which key was pressed here?

(I have tried searching docs, but to no avail)
 
Status
Not open for further replies.