Need help with a state that reverses item effects (FFXII Nihopalaoa)

SefirosuKuraodo

Veteran
Veteran
Joined
Apr 7, 2015
Messages
66
Reaction score
20
First Language
English
Primarily Uses
N/A
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!
 

AdeptusUK

Veteran
Veteran
Joined
May 27, 2020
Messages
63
Reaction score
15
First Language
English
Primarily Uses
RMMV
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...
 

SefirosuKuraodo

Veteran
Veteran
Joined
Apr 7, 2015
Messages
66
Reaction score
20
First Language
English
Primarily Uses
N/A
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.)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

grief... lol... I keep seeing request for MZ versions of MV plugins. this is why I haven't moved over and just MZ for my MV project.
Egg-sitting minigame is coming along nicely. Are you a bad enough dino to keep all these raptor eggs warm?

I forgot to post the animated version of the previous map I was working on. I'm still arguing with myself on if I like the stark blue ground better than the undergrowth ground used on the waterfall map. Hmm...
now that fmod is free for indie(<200k revenue), it would be interesting to see someone add fmod support for rpg maker
Can't say I can't promise progress on a project just yet. But I can say I had fun databasing tonight. :)

Forum statistics

Threads
105,802
Messages
1,016,578
Members
137,496
Latest member
sulthorne
Top