mirror of
https://github.com/pret/pokeemerald.git
synced 2026-08-28 21:50:56 -05:00
52 lines
1.8 KiB
PHP
52 lines
1.8 KiB
PHP
Route110_TrickHousePuzzle1_MapScripts::
|
|
map_script MAP_SCRIPT_ON_LOAD, Route110_TrickHousePuzzle1_OnLoad
|
|
.byte 0
|
|
|
|
Route110_TrickHousePuzzle1_OnLoad:
|
|
goto_if_eq VAR_TRICK_HOUSE_PUZZLE_1_STATE, 2, Route110_TrickHousePuzzle1_EventScript_OpenDoor
|
|
end
|
|
|
|
Route110_TrickHousePuzzle1_EventScript_OpenDoor::
|
|
setmetatile 13, 1, METATILE_TrickHousePuzzle_Stairs_Down, FALSE
|
|
end
|
|
|
|
Route110_TrickHousePuzzle1_EventScript_Scroll::
|
|
lockall
|
|
goto_if_eq VAR_TRICK_HOUSE_PUZZLE_1_STATE, 0, Route110_TrickHousePuzzle1_EventScript_FoundScroll
|
|
goto Route110_TrickHousePuzzle_EventScript_ReadScrollAgain
|
|
end
|
|
|
|
Route110_TrickHousePuzzle1_EventScript_FoundScroll::
|
|
setvar VAR_TRICK_HOUSE_PUZZLE_1_STATE, 1
|
|
goto Route110_TrickHousePuzzle_EventScript_FoundScroll
|
|
end
|
|
|
|
Route110_TrickHousePuzzle1_EventScript_Sally::
|
|
trainerbattle_single TRAINER_SALLY, Route110_TrickHousePuzzle1_Text_SallyIntro, Route110_TrickHousePuzzle1_Text_SallyDefeat
|
|
msgbox Route110_TrickHousePuzzle1_Text_SallyPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
Route110_TrickHousePuzzle1_EventScript_Eddie::
|
|
trainerbattle_single TRAINER_EDDIE, Route110_TrickHousePuzzle1_Text_EddieIntro, Route110_TrickHousePuzzle1_Text_EddieDefeat
|
|
msgbox Route110_TrickHousePuzzle1_Text_EddiePostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
Route110_TrickHousePuzzle1_EventScript_Robin::
|
|
trainerbattle_single TRAINER_ROBIN, Route110_TrickHousePuzzle1_Text_RobinIntro, Route110_TrickHousePuzzle1_Text_RobinDefeat
|
|
msgbox Route110_TrickHousePuzzle1_Text_RobinPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
.ifdef FRENCH
|
|
.include "data/maps/Route110_TrickHousePuzzle1/text_fr.inc"
|
|
.else
|
|
.ifdef ITALIAN
|
|
.include "data/maps/Route110_TrickHousePuzzle1/text_it.inc"
|
|
.else
|
|
.ifdef SPANISH
|
|
.include "data/maps/Route110_TrickHousePuzzle1/text_es.inc"
|
|
.else
|
|
.include "data/maps/Route110_TrickHousePuzzle1/text.inc"
|
|
.endif
|
|
.endif
|
|
.endif
|