Solved Inventory area help

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

KrswtkhrSK

Member
Jan 28, 2017
27
2
1
When you open inventory, is there a way to judge whether it is a player's area or a chest area?

WsmBr8Y.png


For example, if there is a diamond in the chest (blue), click on it to make an event that happens.
code_language.skript:
on mor.inventory click:
  if event-item is diamond:
    (code...)
However, even if you click on the diamond in the player 's inventory (red), a similar event will occur.

I want to raise an event only if there are items in the chest.
code_language.skript:
if name of event-inventory contains "%event-player%":
  stop
It looks like no good:emoji_disappointed_relieved:
thanks.
 
When you open inventory, is there a way to judge whether it is a player's area or a chest area?

WsmBr8Y.png


For example, if there is a diamond in the chest (blue), click on it to make an event that happens.
code_language.skript:
on mor.inventory click:
  if event-item is diamond:
    (code...)
However, even if you click on the diamond in the player 's inventory (red), a similar event will occur.

I want to raise an event only if there are items in the chest.
code_language.skript:
if name of event-inventory contains "%event-player%":
  stop
It looks like no good:emoji_disappointed_relieved:
thanks.
code_language.skript:
if clicked inventory is player's inventory:
It may be event-inventory, also there's no real reason to use skMorkaz or its inventory click event
 
  • Like
Reactions: KrswtkhrSK
I confirmed, thank you!
code_language.skript:
if clicked inventory is player's inventory:
It may be event-inventory, also there's no real reason to use skMorkaz or its inventory click event

I'm sorry i forgot.
I needed to use Morkaz for event-number.

I want to record the slot of the item I clicked on.
is there an alternative to event-number in inventory click event?
 
I confirmed, thank you!


I'm sorry i forgot.
I needed to use Morkaz for event-number.

I want to record the slot of the item I clicked on.
is there an alternative to event-number in inventory click event?
"%clicked slot%"

example

if clicked slot is 49:
do somethings
 
Status
Not open for further replies.