Added "register_hook_proc_spec" script function

Updated documents to address the new function.
This commit is contained in:
NovaRain
2019-09-12 22:23:02 +08:00
parent aa22575ec9
commit 9693c0d439
6 changed files with 47 additions and 7 deletions
@@ -302,6 +302,10 @@ Some utility/math functions are available:
- second argument should be passed just like you pass procedures to functions like gsay_option, giq_option, etc (name without quotes)
- see "hookscripts.txt" for more details
> void register_hook_proc_spec(int hook, procedure proc)
- works just like "register_hook_proc", but allows to register a script at the end of the hook script execution chain (i.e. the script will be executed after all previously registered scripts for the same hook, including the hs_*.int script)
- to unregister hook script from current global script, use the register_hook_proc function
> string message_str_game(int fileId, int messageId)
- works exactly the same as message_str, except you get messages from files in "text\<language>\game\" directory
- use GAME_MSG_* defines or mstr_* macros from sfall.h to use specific msg file