Check Item's Position in Inventory.

Hey, everyone.
Hope we are all staying safe.

I am working on a little side project, that is more or less a survival/horror game.

I am trying to work out a way to change the inventory system, though I am not sure if what I want, can be done without a plugin.
I am hoping I can do it via script calls, however, I am unable to find a way that works.

Essentially, the inventory is limited to 8 slots.
I've created a HUD to show these 8 slots in a bar at the bottom of the screen.

I need a way to check what item is in what position of the inventory, in order to be able to display the correct items in the bar.

Is there a way to do this via script calls?
if you're talking about the default inventory, the order is always in the order of the database ID for those items that are in party inventory.
you would have to check the items that are non-zero in inventroy (no script needed for that, control variable can do it in game data) and then count up the ID until you have eight different items to get the first eight.

there is no script call for this because the engine doesn't sort anything from the database.

Original thread: https://forums.rpgmakerweb.com/threads/check-items-position-in-inventory.130186/