27 lines
458 B
Plaintext
27 lines
458 B
Plaintext
#include "nw_i0_generic"
|
|
|
|
|
|
//Can go OnDamaged, OnDisturbed, OnSpellCastAt, creature heartbeats, etc.
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetLastHostileActor();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
object oTarget;
|
|
oTarget = GetObjectByTag("CHANTINGMONK");
|
|
|
|
AdjustReputation(oPC, oTarget, -100);
|
|
|
|
oTarget = GetObjectByTag("CHANTINGMONK");
|
|
|
|
SetIsTemporaryEnemy(oPC, oTarget);
|
|
|
|
AssignCommand(oTarget, ActionAttack(oPC));
|
|
|
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
|
|
|
}
|
|
|