More quest persistence
More quest persistence & cleanup.
This commit is contained in:
28
_module/nss/cv_pc_death.nss
Normal file
28
_module/nss/cv_pc_death.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:
|
||||
//:: cv_pc_death.nss
|
||||
//:: Copyright (c) 2022 Project RATDOG
|
||||
//:
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Kills the PC outright in a conversation
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//::
|
||||
//:: Created By: Jaysyn
|
||||
//:: Created On: 20220620
|
||||
//::
|
||||
//:://////////////////////////////////////////////
|
||||
void main()
|
||||
{
|
||||
//:: Declare major variables.
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
effect eDeath = EffectDeath();
|
||||
effect eDam = EffectDamage(9999);
|
||||
effect eLink = EffectLinkEffects(eDeath, eDam);
|
||||
|
||||
//:: Kills the PC.
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eLink, oPC);
|
||||
|
||||
}
|
Reference in New Issue
Block a user