2021-09-01 23:42:36 -04:00
|
|
|
//
|
|
|
|
// Deactivation Scripts
|
|
|
|
//
|
|
|
|
#include "spawn_functions"
|
|
|
|
//
|
|
|
|
object GetChildByTag(object oSpawn, string sChildTag);
|
|
|
|
object GetChildByNumber(object oSpawn, int nChildNum);
|
|
|
|
object GetSpawnByID(int nSpawnID);
|
|
|
|
void DeactivateSpawn(object oSpawn);
|
|
|
|
void DeactivateSpawnsByTag(string sSpawnTag);
|
|
|
|
void DeactivateAllSpawns();
|
|
|
|
void DespawnChildren(object oSpawn);
|
|
|
|
void DespawnChildrenByTag(object oSpawn, string sSpawnTag);
|
|
|
|
//
|
|
|
|
//
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
// Retrieve Script
|
|
|
|
int nDeactivateScript = GetLocalInt(OBJECT_SELF, "DeactivateScript");
|
|
|
|
|
|
|
|
// Invalid Script
|
|
|
|
if (nDeactivateScript == -1)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Only Make Modifications Between These Lines
|
|
|
|
// -------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
// Script 00
|
|
|
|
if (nDeactivateScript == 0)
|
|
|
|
{
|
|
|
|
// Explode with Gore when Deactivated
|
|
|
|
effect eVisual = EffectVisualEffect(VFX_COM_CHUNK_RED_LARGE);
|
|
|
|
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eVisual, GetLocation(OBJECT_SELF), 0.0);
|
|
|
|
}
|
|
|
|
//
|
|
|
|
|
2022-01-15 01:08:25 -05:00
|
|
|
// Script 99
|
|
|
|
if (nDeactivateScript == 99)
|
|
|
|
{
|
|
|
|
// Create Examinable Object
|
|
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "EXAM_DEAD_TREE", GetLocation(GetWaypointByTag("RA_DIRELION001")), FALSE);
|
|
|
|
|
|
|
|
// Spawn 2 Harpies
|
|
|
|
CreateObject(OBJECT_TYPE_CREATURE, "RA_HARPY001", GetLocation(OBJECT_SELF), TRUE);
|
|
|
|
CreateObject(OBJECT_TYPE_CREATURE, "RA_HARPY001", GetLocation(OBJECT_SELF), TRUE);
|
|
|
|
AssignCommand(GetObjectByTag("RA_HARPY001"), ActionSpeakString("Thanks for taking care of those kitties for us! Won't you join us for dinner?!?"));
|
|
|
|
|
|
|
|
// Destroy Examinable Object after 5 minutes
|
|
|
|
object oTarget;
|
|
|
|
oTarget = GetObjectByTag("EXAM_DEAD_TREE");
|
|
|
|
DelayCommand(300.0, DestroyObject(oTarget, 0.0));
|
|
|
|
}
|
|
|
|
//
|
2021-09-01 23:42:36 -04:00
|
|
|
|
|
|
|
// -------------------------------------------
|
|
|
|
// Only Make Modifications Between These Lines
|
|
|
|
//
|
|
|
|
|
|
|
|
}
|