diff options
Diffstat (limited to 'data/maps/DesertRuins')
| -rw-r--r-- | data/maps/DesertRuins/border.bin | 1 | ||||
| -rw-r--r-- | data/maps/DesertRuins/events.inc | 16 | ||||
| -rw-r--r-- | data/maps/DesertRuins/header.inc | 2 | ||||
| -rw-r--r-- | data/maps/DesertRuins/map.bin | bin | 1122 -> 0 bytes | |||
| -rw-r--r-- | data/maps/DesertRuins/scripts.inc | 98 |
5 files changed, 115 insertions, 2 deletions
diff --git a/data/maps/DesertRuins/border.bin b/data/maps/DesertRuins/border.bin deleted file mode 100644 index c07869a9f..000000000 --- a/data/maps/DesertRuins/border.bin +++ /dev/null @@ -1 +0,0 @@ -ÙÙÙÙ
\ No newline at end of file diff --git a/data/maps/DesertRuins/events.inc b/data/maps/DesertRuins/events.inc new file mode 100644 index 000000000..b7ccd35b0 --- /dev/null +++ b/data/maps/DesertRuins/events.inc @@ -0,0 +1,16 @@ +DesertRuins_EventObjects: @ 8534354 + object_event 1, EVENT_OBJ_GFX_REGIROCK, 0, 8, 7, 3, 8, 0, 0, 0, 0, DesertRuins_EventScript_22DA02, 935 + +DesertRuins_MapWarps: @ 853436C + warp_def 8, 29, 3, 1, MAP_ROUTE111 + warp_def 8, 20, 0, 2, MAP_DESERT_RUINS + warp_def 8, 11, 3, 1, MAP_DESERT_RUINS + +DesertRuins_MapBGEvents: @ 8534384 + bg_event 8, 20, 0, 0, 0, DesertRuins_EventScript_22D9DB + bg_event 7, 20, 0, 0, 0, DesertRuins_EventScript_22D9F8 + bg_event 9, 20, 0, 0, 0, DesertRuins_EventScript_22D9F8 + +DesertRuins_MapEvents:: @ 85343A8 + map_events DesertRuins_EventObjects, DesertRuins_MapWarps, 0x0, DesertRuins_MapBGEvents + diff --git a/data/maps/DesertRuins/header.inc b/data/maps/DesertRuins/header.inc index dcc150a4f..8f076bf77 100644 --- a/data/maps/DesertRuins/header.inc +++ b/data/maps/DesertRuins/header.inc @@ -1,5 +1,5 @@ DesertRuins: @ 8483F68 - .4byte DesertRuins_MapAttributes + .4byte DesertRuins_Layout .4byte DesertRuins_MapEvents .4byte DesertRuins_MapScripts .4byte 0x0 diff --git a/data/maps/DesertRuins/map.bin b/data/maps/DesertRuins/map.bin Binary files differdeleted file mode 100644 index 406cf7279..000000000 --- a/data/maps/DesertRuins/map.bin +++ /dev/null diff --git a/data/maps/DesertRuins/scripts.inc b/data/maps/DesertRuins/scripts.inc new file mode 100644 index 000000000..9137902f2 --- /dev/null +++ b/data/maps/DesertRuins/scripts.inc @@ -0,0 +1,98 @@ +DesertRuins_MapScripts:: @ 822D95B + map_script 5, DesertRuins_MapScript1_22D96B + map_script 1, DesertRuins_MapScript1_22D989 + map_script 3, DesertRuins_MapScript1_22D9CA + .byte 0 + +DesertRuins_MapScript1_22D96B: @ 822D96B + checkflag FLAG_SYS_CTRL_OBJ_DELETE + call_if 1, DesertRuins_EventScript_22D975 + end + +DesertRuins_EventScript_22D975:: @ 822D975 + specialvar VAR_RESULT, sub_8138B80 + compare VAR_RESULT, 7 + goto_if 5, DesertRuins_EventScript_27374E + removeobject VAR_LAST_TALKED + return + +DesertRuins_MapScript1_22D989: @ 822D989 + checkflag FLAG_SYS_BRAILLE_STRENGTH + call_if 0, DesertRuins_EventScript_22D993 + end + +DesertRuins_EventScript_22D993:: @ 822D993 + setmetatile 7, 19, 553, 1 + setmetatile 8, 19, 553, 1 + setmetatile 9, 19, 553, 1 + setmetatile 7, 20, 565, 1 + setmetatile 8, 20, 565, 1 + setmetatile 9, 20, 565, 1 + return + +DesertRuins_MapScript1_22D9CA: @ 822D9CA + setflag FLAG_LANDMARK_DESERT_RUINS + checkflag FLAG_0x1BB + call_if 0, DesertRuins_EventScript_22D9D7 + end + +DesertRuins_EventScript_22D9D7:: @ 822D9D7 + clearflag FLAG_0x3A7 + return + +DesertRuins_EventScript_22D9DB:: @ 822D9DB + lockall + checkflag FLAG_SYS_BRAILLE_STRENGTH + goto_eq DesertRuins_EventScript_22D9EE + braillemessage DesertRuins_Braille_2A6CA0 + waitbuttonpress + hidebox2 + releaseall + end + +DesertRuins_EventScript_22D9EE:: @ 822D9EE + msgbox gUnknown_0827304E, 4 + releaseall + end + +DesertRuins_EventScript_22D9F8:: @ 822D9F8 + lockall + braillemessage DesertRuins_Braille_2A6CA0 + waitbuttonpress + hidebox2 + releaseall + end + +DesertRuins_EventScript_22DA02:: @ 822DA02 + lock + faceplayer + waitse + playmoncry SPECIES_REGIROCK, 2 + delay 40 + waitmoncry + setwildbattle SPECIES_REGIROCK, 40, ITEM_NONE + setflag FLAG_SYS_CTRL_OBJ_DELETE + special StartRegiBattle + waitstate + clearflag FLAG_SYS_CTRL_OBJ_DELETE + specialvar VAR_RESULT, sub_8138B80 + compare VAR_RESULT, 1 + goto_eq DesertRuins_EventScript_22DA49 + compare VAR_RESULT, 4 + goto_eq DesertRuins_EventScript_22DA52 + compare VAR_RESULT, 5 + goto_eq DesertRuins_EventScript_22DA52 + setflag FLAG_0x1BB + release + end + +DesertRuins_EventScript_22DA49:: @ 822DA49 + setflag FLAG_0x1BB + goto DesertRuins_EventScript_27376D + end + +DesertRuins_EventScript_22DA52:: @ 822DA52 + setvar VAR_0x8004, 401 + goto DesertRuins_EventScript_273776 + end + |
