Added Skullkeep's dynamic loot generation system
Added Skullkeep's PRC8 compatible dynamic loot generation system. Full compile. Updated release archive.
This commit is contained in:
19
_module/nss/sd_creature_kill.nss
Normal file
19
_module/nss/sd_creature_kill.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user