Comments

Log in with itch.io to leave a comment.

(+1)

Muchas gracias por el Plug in, te voy a dar los créditos que te mereces en mi juego ;)

(+1)

This is a fantastic plugin and I'm shocked MZ didn't already come with this function!

I do have a small request, I really hope it's something simple to do!

But could you make it so that the Discarded Item ID# is saved into a specified variable?

I'm asking because I use an event spawner to "drop" an item onto the map when it is discarded, BUT I need the ItemId saved to a variable in order to do that...

Thank you! Also something like that won't exactly work if the player decides to discard multiple items during their inventory management. Also, there would need to be consideration for if the player discards such an item, saves and reloads the game. Then there's moving in between maps which may flush the item out depending on how this is setup.

(1 edit)

I should have explained a bit more, apologies.

I've made several modifications to player inventory, to the point where only 10 items are able to be held, and only 1 of each item is stackable, so there are no issues with number of items discarded, since only 1 item per inventory slot. (It's a minimal item game with resource management and choosing what to carry with you etc)

The concerns about the logistics of dropping items on a map are completely valid, thankfully however, there is a plugin I use to spawn in an event that mimics the discarded item is VisuStella's Movement Core, and it works extremely well after an Event Template Map is set up:


The majority of my item collecting is already set up using this plugin. Moving between maps and saving/loading are not issues as that plugin has options to make spawned events permanent. (of course, too many items could cause increased resource draw, but again, these are limited items.)

All I'd like to do is get the ItemID# of the item that was selected and discarded and save it to a variable.

So far I've tried:

    $gameVariables.setValue(1, this._item)

    $gameVariables.setValue(1, item)

    $gameVariables.setValue(1, this.item)

etc

****UPDATE

actually just before posting this I happened to try adding .id, similar to  $gameParty.lastItem().id, and it worked!


If I did have any further thoughts on this plugin, it would be a request to add an option to bypass the "How many of the item to discard" if the player only has 1 of that item in the inventory. That would look very clean and streamlined!

Thank you for the quick reply!