I havn't decided exactly what should happen yet, but the vague plan is that if a ghost brings the main character to 0 HP, then I want to be able to manipulate it in some way. (Probably do something like make it posses the player, not entirely sure yet, but It's probably going to involve some eventing and manipulating it's move route at the very least.) I was going to turn on the self switch of the event I wanted so I could potentially manipulate it's move route (I suppose an alternative would be to set a variable to the id of the correct ghost, and then manipulate it's move route from there, but there's no way to choose which event to manipulate the move route of based on a variable)
The events themselves are pretty barebones so there's not much point posting screenshots. There's nothing going on I havn't explained yet (I'm just making sure what I want to do is possible before I start filling in details)
sorry... i just read this... apparently when i type my post above... you and andar post before i send my post
😀.
btw this is the script call:
Code:
var ev = $gameMap.eventsXy($gamePlayer.x, $gamePlayer.y)[0];
if (!$gameMap.isEventRunning()) ev.start();
ev.updateRoutineMove()
put it inside the conditional branch earlier like this:
do not add any event command anymore there...
move the event command for your damaging party scene inside the ghost event page instead.
there's a catch though... the ghost will look like it passed through the actor.
since the event will repeatedly execute if you're not moving it from player x,y immediately >.<. (infinite loop).
if that above not acceptable for you... then a proper plugin would be required instead of this method.
other than that catch above... all the ghost event page should work just fine btw...
also... i read your example mock scenario above... (when actor 1 hp = 0 possess).
there's a problem in that setting... the problem is with game over triggering when all party member dead...
(so if you only have actor 1 and he's dead... game over).
and you cannot have HP = 0 if you did not allow event command death when reducing hp. it will alway HP = 1.
to bypass that you can add conditional branch BEFORE the hp reducing event...
that check the actor hp does it below your ghost damage... if yes do the possesing thingy...
(btw just realize that there's no option to check actor hp... so need another conditional script again >.<)
Spoiler
to check actor 1 hp below or equal to 1000
Code:
$gameActors.actor(1).hp <= 1000;
if you want to chect first party slot actor then
Code:
$gameParty.members()[0].hp <= 1000;
so the example event page is like this:
but basically it's all about eventing technique on what you want to happen.
hope this help.