pokeemerald/data/maps/DesertRuins/scripts.inc

95 lines
2.5 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
DesertRuins_MapScripts:: @ 822D95B
2019-02-22 08:28:32 +01:00
map_script MAP_SCRIPT_ON_RESUME, DesertRuins_MapScript1_22D96B
map_script MAP_SCRIPT_ON_LOAD, DesertRuins_MapScript1_22D989
2019-04-05 01:28:37 +02:00
map_script MAP_SCRIPT_ON_TRANSITION, DesertRuins_OnTransition
2017-11-10 02:21:31 +01:00
.byte 0
DesertRuins_MapScript1_22D96B: @ 822D96B
2018-12-22 03:32:45 +01:00
call_if_set FLAG_SYS_CTRL_OBJ_DELETE, DesertRuins_EventScript_22D975
2017-11-10 02:21:31 +01:00
end
DesertRuins_EventScript_22D975:: @ 822D975
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, 7
2019-02-23 02:21:26 +01:00
goto_if_ne Common_EventScript_NopReturn
2017-11-10 02:21:31 +01:00
removeobject VAR_LAST_TALKED
return
DesertRuins_MapScript1_22D989: @ 822D989
2019-02-18 20:17:02 +01:00
call_if_unset FLAG_SYS_REGIROCK_PUZZLE_COMPLETED, DesertRuins_EventScript_22D993
2017-11-10 02:21:31 +01:00
end
DesertRuins_EventScript_22D993:: @ 822D993
setmetatile 7, 19, METATILE_Cave_EntranceCover, 1
setmetatile 8, 19, METATILE_Cave_EntranceCover, 1
setmetatile 9, 19, METATILE_Cave_EntranceCover, 1
setmetatile 7, 20, METATILE_Cave_SealedChamberBraille_Mid, 1
setmetatile 8, 20, METATILE_Cave_SealedChamberBraille_Mid, 1
setmetatile 9, 20, METATILE_Cave_SealedChamberBraille_Mid, 1
2017-11-10 02:21:31 +01:00
return
2019-04-05 01:28:37 +02:00
DesertRuins_OnTransition: @ 822D9CA
2017-12-27 04:20:29 +01:00
setflag FLAG_LANDMARK_DESERT_RUINS
2019-01-02 22:12:43 +01:00
call_if_unset FLAG_DEFEATED_REGIROCK, DesertRuins_EventScript_22D9D7
2017-11-10 02:21:31 +01:00
end
DesertRuins_EventScript_22D9D7:: @ 822D9D7
clearflag FLAG_HIDE_REGIROCK
2017-11-10 02:21:31 +01:00
return
DesertRuins_EventScript_22D9DB:: @ 822D9DB
lockall
2019-02-18 20:17:02 +01:00
goto_if_set FLAG_SYS_REGIROCK_PUZZLE_COMPLETED, DesertRuins_EventScript_22D9EE
2017-11-10 02:21:31 +01:00
braillemessage DesertRuins_Braille_2A6CA0
waitbuttonpress
hidebox2
releaseall
end
DesertRuins_EventScript_22D9EE:: @ 822D9EE
2019-08-15 05:38:42 +02:00
msgbox gText_BigHoleInTheWall, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
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
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 DesertRuins_EventScript_22DA49
compare VAR_RESULT, 4
2018-12-22 02:28:24 +01:00
goto_if_eq DesertRuins_EventScript_22DA52
compare VAR_RESULT, 5
2018-12-22 02:28:24 +01:00
goto_if_eq DesertRuins_EventScript_22DA52
2019-01-02 22:12:43 +01:00
setflag FLAG_DEFEATED_REGIROCK
2017-11-10 02:21:31 +01:00
release
end
DesertRuins_EventScript_22DA49:: @ 822DA49
2019-01-02 22:12:43 +01:00
setflag FLAG_DEFEATED_REGIROCK
2019-08-15 05:38:42 +02:00
goto Common_EventScript_RemoveStaticPokemon
2017-11-10 02:21:31 +01:00
end
DesertRuins_EventScript_22DA52:: @ 822DA52
2019-08-15 05:38:42 +02:00
setvar VAR_0x8004, SPECIES_REGIROCK
goto Common_EventScript_LegendaryFlewAway
2017-11-10 02:21:31 +01:00
end