diff options
| author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2019-05-16 14:59:02 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-16 14:59:02 -0400 |
| commit | fa52c7fc159a749cb97f4a78d7cf39781b55c62f (patch) | |
| tree | 8a88de09420ad7f53eb2154ba49f04d3d93c4e0b /data/maps/IndigoPlateau_PokemonCenter_1F/scripts.inc | |
| parent | 683c9edf348c8a7730e72eb4a21a934e158a58c0 (diff) | |
| parent | 4156dd6b5789e613e4c25ec2cfe9867ec491f85a (diff) | |
Merge pull request #56 from pret/document_map_vars
Document map vars, 1
Diffstat (limited to 'data/maps/IndigoPlateau_PokemonCenter_1F/scripts.inc')
| -rw-r--r-- | data/maps/IndigoPlateau_PokemonCenter_1F/scripts.inc | 119 |
1 files changed, 57 insertions, 62 deletions
diff --git a/data/maps/IndigoPlateau_PokemonCenter_1F/scripts.inc b/data/maps/IndigoPlateau_PokemonCenter_1F/scripts.inc index 42a3280a2..7dae5f353 100644 --- a/data/maps/IndigoPlateau_PokemonCenter_1F/scripts.inc +++ b/data/maps/IndigoPlateau_PokemonCenter_1F/scripts.inc @@ -1,81 +1,76 @@ IndigoPlateau_PokemonCenter_1F_MapScripts:: @ 816EA5A - map_script 3, IndigoPlateau_PokemonCenter_1F_MapScript1_16EA65 - map_script 5, IndigoPlateau_PokemonCenter_1F_MapScript2_1BC05C - .byte 0 + map_script 3, IndigoPlateau_PokemonCenter_1F_MapScript1_16EA65 + map_script 5, IndigoPlateau_PokemonCenter_1F_MapScript2_1BC05C + .byte 0 IndigoPlateau_PokemonCenter_1F_MapScript1_16EA65:: @ 816EA65 - setrespawn 10 - specialvar VAR_RESULT, sub_806E25C - compare_var_to_value VAR_RESULT, 1 - call_if 1, EventScript_16EA79 - end + setrespawn SPAWN_INDIGO_PLATEAU + specialvar VAR_RESULT, sub_806E25C + compare_var_to_value VAR_RESULT, 1 + call_if 1, EventScript_16EA79 + end EventScript_16EA79:: @ 816EA79 - checkflag 2116 - goto_if 1, EventScript_1A77A9 - setobjectxyperm 4, 4, 2 - return + checkflag FLAG_0x844 + goto_if_eq EventScript_1A77A9 + setobjectxyperm 4, 4, 2 + return IndigoPlateau_PokemonCenter_1F_EventScript_16EA8A:: @ 816EA8A - lock - faceplayer - specialvar VAR_RESULT, sub_806E25C - compare_var_to_value VAR_RESULT, 1 - goto_if 1, EventScript_16EAA6 - loadword 0, gUnknown_819A8D8 - callstd 4 - release - end + lock + faceplayer + specialvar VAR_RESULT, sub_806E25C + compare_var_to_value VAR_RESULT, 1 + goto_if_eq EventScript_16EAA6 + msgbox gUnknown_819A8D8 + release + end EventScript_16EAA6:: @ 816EAA6 - checkflag 2116 - goto_if 1, EventScript_16EAB9 - loadword 0, gUnknown_819A943 - callstd 4 - release - end + checkflag FLAG_0x844 + goto_if_eq EventScript_16EAB9 + msgbox gUnknown_819A943 + release + end EventScript_16EAB9:: @ 816EAB9 - loadword 0, gUnknown_819A8D8 - callstd 4 - release - end + msgbox gUnknown_819A8D8 + release + end IndigoPlateau_PokemonCenter_1F_EventScript_16EAC3:: @ 816EAC3 - loadword 0, gUnknown_819A837 - callstd 2 - end + msgbox gUnknown_819A837, 2 + end IndigoPlateau_PokemonCenter_1F_EventScript_16EACC:: @ 816EACC - special sub_8110AB4 - compare_var_to_value VAR_RESULT, 2 - goto_if 1, EventScript_1A7AE0 - lock - faceplayer - message Text_1A6211 - waitmessage - pokemart Items_16EAF4 - loadword 0, gUnknown_81A5190 - callstd 4 - release - end + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if_eq EventScript_1A7AE0 + lock + faceplayer + message Text_1A6211 + waitmessage + pokemart Items_16EAF4 + msgbox gUnknown_81A5190 + release + end - .align 2 + .align 2 Items_16EAF4:: @ 816EAF4 - .2byte ITEM_ULTRA_BALL - .2byte ITEM_GREAT_BALL - .2byte ITEM_FULL_RESTORE - .2byte ITEM_MAX_POTION - .2byte ITEM_REVIVE - .2byte ITEM_FULL_HEAL - .2byte ITEM_MAX_REPEL - .2byte ITEM_NONE - release - end + .2byte ITEM_ULTRA_BALL + .2byte ITEM_GREAT_BALL + .2byte ITEM_FULL_RESTORE + .2byte ITEM_MAX_POTION + .2byte ITEM_REVIVE + .2byte ITEM_FULL_HEAL + .2byte ITEM_MAX_REPEL + .2byte ITEM_NONE + release + end IndigoPlateau_PokemonCenter_1F_EventScript_16EB06:: @ 816EB06 - lock - faceplayer - call EventScript_1A6578 - release - end + lock + faceplayer + call EventScript_1A6578 + release + end |
