mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Added "register_hook_proc_spec" script function
Updated documents to address the new function.
This commit is contained in:
@@ -316,6 +316,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
|
||||
|
||||
Reference in New Issue
Block a user