RATDOG/_module/nss/ra_lvl01_onexit.nss

52 lines
983 B
Plaintext
Raw Permalink Normal View History

//::////////////////////////////////////////////////////////////////////////////
/*//
Level 1: The Lair of the Dung Beast
onExit script
ra_lvl01_onexit.nss
Wandering Monsters: Check once per 30 minutes on 1d20
Detections: Faint evil from the whole place; slightly more to the south east.
Continuous Effects: The stench of this level requires all characters to make
a Fortitude save (DC 10) upon entering the level and every 30 minutes
thereafter or all rolls are at 2 morale penalty due to the distraction
caused by the overpowering smell.
*///
//::////////////////////////////////////////////////////////////////////////////
void main()
{
//:: Get the entering object (usually a PC)
object oPC = GetExitingObject();
//:: Clears Level 1 stench message int var,
//:: so it will show up again next time they enter
DelayCommand(0.0f,DeleteLocalInt(oPC, "DO_ONCE__" + GetTag(OBJECT_SELF)));
}