RATDOG/_module/nss/pw_stmch_exit.nss
Jaysyn904 732d63e1f3 Spawner & Overhaul pass.
Added: Reforged, Undead Redux 2, Goblin, Ogre & Orc override content.  Updated appearance & placeables 2DA files to EE.  Added NPC spawners for Goldeyes, Paladins, Town Guards.  Added functionality to the mob randomizer.
2021-09-04 14:36:27 -04:00

26 lines
794 B
Plaintext

void main()
{
object oPC = GetEnteringObject();
if (!GetIsObjectValid(oPC)) oPC=GetClickingObject();
object oArea=GetArea(oPC);
object oWorm=GetLocalObject(oArea, "Worm");
location lWhere=GetLocation(oWorm);
if(!GetIsPC(oPC)) return;
if(GetLocalInt(oArea, "CanLeave") || (d20()+GetAbilityModifier(ABILITY_STRENGTH, oPC)>=12))
{
if (!GetIsObjectValid(GetAreaFromLocation(lWhere))) lWhere=GetLocalLocation(oPC, "WormReturn");
SendMessageToPC(oPC, "You manage to claw your way out of the worm's mouth.");
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, JumpToLocation(lWhere));
}
else
SendMessageToPC(oPC, "You try to climb back out the mouth, but are held back by the action of the sphincters.");
}