Here is an off the wall Idea that might not work, even if it does work it will have side effects.
In the compiaions section of the HB check if the PC has enough XP to level. If he does set the compiaion to not be able to be destroyed. SetIsDestroyale (False).
In the Ondeath Event check to see if it is a comapinion and reset the destroyable flag to true, so he can die normally if killed.
there may be a problem with the compainion still being removed from the party even if not destroyed. If there is add a local object of the compainion on the PC at the same time as you set him undestroyable. in the level up event add him back on as a henchmen.
several side effects this could create if it works.
One he could summons another compainion if he levels and the previous one is a henchman. May be able to take care of this in the onSpawn to check if there is already a Henchman with the same name.
two: compainions will not be able to be removed normally until the PC takes his level.
There may be all kind of bugs this could cause.
Just thought of option two.
OnSpawn of the compianion make him a henchman.
Several of the Defaults event scripts would need to be edited with this idea also. Not sure wich one is more messy.
Modifié par Lightfoot8, 16 juillet 2010 - 11:27 .