Lankhmar_PRC8/_module/nss/ent_spn_lvthn.nss

30 lines
629 B
Plaintext
Raw Normal View History

2025-04-03 12:54:47 -04:00
#include "nw_i0_generic"
void main()
{
object oTarget;
object oSpawn;
// Get the creature who triggered this event.
object oPC = GetEnteringObject();
// Only fire for (real) PCs.
if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) )
return;
// Abort if the PC's total level is not at least 10.
if ( GetHitDice(oPC) < 12 )
return;
// Spawn "leviathan".
oTarget = GetWaypointByTag("WP_LEvthn_SPn");
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "leviathan", GetLocation(oTarget));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
DestroyObject(OBJECT_SELF);
}