Changed LoadGame2_After to be called before LoadGame state is ended (backported from 4.0 development branch, commit c2e6d743a3)

Updated version number.
Minor edits to scripting documents.
This commit is contained in:
NovaRain
2017-05-23 21:05:04 +08:00
parent 31834fdfea
commit ec2d323f75
8 changed files with 29 additions and 21 deletions
+6 -6
View File
@@ -13,15 +13,15 @@ Example setup for a hook-script based mod:
procedure tohit_hook_handler begin
display_msg("Modifying hit_hook " + get_sfall_arg);
set_hit_chance_max(100);
set_sfall_return(100);
display_msg("Modifying hit_hook " + get_sfall_arg);
set_hit_chance_max(100);
set_sfall_return(100);
end
procedure start begin
if game_loaded then begin
register_hook_proc(HOOK_TOHIT, tohit_hook_handler);
end
if game_loaded then begin
register_hook_proc(HOOK_TOHIT, tohit_hook_handler);
end
end