PoA_PRC8/_module/nss/brutedeath.nss
Jaysyn904 f5a98c2d22 Changed XP system over to PnP XP system
Changed XP system over to PnP XP system.  Updated NWNxEE scripts.  Full compile.  Updated public release archive.
2024-03-13 21:52:56 -04:00

23 lines
794 B
Plaintext

#include "NW_I0_GENERIC"
void main()
{
switch (d4()) {
case 1: SpeakString("NOOOOOOO!"); break;
case 2: SpeakString("Aaarhg!"); break;
case 3: SpeakString("Me not understand!"); break;
case 4: SpeakString("You too strong for me!");
}
object oKiller = GetLastKiller();
int noleech = 0;
int nClass = GetLevelByClass(CLASS_TYPE_COMMONER);
int nAlign = GetAlignmentGoodEvil(OBJECT_SELF);
if(nClass > 0 && (nAlign == ALIGNMENT_GOOD || nAlign == ALIGNMENT_NEUTRAL))
{
AdjustAlignment(oKiller, ALIGNMENT_EVIL, 5);
}
//ExecuteScript("sf_xp", OBJECT_SELF);
ExecuteScript("prc_npc_death", OBJECT_SELF);
ExecuteScript("prc_pwondeath", OBJECT_SELF);
}