location lTarget;
object oTarget;
/*   Script generated by
Lilac Soul's NWN Script Generator, v. 1.6

For download info, please visit:
http://www.lilacsoul.revility.com    */

//Put this OnEnter
void main()
{

object oPC = GetEnteringObject();

if (!GetIsPC(oPC)) return;

int nInt;
nInt=GetLocalInt(oPC, "c11Flood");

if (!(nInt == 3))
   return;
SetLocalInt(oPC, "c11Flood", 0);

FloatingTextStringOnCreature("The portion of the room you have entered is much deeper.  You step off the edge and the weight of your gear drags you down to the bottom.", oPC);

effect eEffect;
eEffect = EffectDamage(5, DAMAGE_TYPE_BLUDGEONING, DAMAGE_POWER_NORMAL);

ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oPC);

object oTarget;
oTarget = oPC;

eEffect = EffectKnockdown();

ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 5.0f);

DelayCommand(6.0, FloatingTextStringOnCreature("Slowly you struggle out of the water and back to safety. It will be easy to avoid the deep water in the future.", oPC));



}
