Battledale_PRC8/_module/nss/jw_trap_guardtri.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

35 lines
714 B
Plaintext

void main()
{
object oObject;
int nCounter=0;
effect eEffect;
oObject =GetObjectByTag("jw_guardskel",nCounter);
if (GetIsObjectValid(oObject))
{
SetLocalInt(OBJECT_SELF,"triggered",3);
}
while (GetIsObjectValid(oObject))
{
ChangeToStandardFaction(oObject,STANDARD_FACTION_HOSTILE);
eEffect=GetFirstEffect(oObject);
while (GetIsEffectValid(eEffect))
{
if (GetEffectCreator(eEffect)==oObject)
{
RemoveEffect(oObject,eEffect);
}
eEffect=GetNextEffect(oObject);
}
nCounter++;
oObject =GetObjectByTag("jw_guardskel",nCounter);
}
DelayCommand(100.0,SignalEvent(GetObjectByTag("jw_lion"),EventUserDefined(50)));
}