Battledale_PRC8/_module/nss/jw_skel_prst_tri.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

40 lines
694 B
Plaintext

void main()
{
object oObject;
int nCounter=0;
effect eEffect;
object oPC=GetEnteringObject();
if (GetIsObjectValid(oPC))
{
oObject =GetObjectByTag("jw_skel_priest",nCounter);
while (GetIsObjectValid(oObject))
{
eEffect=GetFirstEffect(oObject);
while (GetIsEffectValid(eEffect))
{
if (GetEffectCreator(eEffect)==oObject)
{
RemoveEffect(oObject,eEffect);
}
eEffect=GetNextEffect(oObject);
}
nCounter++;
oObject =GetObjectByTag("jw_skel_priest",nCounter);
}
}
oObject=GetNearestObjectByTag("jw_skel_priest");
AssignCommand(oObject,ActionMoveToObject(GetWaypointByTag("jw_skel_priest_wp")));
}