Hooks and callbacks: How and how many?
Posted: Mon Jan 05, 2015 3:11 pm
I remember reading on some of the latest release notes some more hooks were introduced, although the wiki page is still as barren as last time a checked (quite a few versions ago). Is there any place where I can find a comprehensive list for them?
As for callbacks... that sounds new, how do they work? Can I use them in talents/items to make them trigger some effects if some game conditions are met? (I'm assuming that's what they do). Is there a list for them somewhere?
Still on the matter of hooks and callbacks, I'm gonna end up coding some (read: a ton of) talents that need to make checks and apply effects every turn. I remember reading about "onTick" and that looks like the best course of action (can't remember if it's a hook or a callback tho). Is that right or should I rather use some other thing? The "Actor:actBase:Effects" hook looks like it's tied to the player's speeds so it's out of the question I guess.
As for callbacks... that sounds new, how do they work? Can I use them in talents/items to make them trigger some effects if some game conditions are met? (I'm assuming that's what they do). Is there a list for them somewhere?
Still on the matter of hooks and callbacks, I'm gonna end up coding some (read: a ton of) talents that need to make checks and apply effects every turn. I remember reading about "onTick" and that looks like the best course of action (can't remember if it's a hook or a callback tho). Is that right or should I rather use some other thing? The "Actor:actBase:Effects" hook looks like it's tied to the player's speeds so it's out of the question I guess.