PRC8/nwn/nwnprc/trunk/scripts/wol_a_bbb.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

26 lines
997 B
Plaintext

#include "prc_inc_template"
void main()
{
int nCount = FALSE;
object oPC;
object oTarget = GetFirstObjectInArea(GetObjectByTag("wol_a_bbb"));
while (GetIsObjectValid(oTarget))
{
if (GetTag(oTarget) == "WOL_Khofar" && !GetIsDead(oTarget))
{
if (!GetIsInCombat(oTarget)) SetActionMode(oTarget, ACTION_MODE_STEALTH, TRUE);
nCount++;
}
else if (GetIsPC(oTarget)) oPC = oTarget;
//Select the next target within the spell shape.
oTarget = GetNextObjectInArea(GetObjectByTag("wol_a_bbb"));
}
if (nCount == FALSE && GetIsObjectValid(oPC) && !GetPersistantLocalInt(oPC, "LegacyOwner"))
{
AssignCommand(oPC, SpeakString("The black wood bow shivers as you grasp it from the corpse of Khofar, whispering of the pain and death that has brought the bow into your possession."));
ApplyWoLToObject(2, oPC);
CreateObject(OBJECT_TYPE_PLACEABLE, "prc_ea_return", GetLocation(oPC));
}
}