someoneetc
Recruit
Hello,
I'm working on a little mod for Warband in my spare time and I was wondering if anybody could help me with an issue: I'm trying to find a way to deny damage before it is inflicted. Here's a fragment of the script I've written:
now, there are 2 main problems:
Best regards and thanks in advance
I'm working on a little mod for Warband in my spare time and I was wondering if anybody could help me with an issue: I'm trying to find a way to deny damage before it is inflicted. Here's a fragment of the script I've written:
Code:
(try_begin),
(eq, ":weapon","itm_overpower_shield"),
(val_add,":health",":damage"),
(agent_set_hit_points,":agent",":health",0),
(try_end),
now, there are 2 main problems:
- provided that both ":health" and ":damage" are gathered via store_trigger_param* (the trigger is obviously ti_on_agent_hit), I can't find information on how is the damage expressed (is it a percentage of hit points? Is it an absolute value? Is it something else?). Subsequently I can't determine the correct formula for HP restoration;
- the health is restored after the damage has been inflicted and I would like to deny it at all(possibly avoiding also the pushback). Is there any way to do this?
Best regards and thanks in advance