UW2_PRC8/_module/nss/owlbeardmged.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

30 lines
438 B
Plaintext

//Created by Guile 3/27/07
//Can go OnDamaged, OnDisturbed, OnSpellCastAt, creature heartbeats, etc.
#include "nw_i0_tool"
void main()
{
object oPC = GetLastHostileActor();
if (!GetIsPC(oPC)) return;
if (GetHitDice(oPC) > 8)
return;
RewardPartyXP(10, oPC, FALSE);
RewardPartyGP(10, oPC, FALSE);
if (d100()>=80)
{
ActionSpeakString("OOOWWW");
}
else if (d100()<=40)
{
ActionSpeakString("AAARRRGGHHH!!!");
}
}