The code you posted works fine on my end.
I can think of 3 possible reasons why it's not working for you.
The state isn't actually active on the target when it is killed.
There is something wrong with the state. Please post a screenshot of the database entry of the state, including whatever...
DreamX's plugin works just fine in Front View Battle on my end, One More system and all. It's possible that another plugin is conflicting with it. Try turning off all other battle related plugins and see if that changes anything.
You can turn off the help window that appears when selecting a target. Look for the 'Select Help Window' parameter in YEP_BattleEngineCore
Actually, it seems that YEP_BattleEngineCore also removes the enemy select window by default. There's likely another plugin somewhere that causes it...
You mention that your counter state is an 'action end' state. That could also be the cause, depending on if the plugin defines a counter as a separate action. Can you set it to 'turn end' and see if this fixes the interaction with ranged attacks?
You need to edit the metadata of a track and add in LOOPSTART and LOOPLENGTH tags, with LOOPSTART indicating the sample at which the loop starts and LOOPLENGTH indicating how long the loop is in samples. You can do this using Audacity.
Things like HP and MP regeneration happens at the end of a turn. With 'action end' the state will be removed before the end of the turn can happen, so regeneration effects won't happen on the state's last turn. Thus, use 'turn end' to make sure that regeneration effects can happen on a state's...
Set on the floating islands that make up Aethera, Dragon Hearts: A Daughter's Promise is an RPG in which you take control of Isacaiah, a young girl who promised her parents to seal an ancient, mystical crystal. Unfortunately, the crystal was stolen, so she has to venture out and...