RoT2_PRC8/_module/nss/cb_monkattack.nss

27 lines
458 B
Plaintext
Raw Permalink Normal View History

2023-09-25 18:13:22 -04:00
#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));
}