#include "nw_i0_plot"
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 on action taken in the conversation editor
void main()
{

object oPC = GetPCSpeaker();

effect eEffect;
eEffect = EffectDamage(1, DAMAGE_TYPE_ACID, DAMAGE_POWER_NORMAL);

ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oPC);

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

nInt += 1;

SetLocalInt(oPC, "intLimeDamage", nInt);

nInt=GetLocalInt(oPC, "intLimeDamage");

if (nInt == 3)
   {
   oTarget = oPC;

   eEffect = EffectAttackDecrease(2);

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

   FloatingTextStringOnCreature("Your hands have been badly damanged by the lime on the stone block.", oPC);

   }
}
