DoubleResume Fiber Error (yet not script call)

Hi guys.


I have an issue now : Using yanfly's death common event script, I'm trying to make a characther deliver a final burst when dying. As death characthers can't cast spells, what I did is when the


characther dies, it calls a common event that revives it, cast the spells, and dies right away. But it makes an DoubleResume Fiber Error. See the code and the picture below :


Change Status [Actor] : - Death


Force [Actor] to use [Blizzard] on Last Target


Change Status [Actor] : + Death


wERcTMt.png



The console didn't printed anything when the error occurred. Only "HUD Loaded" when the game started.


Where is the problem? How can it be solved and produce the desired effect?


Thanks and have a good day! As always... hehehe.
Could you post the script?
Sure. Just follow this link and you should find it quite easily. https://github.com/Archeia/YEARepo/blob/master/Battle/Death_Common_Event.rb


EDIT : I made it work! Well... almost. Tried to make a chain of common events, but problem is when I add the Death status to my characther, it screws up and shows error. But when I use Force Skill to force the characther to kill itself (suicide), it triggers the Death Common Event again... so either the game crashes or I'm trapped in an endless loop.
Make a state that doesn't allow something to die. Apply it to the character using a troop event.


If Character Health 0% force action stuff, remove state CantDie. They do the action, then die.
Make a state that doesn't allow something to die. Apply it to the character using a troop event.


If Character Health 0% force action stuff, remove state CantDie. They do the action, then die.



I'll try it out when I have the time. Thanks!


And if the characther is under a state that immunes him to death, wouldn't his HP get capped at 1 HP? I mean, does the 0% HP condition triggers when the hero has 0 HP or 1 HP?


EDIT : Thanks, it works very well! Topic can be closed now!

Original thread: https://forums.rpgmakerweb.com/threads/doubleresume-fiber-error-yet-not-script-call.58792/