Forgive me if this topic has been discussed before, but I was wondering if there was a way for a skill to disable, unequip or even destroy equipment or accessories as an effect, either by script or some way I haven't seen yet.
Skill that unequips or destroys equipped items
● ARCHIVED · READ-ONLY
-
-
Link a common event to the skill that unequips the item from the user (and then discards it).
-
As it has been said you can use a common event to remove that said items from the user/target equipment and then delete it.
This is one way of doing this.
Here are few more ways of doing it.
- Skill Formula: you can use skill formula to check and remove that said item.
- Script call in a skill formula: this is basically the same as doing it with a skill formula but allows usage of many more characters (that usually do not fit in the formula box). To do this you have to add a little script containing what you would usually write in the skill formula and then call it in the formula box.
- Script Call in a common event: you can use a script call in a common event to check your skill target and then remove the said item. This does more or less the same you do when using event commands but without unnecessary operations.
-
You'll need to use a script call to figure out which piece of equipment you had equipped, so that (if you want to destroy it and not just unequip it) you can remove that equip from your inventory after unequipping it.
I believe the correct syntax for this is:
if a.equips[n] == nil; $game_variables[x] = 0; else; $game_variables[x] = a.equips[n].id; end; ((damage formula here))
Replace n with the slot of the equipment (0 for weapon, 1-4 for armor slots 1-4), and x with the Variable you want to use to track which armor item was unequipped. Then, in your common event, you can use that variable to know which item to discard from the inventory. If the variable is not 0, use the following code line to do this easily: $game_party.gain_item($data_armors[$game_variables[x]], -1, false). -
These are all good for unequipping or destroying equipment, but what if I just want to disable the effects of said equipment for the battle without unequipping it? Is that possible?
-
These are all good for unequipping or destroying equipment, but what if I just want to disable the effects of said equipment for the battle without unequipping it? Is that possible?
Much harder to do. You would need to create a script to disable the effects of equipment per se, without unequipping it.
Of course, you could unequip it, and using a very similar technique to what I described above, immediately re-equip it after the battle using a Common Event. That would give you the same effect as disabling it for the remainder of the battle. -
Question: Wouldn't a Seal Equipment feature on a state do this for Unequipping, considering Seal Equipment forbids items being equipped in that slot? (like how a Two-Handed Sword removes the shield) The state doesn't even have to last more than one turn for that, I bet.