RoT2_PRC8/_module/nss/cb_monkattack.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

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));
}