That's a known issue in Engr's script. It's written in the script intro itself.
Edit:
Did a test with both script and yes, it's confirmed to be an error from Engr's script. Or rather, a bad loop in between Engr and the Game's default main script.
Reason for the crash is, every time an actor die, the main engine script runs the clear state method. And if the actor is dead, and you try to add a state, it will run the clear states again.
So in Engr's script, whenever it runs a clear state method, it tries to add state back to the dead actor. But in the mean time, the main script run the clear state method again during state adding. This caused an infinite loop that result in Stack overflow.
Edit again:
Here's the hot fix for the script. It disables states clearing on death to avoid the infinite loop. Any existing states will stay upon death, but they won't update until the actor is revived. Means if you have a state with 5 turns, it will stay on 5 until the actor is alive again.
I'll leave the full fix for Engr when he/she notices this post. You might want to post in that script's tread to remind him of the bug too.
Replace
everything below
#==============================================================================
# ¥ Editting anything past this point may potentially result in causing
# computer damage, incontinence, explosion of user's head, coma, death, and/or
# halitosis so edit at your own risk.
#==============================================================================
with this:
Code:
class Game_Actor < Game_Battler attr_accessor :passive_states_adik alias equip_skill_states_adik equip_skill def equip_skill(index,id) equip_skill_states_adik(index,id) refresh_passive_states_adik end def refresh_passive_states_adik return if @equip_skills.nil? @passive_states_adik = [] if @passive_states_adik.nil? @passive_states_adik.each do |id| self.erase_state(id) @passive_states_adik.delete(id) end @result.clear @equip_skills.each do |sk| next if sk == 0 if ADIK::EQUIP_SKILL_STATES::LIST.keys.include?(sk) id=ADIK::EQUIP_SKILL_STATES::LIST[sk] self.add_state(id) @passive_states_adik.push(id) end end end def clear_states super refresh_passive_states_adik end def die @hp = 0 endend