Alangara_PRC8/_module/nss/naturecall.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

48 lines
1.2 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 */
#include "nw_i0_spells"
void main()
{
object oPC;
oPC = GetItemActivator();
object oTarget;
oTarget=GetHenchman(oPC);
RemoveHenchman(oPC, 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);
effect eEffect;
eEffect = EffectSummonCreature("wrathofnature", VFX_FNF_HOWL_WAR_CRY_FEMALE, 1.0);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oPC);
}