ON INIT {
 SET_SPEAK_PITCH 1.5
 SET_NPC_STAT armor_class 1
 SET_NPC_STAT absorb 1
 SET_NPC_STAT damages 2
 SET_NPC_STAT tohit 5
 SET_NPC_STAT aimtime 1
 SET_NPC_STAT life 1
 SET_XP_VALUE 10
 PHYSICAL ON
 LOADANIM ACTION2 "troll_talk_angry2"
ACCEPT
}

ON INITEND {
 loadanim FIGHT_WALK_FORWARD         "Troll_fight_walk"
 loadanim FIGHT_STRAFE_RIGHT         "Troll_fight_wait"
 loadanim FIGHT_STRAFE_LEFT          "Troll_fight_wait"
 loadanim FIGHT_WALK_BACKWARD "Troll_fight_wait"
 SETSCALE 25
ACCEPT
}

ON DIE {
 INVENTORY ADD "Quest_item\amulet_troll\\AMULET_TROLL"
 ACCEPT
}

ON CHAT {
 IF (§btdead == 1) {
  SPEAK [Troll_misc] nop
  ACCEPT
 }
 ACCEPT
}

ON GO {
 HEROSAY -d "GOTROLL"
 BEHAVIOR -f MOVE_TO
 SETTARGET BLACK_THING_0005
 TIMERkill 1 4 GOTO BFRIENDLY
 ACCEPT
}
>>BFRIENDLY
 BEHAVIOR FRIENDLY
 SETTARGET PLAYER
 SPEAK [Troll_grunt] nop
 PLAYANIM ACTION2
ACCEPT

ON BTDEATH {
 HEROSAY -d "deeeaaaaaaad"
 SET §btdead 1
 ACCEPT
}