25 lines
717 B
Plaintext
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));
|
|
}
|
|
}
|