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:
Jaysyn904
2024-11-08 18:54:51 -05:00
parent 2cb81ae698
commit 0dbb628b75
211 changed files with 40616 additions and 800 deletions

View 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);
}
}