Morning.
I've recently developed a script that I have hooked to the system, for Pushthrough. I'm using the 097 core, and t all seems to be working fine, with one exception: the system is still checking for the character's full stamina (as in the default pushthrough) before executing my pushthrough script. Which is the same as saying, only when the character is at full stamina does my script get run.
I thought (maybe incorrectly) that if I returned 1 on the script's main program the script would entirely handle pushthrough. Is there a way to do this?
The main program is:
Code:
program pushthroughhook()
// 0: deactivate hook
// 1: activate hook
return 1;
endprogram
The syshook.cfg on :pushthrough:, the package that I've created to handle this hook, is:
Code:
SystemHookScript pushhook.ecl
{
Pushthrough Pushthrough
}
The exported function Pushthrough is long, but it returns 1 when I want to allow the person to push through the obstacle, and 0 when I don't want to allow them.
Any thoughts to make my script override the default requirement for full stamina to push through?
Thanks in advance.