Vital customization is incomplete if scripter can't define itself when mobile die.
There is function death.src and chardeath.src in misc.
I think it could be also exist a
Code:
misc/candeath.src
and
Code:
misc/CanChrdeath.src
And after an old core function not very loved by staff (aready I suggested it):
Code:
KillMobile()
that kill but do not pass from vital mechanisms. I think that if vitals are custom shuld be possibile kill a mobile without use vital internal core functions.
I could also need to define that player do not more ever but only script can do die it with KillMobile() command.
This could be very flexibile.
And it cound be nice also to "define" new player status... non only live od dead... for a player it cound be interesting applly a new "state" like not_dead and for every state define what to do with vitals.
A command like:
Code:
const DIE := 0x01;
const LIVE := 0x02;
const NEW_STATE := 0x03;
ApplyMobileStatus(status);
that substituite:
Code:
KillMobile() -> ApplyMobileStatus(DIE);
Resurrect(mobile, flags := 0); -> ApplyMobileStatus(LIVE);