generated from Jaysyn/ModuleTemplate
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 2.3
|
|
|
|
For download info, please visit:
|
|
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
|
|
|
|
//Put this script OnEnter
|
|
#include "nw_i0_spells"
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetEnteringObject();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
object oTarget;
|
|
oTarget=GetHenchman(oPC);
|
|
|
|
RemoveHenchman(oPC, oTarget);
|
|
|
|
DestroyObject(oTarget);
|
|
|
|
oTarget = GetAssociate(ASSOCIATE_TYPE_FAMILIAR, oPC);
|
|
|
|
if (GetIsPossessedFamiliar(oTarget)) AssignCommand(oPC, UnpossessFamiliar(oTarget));
|
|
|
|
if (GetIsObjectValid(oTarget)) DestroyObject(oTarget);
|
|
|
|
oTarget = GetAssociate(ASSOCIATE_TYPE_ANIMALCOMPANION, oPC);
|
|
|
|
if (GetIsObjectValid(oTarget)) DestroyObject(oTarget);
|
|
|
|
oTarget = GetAssociate(ASSOCIATE_TYPE_SUMMONED, oPC);
|
|
|
|
if (GetIsObjectValid(oTarget)) RemoveSummonedAssociate(oPC, oTarget);
|
|
|
|
if (GetIsObjectValid(oTarget)) DestroyObject(oTarget);
|
|
|
|
oTarget = GetAssociate(ASSOCIATE_TYPE_DOMINATED, oPC);
|
|
|
|
if (GetIsObjectValid(oTarget)) RemoveSpecificEffect(EFFECT_TYPE_DOMINATED, oTarget);
|
|
|
|
if (GetIsObjectValid(oTarget)) DestroyObject(oTarget);
|
|
|
|
}
|
|
|