There is an accessory in Final Fantasy XII called "Nihopalaoa", and what it does is reverse the effects of items used by the wearer. So, a Hi-Potion that would normally heal a player by 1600 HP would instead damage said player by the same amount. An Antidote would normally remove the Poisoned state from a player, but when wearing the Nihopalaoa accessory the Antidote would instead apply the state. This is useful against many enemies of the game, as an item like a Remedy while equipped with the accessory could potentially inflict every status effect upon the enemy (at least the ones the foe isn't immune to.)
Is there a way to create a state that would grant an actor the same ability? Perhaps a Lunatic note tag code? Any advice and suggestions are appreciated!
I think this would be quite a lot of work. You would need to amend every item in your game such that it could perform its normal effect or the opposite effect (without performing it's normal effect), probably by calling a common event and removing any function from the item itself. I'll try to find the point at which the script applies and item effect to give you a starting point...
I wonder, is it possible to achieve something like this with the item's Formula box? I know that there are formulas that you can do that will check the target to see if there's a certain state applied, for example I have a skill that guarantees a Critical Hit if the target has a certain state applied to them:
c = (a.weaponDamage(b)); if (b.isStateAffected(4)){ b.result().critical = true; c*=1;} c
So could I then manually make every item check and see if the user of the item has the "Nihopalaoa" state? So if user is affected by state, the result is damage, else heal? If user is affected by state, inflict Poison onto target, else remove it from target? If so, how would I structure that? I tried to write out a few:
if (a.isStateAffected(61)) {b.gainHP(-100)} else {b.gainHP(+100)}
if a.isStateAffected(61) b.gainHP(-100); else b.gainHP(+100)
But they don't seem to work for me - instead they seem to deal 1 damage (I have a plugin that makes the minimum damage 1 or more, so they may even be dealing 0 damage on their own.)