I posted this on RPGMaker.net's forums and never got a satisfactory answer so hopefully y'all can help me out here orz
Is there any way to make the ActionFailure vocab (or even a custom phrase) appear when a status effect gets nullified by, say, a piece of equipment the actor is wearing? Right now it doesn't display any message at all when the effect is nullified and it just looks weird. Not a game breaking bug or anything but I'd like to at least have the game acknowledge it worked LOL.
Thanks!
Sound like something I saw once before. Something to do with yanfly battle script I think.
What scripts are you using?
Hm, this is going to require some fiddling with Window_BattleLog and Game_ActionResults, which is an object linked to Game_Battler. I'm not home to fiddle with RPG Maker, but here's the general idea of what to do:
1. In Game_Battler, item_effect_add_state_normal deals with states added via skills and item_effect_add_state_attack should deal with states applied to attacks. Both will add the state if successful, so we add an else-statement where we will push the data into a nullified_state object.
1a. If you take a look at add_state, one of the things it does is push the state into the added state object. The battle log uses this object to show states that are added.
1b. The else statement is going to trigger for any missed states. If you want to narrow down the number of nullified states versus missed states getting stored, you'll have to narrow it down. For example, state_resist?(state_id) is based on the State Resistance feature.
2. We'll need to put the nullified_states in the Action Results. Based on the added_state and removed_state stuff in there, we'll also need to initialize/clear this and create a method to display the array.
3. We create a method in the Battle Log for our nullified_states. the display_removed_states should be the one to copy as we probably don't need to worry about identifying either the death state or an empty message.
3a. The display_changed_states show the added and removed states. This would be the ideal method to put our nullified states.
---
Draft and/or tested script may come from me later.
Moved to: RGSS3 Script Requests
Eep! Sorry it wound up in the wrong board, I wasn't sure if it'd require a script or not :V;;
Thanks, I'll test this out in a bit and let you know if it works!!
Just my username is fine.