PoA_PRC8/_module/nss/sd_creature_kill.nss
Jaysyn904 0dbb628b75 Added Skullkeep's dynamic loot generation system
Added Skullkeep's PRC8 compatible dynamic loot generation system.  Full compile.  Updated release archive.
2024-11-08 18:54:51 -05:00

20 lines
614 B
Plaintext

void main()
{
object oPC = GetLastUsedBy();
object oArea = GetArea(oPC);
effect eBlood = EffectVisualEffect(VFX_COM_CHUNK_RED_LARGE);
effect eDeath = EffectDeath(TRUE, FALSE);
object oCreature = GetFirstObjectInArea(oArea);
while (GetIsObjectValid(oCreature))
{
if (GetObjectType(oCreature)==OBJECT_TYPE_CREATURE&&
GetIsEnemy(oPC, oCreature))
{
ApplyEffectToObject(DURATION_TYPE_INSTANT, eBlood, oCreature);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eDeath, oCreature);
}
oCreature = GetNextObjectInArea(oArea);
}
}