pokeemerald/data/maps/AncientTomb/scripts.inc

95 lines
2.3 KiB
PHP
Raw Normal View History

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
2018-12-22 03:32:45 +01:00
call_if_set FLAG_SYS_CTRL_OBJ_DELETE, AncientTomb_EventScript_238FCD
2017-11-10 02:21:31 +01:00
end
AncientTomb_EventScript_238FCD:: @ 8238FCD
specialvar VAR_RESULT, GetBattleOutcome
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
2019-01-02 22:12:43 +01:00
call_if_unset FLAG_DEFEATED_REGISTEEL, AncientTomb_EventScript_238FEE
2017-11-10 02:21:31 +01:00
end
AncientTomb_EventScript_238FEE:: @ 8238FEE
clearflag FLAG_HIDE_REGISTEEL
2017-11-10 02:21:31 +01:00
return
AncientTomb_MapScript1_238FF2: @ 8238FF2
call_if_unset FLAG_SYS_REGISTEEL_PUZZLE_COMPLETED, AncientTomb_EventScript_238FFC
2017-11-10 02:21:31 +01:00
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
goto_if_set FLAG_SYS_REGISTEEL_PUZZLE_COMPLETED, AncientTomb_EventScript_239046
2017-11-10 02:21:31 +01:00
braillemessage AncientTomb_Braille_2A6D06
waitbuttonpress
hidebox2
releaseall
end
AncientTomb_EventScript_239046:: @ 8239046
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
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq AncientTomb_EventScript_2390A1
compare VAR_RESULT, 4
2018-12-22 02:28:24 +01:00
goto_if_eq AncientTomb_EventScript_2390AA
compare VAR_RESULT, 5
2018-12-22 02:28:24 +01:00
goto_if_eq AncientTomb_EventScript_2390AA
2019-01-02 22:12:43 +01:00
setflag FLAG_DEFEATED_REGISTEEL
2017-11-10 02:21:31 +01:00
release
end
AncientTomb_EventScript_2390A1:: @ 82390A1
2019-01-02 22:12:43 +01:00
setflag FLAG_DEFEATED_REGISTEEL
2017-11-10 02:21:31 +01:00
goto AncientTomb_EventScript_27376D
end
AncientTomb_EventScript_2390AA:: @ 82390AA
setvar VAR_0x8004, 403
goto AncientTomb_EventScript_273776
end