pokeemerald/data/maps/Route110_TrickHousePuzzle2/scripts.inc

147 lines
4.6 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_MapScripts::
2019-11-06 23:57:45 +01:00
map_script MAP_SCRIPT_ON_RESUME, Route110_TrickHousePuzzle2_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, Route110_TrickHousePuzzle2_OnTransition
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_OnResume:
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_1, 1
2019-11-06 23:57:45 +01:00
call_if_eq Route110_TrickHousePuzzle2_EventScript_PressButton1
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_2, 1
2019-11-06 23:57:45 +01:00
call_if_eq Route110_TrickHousePuzzle2_EventScript_PressButton2
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_3, 1
2019-11-06 23:57:45 +01:00
call_if_eq Route110_TrickHousePuzzle2_EventScript_PressButton3
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_4, 1
2019-11-06 23:57:45 +01:00
call_if_eq Route110_TrickHousePuzzle2_EventScript_PressButton4
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_OnTransition:
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 0
setvar VAR_TEMP_2, 0
setvar VAR_TEMP_3, 0
setvar VAR_TEMP_4, 0
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_EventScript_Scroll::
2017-11-10 02:21:31 +01:00
lockall
2019-02-22 10:18:43 +01:00
compare VAR_TRICK_HOUSE_PUZZLE_2_STATE, 0
2019-11-06 23:57:45 +01:00
goto_if_eq Route110_TrickHousePuzzle2_EventScript_FoundScroll
goto Route110_TrickHousePuzzle_EventScript_ReadScrollAgain
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_EventScript_FoundScroll::
2019-02-22 10:18:43 +01:00
setvar VAR_TRICK_HOUSE_PUZZLE_2_STATE, 1
2019-11-06 23:57:45 +01:00
goto Route110_TrickHousePuzzle_EventScript_FoundScroll
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_EventScript_Button1::
2017-11-10 02:21:31 +01:00
lockall
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
2017-11-10 02:21:31 +01:00
playse SE_PIN
2019-11-06 23:57:45 +01:00
call Route110_TrickHousePuzzle2_EventScript_PressButton1
2017-11-10 02:21:31 +01:00
special DrawWholeMapView
releaseall
end
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_EventScript_Button2::
2017-11-10 02:21:31 +01:00
lockall
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_2, 1
2017-11-10 02:21:31 +01:00
playse SE_PIN
2019-11-06 23:57:45 +01:00
call Route110_TrickHousePuzzle2_EventScript_PressButton2
2017-11-10 02:21:31 +01:00
special DrawWholeMapView
releaseall
end
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_EventScript_Button3::
2017-11-10 02:21:31 +01:00
lockall
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_3, 1
2017-11-10 02:21:31 +01:00
playse SE_PIN
2019-11-06 23:57:45 +01:00
call Route110_TrickHousePuzzle2_EventScript_PressButton3
2017-11-10 02:21:31 +01:00
special DrawWholeMapView
releaseall
end
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_EventScript_Button4::
2017-11-10 02:21:31 +01:00
lockall
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_4, 1
2017-11-10 02:21:31 +01:00
playse SE_PIN
2019-11-06 23:57:45 +01:00
call Route110_TrickHousePuzzle2_EventScript_PressButton4
2017-11-10 02:21:31 +01:00
special DrawWholeMapView
releaseall
end
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_EventScript_PressButton1::
2019-06-13 00:47:51 +02:00
setmetatile 11, 12, METATILE_TrickHousePuzzle_Button_Pressed, 0
setmetatile 1, 13, METATILE_TrickHousePuzzle_Door_Shuttered, 0
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_EventScript_PressButton2::
2019-06-13 00:47:51 +02:00
setmetatile 0, 4, METATILE_TrickHousePuzzle_Button_Pressed, 0
setmetatile 5, 6, METATILE_TrickHousePuzzle_Door_Shuttered, 0
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_EventScript_PressButton3::
2019-06-13 00:47:51 +02:00
setmetatile 14, 5, METATILE_TrickHousePuzzle_Button_Pressed, 0
setmetatile 7, 15, METATILE_TrickHousePuzzle_Door_Shuttered, 0
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_EventScript_PressButton4::
2019-06-13 00:47:51 +02:00
setmetatile 7, 11, METATILE_TrickHousePuzzle_Button_Pressed, 0
setmetatile 14, 12, METATILE_TrickHousePuzzle_Door_Shuttered, 0
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_EventScript_Ted::
2019-11-06 23:57:45 +01:00
trainerbattle_single TRAINER_TED, Route110_TrickHousePuzzle2_Text_TedIntro, Route110_TrickHousePuzzle2_Text_TedDefeat
msgbox Route110_TrickHousePuzzle2_Text_TedPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_EventScript_Paul::
2019-11-06 23:57:45 +01:00
trainerbattle_single TRAINER_PAUL, Route110_TrickHousePuzzle2_Text_PaulIntro, Route110_TrickHousePuzzle2_Text_PaulDefeat
msgbox Route110_TrickHousePuzzle2_Text_PaulPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_EventScript_Georgia::
2019-11-06 23:57:45 +01:00
trainerbattle_single TRAINER_GEORGIA, Route110_TrickHousePuzzle2_Text_GeorgiaIntro, Route110_TrickHousePuzzle2_Text_GeorgiaDefeat
msgbox Route110_TrickHousePuzzle2_Text_GeorgiaPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_Text_WroteSecretCodeLockOpened:
.string "{PLAYER} wrote down the secret code\n"
.string "on the door.\p"
.string "“TRICK MASTER is smart.”\n"
.string "… … … … … … … …\p"
.string "The lock clicked open!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_Text_TedIntro:
2017-11-10 02:21:31 +01:00
.string "Which switch closes which hole?$"
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_Text_TedDefeat:
2018-12-07 16:41:08 +01:00
.string "After that battle, I'm even more\n"
2017-11-10 02:21:31 +01:00
.string "confused!$"
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_Text_TedPostBattle:
2017-11-10 02:21:31 +01:00
.string "Can I get you to push all the buttons\n"
.string "for me?$"
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_Text_PaulIntro:
2018-12-07 16:41:08 +01:00
.string "Oh! You're on your second TRICK HOUSE\n"
2017-11-10 02:21:31 +01:00
.string "challenge!$"
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_Text_PaulDefeat:
2018-12-07 16:41:08 +01:00
.string "You're good at battling too?$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_Text_PaulPostBattle:
2017-11-10 02:21:31 +01:00
.string "The TRICK MASTER rigged all the tricks\n"
.string "in this house all by himself.$"
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_Text_GeorgiaIntro:
2017-11-10 02:21:31 +01:00
.string "I want to make my own GYM one day.\n"
2018-12-07 16:41:08 +01:00
.string "So, I'm studying how to set traps.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_Text_GeorgiaDefeat:
2018-12-07 16:41:08 +01:00
.string "I didn't study battling enough!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route110_TrickHousePuzzle2_Text_GeorgiaPostBattle:
2018-12-07 16:41:08 +01:00
.string "You're strong, aren't you?\n"
2017-11-10 02:21:31 +01:00
.string "Maybe even enough to be a GYM LEADER!$"