What's the best way to make lose items/weapons/equipment temporarily to all party members due to a knock down event, but only to get those weapons somewhat later? It's not at all an original idea, but the closest example I have is from Chrono Trigger when at some point you get knock down by Dalton and you get you your equipment stolen and have to find them back. There are probably more games where that happens, but it's the one I got for as an example.
How to temporarily make lose items/weapons/equipments?
RPG Maker MV SupportThis can be done with this simple command.
Use commands when poisoned or when enemies use this skill.
Use commands when poisoned or when enemies use this skill.
Yes, this is for the "you lose them"-part. To get them back, you can use variables or switches to store what weapons your character has at the moment, and then you can eg place treasure chests which gives you the items, according to the stored variables. When having many different weapons the amount of if-branches can be high, but hey.. thats okay I think.
there is a different way to handle this - you can have a state seal the equip slots.
sealing the slots will make them unusable, causing all weapons to go back to the inventory.
and then the player can re-equip them after the battle, because during battle he has no access to equip screen (unless you add a script or plugin)
sealing the slots will make them unusable, causing all weapons to go back to the inventory.
and then the player can re-equip them after the battle, because during battle he has no access to equip screen (unless you add a script or plugin)
I want the player and the party members to temporarily lose their equipment, weapons, but more during an autorun event for story part where the party gets knock down and not necessarily in a battle event. But like V_aero said I guess I'll have to add lots of switches/variables to unequip / equip the party from chests to recover the party's stuff.
According to my understanding, the post owner wants it to disappear immediately. And let players search again
Sometimes searching again His would be fun.
But for me, a rare sword should not disappear Because it's sad to have to find a new one haha
Sometimes searching again His would be fun.
But for me, a rare sword should not disappear Because it's sad to have to find a new one haha
Another way to do this is to disarm all of them and take the sword out and put the condition of receiving it instead?
the biggest peoblem with all the solutions so far is that the developer needs to find a way to remember which equipment was lost. That is no problem if there is only one equippable weapon per actor, but what if the player could have found or purchased from dozens of different swords?
I think you should look for a plugin that enables either multiple inventories (changing the current inventory to a different one while keeping the original inventory the same) or for a container script (create boxes for storage on the map).
Those plugins should also have additional commands to handle this.
I think you should look for a plugin that enables either multiple inventories (changing the current inventory to a different one while keeping the original inventory the same) or for a container script (create boxes for storage on the map).
Those plugins should also have additional commands to handle this.
That's what I was wondering if there was a plugin that would allow me to seal away the equipment temporarily to get them back later.
I was going to suggest what Andar said. Here's one that works well.
If you just want the inventory gone temporarily, you don't need any sort of special plugins. Here's what I'd do:
1. As mentioned already, you want to get everybody unequipped. A state that seals all equip slots is probably best because it'll dump all those items into the inventory. So do that, then apply that state to everyone in the party.
2. You can swap your party's inventory to a temporary, inacessible-to-the-player location on $gameParty with this script call:
Then, when it's time to give them back their inventory, use that same script again. (Each time you execute that line of code, it'll swap those two inventories (the main and the backup) for one another.
Edit:
As an alternative to using a state to clear equips, you can use the more direct script call method:
This will cycle through the entire party and dump all of their equipment to the inventory.
1. As mentioned already, you want to get everybody unequipped. A state that seals all equip slots is probably best because it'll dump all those items into the inventory. So do that, then apply that state to everyone in the party.
2. You can swap your party's inventory to a temporary, inacessible-to-the-player location on $gameParty with this script call:
Code:
[$gameParty._items, $gameParty._itemsBackup] = [$gameParty._itemsBackup || {}, $gameParty._items || {}]
Then, when it's time to give them back their inventory, use that same script again. (Each time you execute that line of code, it'll swap those two inventories (the main and the backup) for one another.
Edit:
As an alternative to using a state to clear equips, you can use the more direct script call method:
Code:
for (let member of $gameParty.members()) member.clearEquipments();
This will cycle through the entire party and dump all of their equipment to the inventory.
Would that work with item being locked up (Like healing items, such as potions)?
It should work with every single item in the inventory
Original thread: https://forums.rpgmakerweb.com/threads/how-to-temporarily-make-lose-items-weapons-equipments.120157/