void main() { object oPC = GetEnteringObject(); int oItem = GetHitDice(oPC); if (oItem >= 30) { object oSound = GetObjectByTag("falling"); SoundObjectPlay(oSound); SendMessageToPC(oPC, "The floor is falling apart beneath you!."); effect eBUMP = EffectVisualEffect(VFX_FNF_SCREEN_SHAKE); ApplyEffectToObject(DURATION_TYPE_INSTANT,eBUMP,oPC, 3.0); object oDrop = GetWaypointByTag("lichentrance"); //jump the PC to the destination SendMessageToPC(oPC, "You have fallen into a secret chamber!"); DelayCommand(3.0,AssignCommand (oPC,JumpToObject(oDrop))); } }