PRC8_fork/trunk/newspellbook/bnd_tnb_visage.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

26 lines
855 B
Plaintext

/*
05/03/21 by Stratovarius
Visage of the Dead: Mindless undead believe you to be one of them and do not attack you except
in self-defense, or when ordered to do so by their creator.
OnEnter
*/
#include "bnd_inc_bndfunc"
void main()
{
//Declare major variables
object oBinder = GetLocalObject(GetModule(), "TenebrousCharm");
//FloatingTextStringOnCreature(GetName(oBinder)+" created this AoE", GetFirstPC());
//Capture the first target object in the shape.
object oTarget = GetEnteringObject();
if (!GetIsFriend(oTarget, oBinder) && oTarget != oBinder && MyPRCGetRacialType(oTarget) == RACIAL_TYPE_UNDEAD && 10 >= GetAbilityScore(oTarget, ABILITY_INTELLIGENCE, TRUE) && !GetIsObjectValid(GetMaster(oTarget)))
{
SetLocalObject(oBinder, "TenebrousCharm", oTarget);
ExecuteScript("bnd_tnb_charm", oBinder);
}
}