PDA

View Full Version : event_hp seems to do nothing


t0neg0d
11-17-2024, 12:09 PM
Like the title says, this example does nothing.


function event_hp(e)
-- NPC-event_hp
-- Exported event variables
eq.debug("hp_event " .. e.hp_event);
eq.debug("inc_hp_event " .. e.inc_hp_event);
end

fryguy
11-17-2024, 01:36 PM
Like the title says, this example does nothing.


function event_hp(e)
-- NPC-event_hp
-- Exported event variables
eq.debug("hp_event " .. e.hp_event);
eq.debug("inc_hp_event " .. e.inc_hp_event);
end


Works as expected however you need to set a value threshold for a trigger:


eq.set_next_hp_event(int hp);
eq.set_next_inc_hp_event(int hp);

t0neg0d
11-18-2024, 02:40 AM
Works as expected however you need to set a value threshold for a trigger:


eq.set_next_hp_event(int hp);
eq.set_next_inc_hp_event(int hp);


Thanks so much. Where did you find this info? (so I can avoid posting if there is already an answer)

fryguy
11-18-2024, 08:39 AM
Looking at use cases of it in the PEQ quest repository, not sure its documented anywhere.

t0neg0d
11-18-2024, 02:00 PM
Looking at use cases of it in the PEQ quest repository, not sure its documented anywhere.

ty! most appreciated.