Hime-Works / Requests

Bug reports and requests that may require longer discussions and is not suitable to leave on the blog
http://himeworks.com/
GNU General Public License v2.0
7 stars 9 forks source link

Multiple Inventories question? #358

Open master2015hp opened 6 years ago

master2015hp commented 6 years ago

Hi Hime, i am so glad that i found your Multiple Inventories plugin, it solve my problem but there is something i need your help :| in my game i want when player enter the dungeons, all items those they have collected will be stored in Inventory #2; If they fail to pass the dungeon they will lose all items (that mean delete all items in Inventory #2) is there an easy way to do this? And another things that beside of delete Inventory #2, i want to make sure to delete all items those are equipped by Actors too if they were from Dungeon Can you give me some advice Hime, or if it's too complex ... T.T thank you

HimeWorks commented 6 years ago

When you create an inventory, you specify an ID for the inventory to make it easy to reference. Let's say you called it "Inventory 2".

To delete an inventory, you can say

$gameParty.deleteInventory("Inventory 2")

For items that are equipped, you can unequip your actors, but then question is if an actor can bring in their own equips, how would you distinguish between an item obtained during the dungeon run, and items that you brought in?

master2015hp commented 6 years ago

Thanks Hime, you're right we can't tell if those items were brought in or found in dungeon. In that case can you tell me how to delete all items the Actor(s) are equipped? And by this chance i was thinking how to transfer items between 2 inventories? Since if player failed the dungeon all items will be wiped out so he may want to carry few necessary items into dungeon only (inventory 2) and leave the rest in Inventory 1. Please tell me what to do, thanks Hime

HimeWorks commented 6 years ago

If you want to transfer items between inventories and you would like the player to be able to do this, you will need a plugin that will give the player a way to transfer items. For example, a simple "select items to bring into dungeon" would likely require such a custom scene.

For deleting items, you can just unequip all actors and then delete the inventory.