That's so awesome
@Nirran. I've tried it out and it works.
my barterprice.int looks like this:
Code:
procedure start;
procedure start begin
display_msg("Hook");
end
The hook is called upon when neccecery, but also when starting a new game. I get the "Hook" massage first thing, before registering even. Which condition do I need to add so it wont do at the start of the game?
Also, are the only possible hooks are the following?
#define HOOK_TOHIT (0)
#define HOOK_AFTERHITROLL (1)
#define HOOK_CALCAPCOST (2)
#define HOOK_DEATHANIM1 (3)
#define HOOK_DEATHANIM2 (4)
#define HOOK_COMBATDAMAGE (5)
#define HOOK_ONDEATH (6)
#define HOOK_FINDTARGET (7)
#define HOOK_USEOBJON (8)
#define HOOK_REMOVEINVENOBJ (9)
#define HOOK_BARTERPRICE (10)
#define HOOK_MOVECOST (11)
#define HOOK_HEXMOVEBLOCKING (12)
#define HOOK_HEXAIBLOCKING (13)
#define HOOK_HEXSHOOTBLOCKING (14)
#define HOOK_HEXSIGHTBLOCKING (15)
#define HOOK_ITEMDAMAGE (16)
So like, I can only use hooks when one out of these 16 actions occur? Can I just add another action and make a new hs_* hook? (I have a feeling that this is a really silly question, so sorry in advance)
Edit:
added
Now it works perfectly.