;-----------------
;HUNT SKILL SCRIPT 
;-----------------

;Check if host is alive

IF ALIVE @huntALIVE
GOTO @nothunt
@huntALIVE

;check if class is of the monster type

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

;check if player has the skill

COMPARE #<skillhunt>, 1
If< @nothunt
If> @nothunt

;create the actor for the run command

ACTOR 11, "Hunt", Hunt, 1, 70, 30
GOTO @nothunt

;if the player attacks the hunt command:

@eventactorclick11
SELECT 11
POSE 2
WAIT 0.5
MOVE	11, 120, 120, 1
IF R25 @failhunt
#include running.txt
FIGHT
#include eat.txt
GOTO @nothunt

@failhunt
H: There is nothing to hunt, I'll have to recamp elsewhere.

@nothunt