Skip to main content

TRIGGER_HPCNT

Keywords: TRIGGER_HPCNT, TRIGGER_HIT_POINT_PERCENTAGE
Syntax: HPCNT <percent> The argument is a number between 0 and 100, this trigger is checked at each PULSE_MOBILE when the mobile is fighting, it is activated if the hit points of the mobile are below the given percentage. If you want include more than one hpcnt trigger on the same mobile it should be listed in the MOBprogram list in increasing order of percent since a 40% will always be activated before a 20%, and only the first sucessful trigger is performed. In the mobile stats we should have: MOBPrograms for [ 3000]: Number Vnum Trigger Phrase ------ ---- ------- ------ [ 0] 3000 HPCNT 20 [ 1] 3001 HPCNT 40 In this case when the mobile hp reachs 40% the mobprogram 3001 will be processed and when it reachs 20% the mobprog 3001 will be processed. Examples: HPCNT 20 This trigger will be activated if the hit point of the mobile is below 20% of its total hit points, while the mobile is fighting. HPCNT 40 This trigger will be activated if the hit point of the mobile is below 40% of its total hit points, while the mobile is fighting.