diff options
author | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2018-07-03 13:36:50 -0400 |
---|---|---|
committer | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2018-07-03 13:36:50 -0400 |
commit | 75e4f784924393ccedb27f2831e5a36fe11bada5 (patch) | |
tree | 41b13a63cfc8c1df1244287a4158864874215b8d /macros/scripts.asm | |
parent | a655783735e1bd652eb6eff61af092b0414f2913 (diff) |
Merge branch 'master' of https://github.com/luckytyphlosion/pokegold-spaceworld
Diffstat (limited to 'macros/scripts.asm')
-rwxr-xr-x | macros/scripts.asm | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/macros/scripts.asm b/macros/scripts.asm index 73ad461..e392391 100755 --- a/macros/scripts.asm +++ b/macros/scripts.asm @@ -1,14 +1,14 @@ -init_script_table: MACRO
-script_id = 0
-ENDM
-
-add_script: MACRO
- dw \1
-\1ScriptID = script_id
-script_id = script_id + 1
-ENDM
-
-set_script: MACRO
- ld a, \1ScriptID
- ld [wFieldMoveScriptID], a
-ENDM
+init_script_table: MACRO +script_id = 0 +ENDM + +add_script: MACRO + dw \1 +\1ScriptID = script_id +script_id = script_id + 1 +ENDM + +set_script: MACRO + ld a, \1ScriptID + ld [wFieldMoveScriptID], a +ENDM |