2017-11-10 02:21:31 +01:00
|
|
|
AncientTomb_MapScripts:: @ 8238FB3
|
|
|
|
map_script 5, AncientTomb_MapScript1_238FC3
|
|
|
|
map_script 1, AncientTomb_MapScript1_238FF2
|
|
|
|
map_script 3, AncientTomb_MapScript1_238FE1
|
|
|
|
.byte 0
|
|
|
|
|
|
|
|
AncientTomb_MapScript1_238FC3: @ 8238FC3
|
|
|
|
checkflag FLAG_SYS_CTRL_OBJ_DELETE
|
|
|
|
call_if 1, AncientTomb_EventScript_238FCD
|
|
|
|
end
|
|
|
|
|
|
|
|
AncientTomb_EventScript_238FCD:: @ 8238FCD
|
2018-08-08 10:37:12 +02:00
|
|
|
specialvar VAR_RESULT, GetBattleOutcome
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 7
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_ne AncientTomb_EventScript_27374E
|
2017-11-10 02:21:31 +01:00
|
|
|
removeobject VAR_LAST_TALKED
|
|
|
|
return
|
|
|
|
|
|
|
|
AncientTomb_MapScript1_238FE1: @ 8238FE1
|
2017-12-27 04:20:29 +01:00
|
|
|
setflag FLAG_LANDMARK_ANCIENT_TOMB
|
2017-11-10 02:21:31 +01:00
|
|
|
checkflag FLAG_0x1BD
|
|
|
|
call_if 0, AncientTomb_EventScript_238FEE
|
|
|
|
end
|
|
|
|
|
|
|
|
AncientTomb_EventScript_238FEE:: @ 8238FEE
|
2018-10-18 04:07:23 +02:00
|
|
|
clearflag FLAG_HIDE_REGISTEEL
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
AncientTomb_MapScript1_238FF2: @ 8238FF2
|
|
|
|
checkflag FLAG_SYS_BRAILLE_FLY
|
|
|
|
call_if 0, AncientTomb_EventScript_238FFC
|
|
|
|
end
|
|
|
|
|
|
|
|
AncientTomb_EventScript_238FFC:: @ 8238FFC
|
|
|
|
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
|
|
|
|
|
|
|
|
AncientTomb_EventScript_239033:: @ 8239033
|
|
|
|
lockall
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_set FLAG_SYS_BRAILLE_FLY, AncientTomb_EventScript_239046
|
2017-11-10 02:21:31 +01:00
|
|
|
braillemessage AncientTomb_Braille_2A6D06
|
|
|
|
waitbuttonpress
|
|
|
|
hidebox2
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
|
|
|
AncientTomb_EventScript_239046:: @ 8239046
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox gUnknown_0827304E, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
|
|
|
AncientTomb_EventScript_239050:: @ 8239050
|
|
|
|
lockall
|
|
|
|
braillemessage AncientTomb_Braille_2A6D06
|
|
|
|
waitbuttonpress
|
|
|
|
hidebox2
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
|
|
|
AncientTomb_EventScript_23905A:: @ 823905A
|
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
waitse
|
|
|
|
playmoncry SPECIES_REGISTEEL, 2
|
|
|
|
delay 40
|
|
|
|
waitmoncry
|
|
|
|
setwildbattle SPECIES_REGISTEEL, 40, ITEM_NONE
|
|
|
|
setflag FLAG_SYS_CTRL_OBJ_DELETE
|
2017-11-28 23:02:09 +01:00
|
|
|
special StartRegiBattle
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
clearflag FLAG_SYS_CTRL_OBJ_DELETE
|
2018-08-08 10:37:12 +02:00
|
|
|
specialvar VAR_RESULT, GetBattleOutcome
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq AncientTomb_EventScript_2390A1
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 4
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq AncientTomb_EventScript_2390AA
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 5
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq AncientTomb_EventScript_2390AA
|
2017-11-10 02:21:31 +01:00
|
|
|
setflag FLAG_0x1BD
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
AncientTomb_EventScript_2390A1:: @ 82390A1
|
|
|
|
setflag FLAG_0x1BD
|
|
|
|
goto AncientTomb_EventScript_27376D
|
|
|
|
end
|
|
|
|
|
|
|
|
AncientTomb_EventScript_2390AA:: @ 82390AA
|
|
|
|
setvar VAR_0x8004, 403
|
|
|
|
goto AncientTomb_EventScript_273776
|
|
|
|
end
|
|
|
|
|