Also I've just updated my original post with the following:
Add multiple tests to the same hook
With so many spells and effects using party, monster or other hooks, it can happen that you need to run two different scripts as part of the same hook. This can be done by evaluating each script as a variable and then returning both.
Code: Select all
onTurn = function(monster,turn_dir)
local hold_test = grimwold_spell_script.checkHeld(monster)
local turn_test = grimwold_spell_script.checkTurn(monster,turn_dir)
return hold_test and turn_test
end,