I don't know if anyone besides me knows this but I will tell you guy's anyway...
I remember some RPG's have a script varience depending on what party member you have... Like Final Fantasy IV: The After Years... If you have Ceodore and Rosa in your party then Golbez will live... If not then he will die... I'm here to tell you how...
Create an Event
Create A conditional branch. If Ceodore is in party
Create another Conditional Branch. If Rosa is in party
It should look like this
+ Branch if Ceodore is in party
+ Branch if Rosa is in party
X
: End
X Remove Golbez, Activate Switch: Golbez's Death
: End
X
Place the main dying event between End 1 and End 2. So that it would work that way... Under End 2 Nothing happens unless if you want to make the cutscene with or without golbez... to do that... Then all you have to do is this...
When in conversation...
In order to make him say something whether he lived or not is where you create another conditional branch that executes a custom branch if he is not in party...
If Golbez is Alive
Ceodore: We should get going into the core... Then we can finish this once and for all!
Golbez: Before you start jumping in... There is a short cut by the entrance of the cave that would lead us
straight to it...
If Golbez is Dead
Ceodore: I can't believe he's gone...
Cecil: Until then... We just have to keep fighting on...
Mix it up a little... This should help give the player some good things and bad things depending on what you have done to proceed through the storyline... Use this example to help you in future to give your game more variety...
P.S Cecil, Ceodore, Golbez and Rosa are all characters from SQUARE-ENIX and it's game... The characters don't belong to me... Owners remain of their respective content... I do not claim this as my own... But My only reason is I like FFIV:TAY... The story is just epic...