30 lines
438 B
Plaintext
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!!!");
|
||
|
|
||
|
}
|
||
|
}
|