Armor that Inflicts a Status Ailment at Battle start.

Hi there,

I'm trying to figure out a way to make a certain accessory, when equipped, automatically inflict the wearer with a status ailment (in this case the "Curse" State that I added in the database) at the battle start.

I'd also like to make a skill or item that when used would be able to reverse a Sealed equip slot.

Any help would be appreciated!

Thanks!

EDIT - Using VX Ace
Here you go. http://www.rpgmakervxace.net/topic/4713-auto-states/

Not sure how to help you on your other issue though.
I'd also like to make a skill or item that when used would be able to reverse a Sealed equip slot.
Have a state seal the equip slot (using "seal equip" feature)


Have your skill/item remove the state.


State removed? Slot unsealed.


State added? Slot sealed.
Awesome! You guys rock! I'll play around with this and see if I can't make it work!
So now I've run into a new issue, the moment I cure the curse so that the item can be removed the auto state re-does it's thing and curses them and makes the slot fixed again...

Not sure how to code around that.

I can make a common event so that when the skill/item is used it removes the equipped item from all characters, but that isn't the best way as I'd have to make one for every different item that I want to have this effect.

Is there a better way to go about this?

EDIT- I just tested my common event theory, it works as far as removal, however it also removed EVERYONE's accessories. So that method is out...
You can have an event check whether the thing is equipped.
You can have an event check whether the thing is equipped.
The issue is that I need to find a way to remove the equipped item while removing the curse, or it just never stops being equipped and cursing the wearer.
The issue is that I need to find a way to remove the equipped item while removing the curse, or it just never stops being equipped and cursing the wearer.
You can run a common event that checks if the state is not applied and remove the equip is that is the case.
You can run a common event that checks if the state is not applied and remove the equip is that is the case.
Okay, using this method I made a script for removing the Accessory but if it is armor or a weapon that is causing it then it will do nothing.

I tried making multiple events so it would check each time after it cured the curse for the curse state and if It did remove the next equipment type but it didn't work.
You could possibly use my States extension script so that you could run methods when a state is removed... http://forums.rpgmakerweb.com/index.php?/topic/24559-state-extension-v100/

I tried making multiple events so it would check each time after it cured the curse for the curse state and if It did remove the next equipment type but it didn't work.
Well if you did check after using the remove curse, then the curse isn't there anymore possibly at that moment (it might be running before the auto-states could return the state). Try doing it this way:

Make the remove curse do nothing but execute a common event then make the common event check if the curse state is there. If yes, remove the equipment.
You could possibly use my States extension script so that you could run methods when a state is removed... http://forums.rpgmakerweb.com/index.php?/topic/24559-state-extension-v100/

Well if you did check after using the remove curse, then the curse isn't there anymore possibly at that moment (it might be running before the auto-states could return the state). Try doing it this way:

Make the remove curse do nothing but execute a common event then make the common event check if the curse state is there. If yes, remove the equipment.
But the issue then would be it needs to check which character has been cursed and only remove the equipment that is causing the curse from only that character, I'm not sure outside of scripts there is a way of doing that effectively.
You could my scripts...

For the evented one, you could utilize the damage formula to actually save the ID of the target actor so that you can use it on the event...
You could my scripts...

For the evented one, you could utilize the damage formula to actually save the ID of the target actor so that you can use it on the event...
I'm not sure I have the know how to do that...
$game_variables[iD] = a.id ; damage_formula_if_you_have_damage_else_put_0_in_here

then use that variable to denote the actor using the event commands.

Original thread: https://forums.rpgmakerweb.com/threads/armor-that-inflicts-a-status-ailment-at-battle-start.36123/