pokeemerald/data/maps/Route110_TrickHousePuzzle3/scripts.inc

361 lines
17 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
Route110_TrickHousePuzzle3_MapScripts:: @ 826BED8
2019-11-06 23:57:45 +01:00
map_script MAP_SCRIPT_ON_RESUME, Route110_TrickHousePuzzle3_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, Route110_TrickHousePuzzle3_OnTransition
2017-11-10 02:21:31 +01:00
.byte 0
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_OnResume: @ 826BEE3
call Route110_TrickHousePuzzle3_EventScript_UpdateButtonMetatiles
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_9, 0
2019-11-06 23:57:45 +01:00
call_if_eq Route110_TrickHousePuzzle3_EventScript_SetDoorsState0
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_9, 1
2019-11-06 23:57:45 +01:00
call_if_eq Route110_TrickHousePuzzle3_EventScript_SetDoorsState1
2017-11-10 02:21:31 +01:00
end
Route110_TrickHousePuzzle3_OnTransition: @ 826BEFF
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
setvar VAR_TEMP_8, 0
setvar VAR_TEMP_9, 0
2017-11-10 02:21:31 +01:00
end
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_UpdateButtonMetatiles:: @ 826BF1E
2019-06-13 00:47:51 +02:00
setmetatile 4, 14, METATILE_TrickHousePuzzle_Button_Up, 0
setmetatile 3, 11, METATILE_TrickHousePuzzle_Button_Up, 0
setmetatile 12, 5, METATILE_TrickHousePuzzle_Button_Up, 0
setmetatile 8, 2, METATILE_TrickHousePuzzle_Button_Up, 0
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_8, 1
2019-11-06 23:57:45 +01:00
call_if_eq Route110_TrickHousePuzzle3_EventScript_PressedButton1Metatile
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_8, 2
2019-11-06 23:57:45 +01:00
call_if_eq Route110_TrickHousePuzzle3_EventScript_PressedButton2Metatile
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_8, 3
2019-11-06 23:57:45 +01:00
call_if_eq Route110_TrickHousePuzzle3_EventScript_PressedButton3Metatile
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_8, 4
2019-11-06 23:57:45 +01:00
call_if_eq Route110_TrickHousePuzzle3_EventScript_PressedButton4Metatile
2017-11-10 02:21:31 +01:00
return
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_PressedButton1Metatile:: @ 826BF6F
2019-06-13 00:47:51 +02:00
setmetatile 4, 14, METATILE_TrickHousePuzzle_Button_Pressed, 0
2017-11-10 02:21:31 +01:00
return
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_PressedButton2Metatile:: @ 826BF79
2019-06-13 00:47:51 +02:00
setmetatile 3, 11, METATILE_TrickHousePuzzle_Button_Pressed, 0
2017-11-10 02:21:31 +01:00
return
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_PressedButton3Metatile:: @ 826BF83
2019-06-13 00:47:51 +02:00
setmetatile 12, 5, METATILE_TrickHousePuzzle_Button_Pressed, 0
2017-11-10 02:21:31 +01:00
return
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_PressedButton4Metatile:: @ 826BF8D
2019-06-13 00:47:51 +02:00
setmetatile 8, 2, METATILE_TrickHousePuzzle_Button_Pressed, 0
2017-11-10 02:21:31 +01:00
return
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_SetDoorsState0:: @ 826BF97
2019-06-13 00:47:51 +02:00
setmetatile 1, 6, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile0, 0
setmetatile 2, 6, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile1, 0
setmetatile 1, 7, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile2, 0
setmetatile 2, 7, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile3, 0
setmetatile 1, 9, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile0, 0
setmetatile 2, 9, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile1, 0
setmetatile 1, 10, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile2, 0
setmetatile 2, 10, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile3, 0
setmetatile 4, 15, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile0, 0
setmetatile 5, 15, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile1, 0
setmetatile 4, 16, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile2, 0
setmetatile 5, 16, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile3, 0
setmetatile 13, 9, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile0, 0
setmetatile 14, 9, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile1, 0
setmetatile 13, 10, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile2, 0
setmetatile 14, 10, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile3, 0
setmetatile 13, 15, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile0, 0
setmetatile 14, 15, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile1, 0
setmetatile 13, 16, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile2, 0
setmetatile 14, 16, METATILE_TrickHousePuzzle_BlueDoorH_Open_Tile3, 0
setmetatile 3, 7, METATILE_TrickHousePuzzle_BlueDoorV_Retracted, 1
setmetatile 3, 8, METATILE_TrickHousePuzzle_Floor_ShadowTop, 0
setmetatile 3, 13, METATILE_TrickHousePuzzle_BlueDoorV_Retracted, 1
setmetatile 3, 14, METATILE_TrickHousePuzzle_Floor_ShadowTop, 0
setmetatile 6, 4, METATILE_TrickHousePuzzle_BlueDoorV_Retracted, 1
setmetatile 6, 5, METATILE_TrickHousePuzzle_Floor_ShadowTop, 0
setmetatile 9, 16, METATILE_TrickHousePuzzle_BlueDoorV_Retracted, 1
setmetatile 9, 17, METATILE_TrickHousePuzzle_Floor_ShadowTop, 0
setmetatile 12, 7, METATILE_TrickHousePuzzle_BlueDoorV_Retracted, 1
setmetatile 12, 8, METATILE_TrickHousePuzzle_Floor_ShadowTop, 0
setmetatile 1, 3, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile0, 0
setmetatile 2, 3, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile1, 0
setmetatile 1, 4, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile2, 1
setmetatile 2, 4, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile3, 1
setmetatile 1, 12, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile0, 0
setmetatile 2, 12, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile1, 0
setmetatile 1, 13, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile2, 1
setmetatile 2, 13, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile3, 1
setmetatile 4, 6, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile0, 0
setmetatile 5, 6, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile1, 0
setmetatile 4, 7, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile2, 1
setmetatile 5, 7, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile3, 1
setmetatile 4, 12, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile0, 0
setmetatile 5, 12, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile1, 0
setmetatile 4, 13, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile2, 1
setmetatile 5, 13, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile3, 1
setmetatile 4, 18, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile0, 0
setmetatile 5, 18, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile1, 0
setmetatile 4, 19, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile2, 1
setmetatile 5, 19, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile3, 1
setmetatile 7, 9, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile0, 0
setmetatile 8, 9, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile1, 0
setmetatile 7, 10, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile2, 1
setmetatile 8, 10, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile3, 1
setmetatile 10, 6, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile0, 0
setmetatile 11, 6, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile1, 0
setmetatile 10, 7, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile2, 1
setmetatile 11, 7, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile3, 1
setmetatile 10, 12, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile0, 0
setmetatile 11, 12, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile1, 0
setmetatile 10, 13, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile2, 1
setmetatile 11, 13, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile3, 1
setmetatile 10, 18, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile0, 0
setmetatile 11, 18, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile1, 0
setmetatile 10, 19, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile2, 1
setmetatile 11, 19, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile3, 1
setmetatile 13, 3, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile0, 0
setmetatile 14, 3, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile1, 0
setmetatile 13, 4, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile2, 1
setmetatile 14, 4, METATILE_TrickHousePuzzle_RedDoorH_Closed_Tile3, 1
setmetatile 3, 16, METATILE_TrickHousePuzzle_RedDoorV_Open0, 1
setmetatile 3, 17, METATILE_TrickHousePuzzle_RedDoorV_Open1, 1
setmetatile 9, 4, METATILE_TrickHousePuzzle_RedDoorV_Open0, 1
setmetatile 9, 5, METATILE_TrickHousePuzzle_RedDoorV_Open1, 1
2017-11-10 02:21:31 +01:00
return
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_SetDoorsState1:: @ 826C232
2019-06-13 00:47:51 +02:00
setmetatile 1, 6, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile0, 0
setmetatile 2, 6, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile1, 0
setmetatile 1, 7, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile2, 1
setmetatile 2, 7, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile3, 1
setmetatile 1, 9, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile0, 0
setmetatile 2, 9, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile1, 0
setmetatile 1, 10, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile2, 1
setmetatile 2, 10, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile3, 1
setmetatile 4, 15, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile0, 0
setmetatile 5, 15, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile1, 0
setmetatile 4, 16, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile2, 1
setmetatile 5, 16, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile3, 1
setmetatile 13, 9, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile0, 0
setmetatile 14, 9, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile1, 0
setmetatile 13, 10, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile2, 1
setmetatile 14, 10, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile3, 1
setmetatile 13, 15, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile0, 0
setmetatile 14, 15, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile1, 0
setmetatile 13, 16, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile2, 1
setmetatile 14, 16, METATILE_TrickHousePuzzle_BlueDoorH_Closed_Tile3, 1
setmetatile 3, 7, METATILE_TrickHousePuzzle_BlueDoorV_Open0, 1
setmetatile 3, 8, METATILE_TrickHousePuzzle_BlueDoorV_Open1, 1
setmetatile 3, 13, METATILE_TrickHousePuzzle_BlueDoorV_Open0, 1
setmetatile 3, 14, METATILE_TrickHousePuzzle_BlueDoorV_Open1, 1
setmetatile 6, 4, METATILE_TrickHousePuzzle_BlueDoorV_Open0, 1
setmetatile 6, 5, METATILE_TrickHousePuzzle_BlueDoorV_Open1, 1
setmetatile 9, 16, METATILE_TrickHousePuzzle_BlueDoorV_Open0, 1
setmetatile 9, 17, METATILE_TrickHousePuzzle_BlueDoorV_Open1, 1
setmetatile 12, 7, METATILE_TrickHousePuzzle_BlueDoorV_Open0, 1
setmetatile 12, 8, METATILE_TrickHousePuzzle_BlueDoorV_Open1, 1
setmetatile 1, 3, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile0, 0
setmetatile 2, 3, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile1, 0
setmetatile 1, 4, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile2, 0
setmetatile 2, 4, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile3, 0
setmetatile 1, 12, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile0, 0
setmetatile 2, 12, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile1, 0
setmetatile 1, 13, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile2, 0
setmetatile 2, 13, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile3, 0
setmetatile 4, 6, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile0, 0
setmetatile 5, 6, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile1, 0
setmetatile 4, 7, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile2, 0
setmetatile 5, 7, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile3, 0
setmetatile 4, 12, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile0, 0
setmetatile 5, 12, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile1, 0
setmetatile 4, 13, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile2, 0
setmetatile 5, 13, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile3, 0
setmetatile 4, 18, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile0, 0
setmetatile 5, 18, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile1, 0
setmetatile 4, 19, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile2, 0
setmetatile 5, 19, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile3, 0
setmetatile 7, 9, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile0, 0
setmetatile 8, 9, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile1, 0
setmetatile 7, 10, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile2, 0
setmetatile 8, 10, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile3, 0
setmetatile 10, 6, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile0, 0
setmetatile 11, 6, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile1, 0
setmetatile 10, 7, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile2, 0
setmetatile 11, 7, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile3, 0
setmetatile 10, 12, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile0, 0
setmetatile 11, 12, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile1, 0
setmetatile 10, 13, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile2, 0
setmetatile 11, 13, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile3, 0
setmetatile 10, 18, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile0, 0
setmetatile 11, 18, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile1, 0
setmetatile 10, 19, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile2, 0
setmetatile 11, 19, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile3, 0
setmetatile 13, 3, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile0, 0
setmetatile 14, 3, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile1, 0
setmetatile 13, 4, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile2, 0
setmetatile 14, 4, METATILE_TrickHousePuzzle_RedDoorH_Open_Tile3, 0
setmetatile 3, 16, METATILE_TrickHousePuzzle_RedDoorV_Retracted, 1
setmetatile 3, 17, METATILE_TrickHousePuzzle_Floor_ShadowTop_Alt, 0
setmetatile 9, 4, METATILE_TrickHousePuzzle_RedDoorV_Retracted, 1
setmetatile 9, 5, METATILE_TrickHousePuzzle_Floor_ShadowTop_Alt, 0
2017-11-10 02:21:31 +01:00
return
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_Button1:: @ 826C4CD
2017-11-10 02:21:31 +01:00
lockall
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_8, 1
2019-11-06 23:57:45 +01:00
goto Route110_TrickHousePuzzle3_EventScript_PressButton
2017-11-10 02:21:31 +01:00
end
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_Button2:: @ 826C4D9
2017-11-10 02:21:31 +01:00
lockall
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_8, 2
2019-11-06 23:57:45 +01:00
goto Route110_TrickHousePuzzle3_EventScript_PressButton
2017-11-10 02:21:31 +01:00
end
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_Button3:: @ 826C4E5
2017-11-10 02:21:31 +01:00
lockall
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_8, 3
2019-11-06 23:57:45 +01:00
goto Route110_TrickHousePuzzle3_EventScript_PressButton
2017-11-10 02:21:31 +01:00
end
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_Button4:: @ 826C4F1
2017-11-10 02:21:31 +01:00
lockall
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_8, 4
2019-11-06 23:57:45 +01:00
goto Route110_TrickHousePuzzle3_EventScript_PressButton
2017-11-10 02:21:31 +01:00
end
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_PressButton:: @ 826C4FD
call Route110_TrickHousePuzzle3_EventScript_SetButton
2017-11-10 02:21:31 +01:00
playse SE_PIN
2019-11-06 23:57:45 +01:00
call Route110_TrickHousePuzzle3_EventScript_UpdateButtonMetatiles
goto Route110_TrickHousePuzzle3_EventScript_AlternateDoors
2017-11-10 02:21:31 +01:00
end
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_SetButton:: @ 826C510
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
compare VAR_TEMP_8, 1
2019-11-06 23:57:45 +01:00
call_if_eq Route110_TrickHousePuzzle3_EventScript_SetButton1
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_8, 2
2019-11-06 23:57:45 +01:00
call_if_eq Route110_TrickHousePuzzle3_EventScript_SetButton2
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_8, 3
2019-11-06 23:57:45 +01:00
call_if_eq Route110_TrickHousePuzzle3_EventScript_SetButton3
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_8, 4
2019-11-06 23:57:45 +01:00
call_if_eq Route110_TrickHousePuzzle3_EventScript_SetButton4
2017-11-10 02:21:31 +01:00
return
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_SetButton1:: @ 826C551
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
2017-11-10 02:21:31 +01:00
return
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_SetButton2:: @ 826C557
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_2, 1
2017-11-10 02:21:31 +01:00
return
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_SetButton3:: @ 826C55D
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_3, 1
2017-11-10 02:21:31 +01:00
return
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_SetButton4:: @ 826C563
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_4, 1
2017-11-10 02:21:31 +01:00
return
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_AlternateDoors:: @ 826C569
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_9, 1
2019-11-06 23:57:45 +01:00
call_if_eq Route110_TrickHousePuzzle3_EventScript_SetDoorsState0
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_9, 0
2019-11-06 23:57:45 +01:00
call_if_eq Route110_TrickHousePuzzle3_EventScript_SetDoorsState1
2017-11-10 02:21:31 +01:00
special DrawWholeMapView
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_9, 1
2019-11-06 23:57:45 +01:00
goto_if_eq Route110_TrickHousePuzzle3_EventScript_ClearAltDoorState
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_9, 0
2019-11-06 23:57:45 +01:00
goto_if_eq Route110_TrickHousePuzzle3_EventScript_SetAltDoorState
2017-11-10 02:21:31 +01:00
end
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_ClearAltDoorState:: @ 826C599
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_9, 0
2017-11-10 02:21:31 +01:00
releaseall
end
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_SetAltDoorState:: @ 826C5A0
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_9, 1
2017-11-10 02:21:31 +01:00
releaseall
end
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_Scroll:: @ 826C5A7
2017-11-10 02:21:31 +01:00
lockall
2019-02-22 10:18:43 +01:00
compare VAR_TRICK_HOUSE_PUZZLE_3_STATE, 0
2019-11-06 23:57:45 +01:00
goto_if_eq Route110_TrickHousePuzzle3_EventScript_FoundScroll
goto Route110_TrickHousePuzzle_EventScript_ReadScrollAgain
2017-11-10 02:21:31 +01:00
end
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_FoundScroll:: @ 826C5B9
2019-02-22 10:18:43 +01:00
setvar VAR_TRICK_HOUSE_PUZZLE_3_STATE, 1
2019-11-06 23:57:45 +01:00
goto Route110_TrickHousePuzzle_EventScript_FoundScroll
2017-11-10 02:21:31 +01:00
end
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_Justin:: @ 826C5C4
trainerbattle_single TRAINER_JUSTIN, Route110_TrickHousePuzzle3_Text_JustinIntro, Route110_TrickHousePuzzle3_Text_JustinDefeat
msgbox Route110_TrickHousePuzzle3_Text_JustinPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_Martha:: @ 826C5DB
trainerbattle_single TRAINER_MARTHA, Route110_TrickHousePuzzle3_Text_MarthaIntro, Route110_TrickHousePuzzle3_Text_MarthaDefeat
msgbox Route110_TrickHousePuzzle3_Text_MarthaPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_EventScript_Alan:: @ 826C5F2
trainerbattle_single TRAINER_ALAN, Route110_TrickHousePuzzle3_Text_AlanIntro, Route110_TrickHousePuzzle3_Text_AlanDefeat
msgbox Route110_TrickHousePuzzle3_Text_AlanPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_Text_WroteSecretCodeLockOpened: @ 826C609
.string "{PLAYER} wrote down the secret code\n"
.string "on the door.\p"
.string "“TRICK MASTER is coveted.”\n"
.string "… … … … … … … …\p"
.string "The lock clicked open!$"
2017-11-10 02:21:31 +01:00
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_Text_JustinIntro: @ 826C676
2017-11-10 02:21:31 +01:00
.string "I keep coming back to this same place!$"
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_Text_JustinDefeat: @ 826C69D
2018-12-07 16:41:08 +01:00
.string "I'm already having trouble, and then\n"
.string "you have to beat me? It's not fair!$"
2017-11-10 02:21:31 +01:00
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_Text_JustinPostBattle: @ 826C6E6
2018-12-07 16:41:08 +01:00
.string "It's full of doors here!\n"
.string "It's too small and dark in here! Help!$"
2017-11-10 02:21:31 +01:00
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_Text_MarthaIntro: @ 826C726
2018-12-07 16:41:08 +01:00
.string "I don't know what's going on here.\n"
.string "I'm starting to feel sad…$"
2017-11-10 02:21:31 +01:00
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_Text_MarthaDefeat: @ 826C763
2018-12-07 16:41:08 +01:00
.string "You… You're awful!$"
2017-11-10 02:21:31 +01:00
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_Text_MarthaPostBattle: @ 826C776
2018-12-07 16:41:08 +01:00
.string "I know I'm weak!\n"
2017-11-10 02:21:31 +01:00
.string "And, I have no sense of direction!$"
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_Text_AlanIntro: @ 826C7AA
2018-12-07 16:41:08 +01:00
.string "I don't get it. What would anyone want\n"
2017-11-10 02:21:31 +01:00
.string "with a house this bizarre?$"
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_Text_AlanDefeat: @ 826C7EC
2018-12-07 16:41:08 +01:00
.string "I don't get it.\n"
2017-11-10 02:21:31 +01:00
.string "How did I lose?$"
2019-11-06 23:57:45 +01:00
Route110_TrickHousePuzzle3_Text_AlanPostBattle: @ 826C80C
2018-12-07 16:41:08 +01:00
.string "I don't get it.\n"
2017-11-10 02:21:31 +01:00
.string "How many traps are in this house?\p"
.string "You may be the one to solve that.$"