Hello everyone,
I am currently working on a script with the purpose of displaying a window when an actor die during a battle.
Unfortunately, I can't seem to find the function in rpg_managers.js, rpg_scenes.js and rpg_objects.js.
Can somebody tell me how the game is supposed to know when an actor die, if there is no such specific function?
It is probably hidden as a small portion of codes, but I can't tell apart which is it.
I will continue my search and post an update if I find anything related.
EDIT 1 :
Inside the class BattleManager, the function getNextSubject test if the current actor is alive or not. I thought about using this as the point where to call the window, however it may be far too late as I need to make it appear upon the actor's death, and not when it's his turn to act. Still searching...
I am currently working on a script with the purpose of displaying a window when an actor die during a battle.
Unfortunately, I can't seem to find the function in rpg_managers.js, rpg_scenes.js and rpg_objects.js.
Can somebody tell me how the game is supposed to know when an actor die, if there is no such specific function?
It is probably hidden as a small portion of codes, but I can't tell apart which is it.
I will continue my search and post an update if I find anything related.
EDIT 1 :
Inside the class BattleManager, the function getNextSubject test if the current actor is alive or not. I thought about using this as the point where to call the window, however it may be far too late as I need to make it appear upon the actor's death, and not when it's his turn to act. Still searching...