
#include "nw_i0_plot"
/*   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=GetPLocalInt(oPC, "intBreathSteam");

if (!(nInt == 1))
   return;

object oTarget;
oTarget = oPC;

effect eEffect;
eEffect = EffectKnockdown();

ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 6.0f);
int intDamage;
intDamage = (d4(2))+2;
eEffect = EffectDamage(intDamage, DAMAGE_TYPE_FIRE, DAMAGE_POWER_NORMAL);
SetPLocalInt(oPC, "intBreathSteam", 2);
if (ReflexSave(oPC, 14))
   {
    ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oPC);
     AssignCommand(oPC, ClearAllActions());
FloatingTextStringOnCreature("The steam from the statue burns you and causes you to slip and fall.", oPC, FALSE);
     return;
    //SendMessageToPC(oPC, "The steam from the statue burns you and causes you to slip and fall.");
  }
  FloatingTextStringOnCreature("The steam from the statue is scalding and makes the stairs slick, but you manage get clear before you are seriously hurt.", oPC, FALSE);

}

