Ancordia_PRC8/_module/nss/thugs_attack.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

25 lines
717 B
Plaintext

#include "hench_i0_ai"
void main()
{
object oPC = GetPCSpeaker();
effect eEffect = GetFirstEffect(oPC);
while (GetIsEffectValid(eEffect))
{
if (GetEffectCreator(eEffect) == OBJECT_SELF) RemoveEffect(oPC, eEffect);
eEffect = GetNextEffect(oPC);
}
if (GetLocalInt(GetArea(OBJECT_SELF), "TributePaid") == TRUE) return;
object oObject = GetFirstObjectInArea(GetArea(OBJECT_SELF));
while (GetIsObjectValid(oObject))
{
if (GetTag(oObject) == "anc_roadbandit")
{
SetIsTemporaryEnemy(oPC, oObject);
AssignCommand(oObject, HenchDetermineCombatRound());
}
oObject = GetNextObjectInArea(GetArea(OBJECT_SELF));
}
}