Replaced hs_*.int scripts in example mods with normal global scripts with register_hook.

(cherry picked from commit e7e286013f)
This commit is contained in:
NovaRain
2017-07-06 21:04:51 +08:00
parent a93ad5a9ba
commit 32dbe5581d
8 changed files with 35 additions and 29 deletions
@@ -0,0 +1,20 @@
procedure start;
// adjust include paths if needed
#include "..\..\scripting_docs\headers\sfall.h"
#include "..\..\scripting_docs\headers\dik.h"
procedure start begin
if game_loaded then begin
register_hook(HOOK_KEYPRESS);
end else begin
variable
event := get_sfall_arg,
keyDX := get_sfall_arg;
if (event == 1) and (keyDX == DIK_SEMICOLON) then begin
tap_key(DIK_CAPITAL);
tap_key(DIK_A);
tap_key(DIK_CAPITAL);
end
end
end