;-----------------
;EAT SKILL SCRIPT 
;-----------------

;check if class is of the monster type

COMPARE #<num.hostclass>, 35
IF= @noteat
IF< @noteat

;check if player has the skill

COMPARE #<skilleat>, 1
If< @noteat
If> @noteat

;after a fight check if they are alive and have less than max HP then carry out the skill

If DEAD @noteat
SET skilleatHP, #<num.hostMaxHP>
SUB skilleatHP, #<num.hostHP>
COMPARE #<skilleatHP>, 0
IF= @noteat
MUL skilleatHP, %R5000
DIV skilleatHP, 10000
COMPARE #<skilleatHP>, 0
if> @noadd1
ADD skilleatHP, 1
@noadd1
H: /a eats a defeated monster, recovering #<skilleatHP> HP
HOST_GIVE H#<skilleatHP>
H: Mmmmm tasty!
@noteat