/*   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, "intGrass");

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

if (!(WillSave(oPC, 12, SAVING_THROW_TYPE_MIND_SPELLS )))
   {
    FloatingTextStringOnCreature("The grass seems almost idealic.  You do not want to leave.", oPC, FALSE);

    object oTarget;
    oTarget = oPC;
    effect eEffect;
    eEffect = EffectSleep();

    ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 4.0f);
   }

}
