/*   Script generated by
Lilac Soul's NWN Script Generator, v. 1.6

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

//Put this OnUsed
void main()
{

object oPC = GetLastUsedBy();

if (!GetIsPC(oPC)) return;

SendMessageToPC(oPC, "When you try to pull the ring out the beak snaps shut pinning your arm.  You bash the statue to bits to free yourself, but your arm is badly hurt.");

object oTarget;
oTarget = oPC;

effect eEffect;
eEffect = EffectACDecrease(2);

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

oTarget = oPC;

eEffect = EffectAttackDecrease(2);

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

eEffect = EffectDamage(100, DAMAGE_TYPE_BLUDGEONING, DAMAGE_POWER_NORMAL);

ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, GetObjectByTag("WallMountEagleHead"));

}
