- Joined
- Jul 22, 2014
- Messages
- 5,624
- Reaction score
- 5,104
- First Language
- English
- Primarily Uses
- RMVXA
Hi guys - did some searching as well as a lot of trial and error, and couldn't find the answer to this. Can anyone help me out?
I'm trying to have a character immediately use a skill to damage all enemies when a State is removed from them. I've called the force_action method with the Skill ID (176) and tried a few different targets (such as 2 and -1), and added in a Play ME script line to confirm that the block is being hit.
When the state is removed, the ME plays but the Action doesn't seem to happen at all. No animation, no battle log entries, no damage. It's as if the line wasn't there. What is happening and how can I get it to force the action properly? Thanks!!
I'm trying to have a character immediately use a skill to damage all enemies when a State is removed from them. I've called the force_action method with the Skill ID (176) and tried a few different targets (such as 2 and -1), and added in a Play ME script line to confirm that the block is being hit.
When the state is removed, the ME plays but the Action doesn't seem to happen at all. No animation, no battle log entries, no damage. It's as if the line wasn't there. What is happening and how can I get it to force the action properly? Thanks!!
Code:
#-------------------------------------------------------------------------- # * Remove State #-------------------------------------------------------------------------- alias :remove_state_with_specials :remove_state def remove_state(state_id) remove_state_with_specials(state_id) if (state_id == 94 and self.id == 12 and self.hp > 0) force_action(176, -1) Audio.me_play('Audio/ME/Fanfare1') end end

