Inventory Glitch/Bug?

  • 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.

Eggie

New Member
Feb 27, 2019
8
0
0
Codes below does not give me any errors
VERSION: Skript 2.4-alpha4

Code:
command display list:
    trigger:
        open chest with 6 rows named "&6&lList" to player
        wait 1 tick

        # set slots here #

        stop trigger


on inventory click:
    if inventory name of player's current inventory is "&6&lList":
        # do things... #

My Problem:
A player opens up the chest GUI using /display list... When the player interacts with the items, it should activate the on inventory click event and go into the if statement. BUT, it actually doesn't

I tried to see what this is:
inventory name of player's current inventory

Code:
on inventory click:[/COLOR][/LEFT]
[COLOR=rgb(44, 44, 44)]
[LEFT]    send "%inventory name of player's current inventory%"
    send "%player's current inventory%"
    send "%player's current inventory's name%"


It gave me this respectively:
- ""
- "inventory of <none>"
- "<none>"

Note, it also sends <none> when the player interacts in it's own inventory.
Welp? If this is not fixable, then I can find another way around it using variables.​
 
Codes below does not give me any errors
VERSION: Skript 2.4-alpha4

Code:
command display list:
    trigger:
        open chest with 6 rows named "&6&lList" to player
        wait 1 tick

        # set slots here #

        stop trigger


on inventory click:
    if inventory name of player's current inventory is "&6&lList":
        # do things... #

My Problem:
A player opens up the chest GUI using /display list... When the player interacts with the items, it should activate the on inventory click event and go into the if statement. BUT, it actually doesn't

I tried to see what this is:

Code:
on inventory click:[/COLOR][/LEFT][/COLOR][/LEFT]
[COLOR=rgb(44, 44, 44)]
[LEFT][COLOR=rgb(44, 44, 44)]
[LEFT]    send "%inventory name of player's current inventory%"
    send "%player's current inventory%"
    send "%player's current inventory's name%"



It gave me this respectively:
- ""
- "inventory of <none>"
- "<none>"

Note, it also sends <none> when the player interacts in it's own inventory.
Welp? If this is not fixable, then I can find another way around it using variables.​
Probably due to https://github.com/SkriptLang/Skript/issues/2069
 
Status
Not open for further replies.