

//Put this OnEnter
void main()
{

object oPC = GetEnteringObject();

if (!GetIsPC(oPC)) return;

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

effect eEffect;
eEffect = EffectDamage(6, 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));

}
