132 lines
4.5 KiB
PHP
132 lines
4.5 KiB
PHP
Route110_TrickHousePuzzle2_MapScripts::
|
||
map_script MAP_SCRIPT_ON_RESUME, Route110_TrickHousePuzzle2_OnResume
|
||
map_script MAP_SCRIPT_ON_TRANSITION, Route110_TrickHousePuzzle2_OnTransition
|
||
.byte 0
|
||
|
||
Route110_TrickHousePuzzle2_OnResume:
|
||
call_if_eq VAR_TEMP_1, 1, Route110_TrickHousePuzzle2_EventScript_PressButton1
|
||
call_if_eq VAR_TEMP_2, 1, Route110_TrickHousePuzzle2_EventScript_PressButton2
|
||
call_if_eq VAR_TEMP_3, 1, Route110_TrickHousePuzzle2_EventScript_PressButton3
|
||
call_if_eq VAR_TEMP_4, 1, Route110_TrickHousePuzzle2_EventScript_PressButton4
|
||
end
|
||
|
||
Route110_TrickHousePuzzle2_OnTransition:
|
||
setvar VAR_TEMP_1, 0
|
||
setvar VAR_TEMP_2, 0
|
||
setvar VAR_TEMP_3, 0
|
||
setvar VAR_TEMP_4, 0
|
||
end
|
||
|
||
Route110_TrickHousePuzzle2_EventScript_Scroll::
|
||
lockall
|
||
goto_if_eq VAR_TRICK_HOUSE_PUZZLE_2_STATE, 0, Route110_TrickHousePuzzle2_EventScript_FoundScroll
|
||
goto Route110_TrickHousePuzzle_EventScript_ReadScrollAgain
|
||
end
|
||
|
||
Route110_TrickHousePuzzle2_EventScript_FoundScroll::
|
||
setvar VAR_TRICK_HOUSE_PUZZLE_2_STATE, 1
|
||
goto Route110_TrickHousePuzzle_EventScript_FoundScroll
|
||
end
|
||
|
||
Route110_TrickHousePuzzle2_EventScript_Button1::
|
||
lockall
|
||
setvar VAR_TEMP_1, 1
|
||
playse SE_PIN
|
||
call Route110_TrickHousePuzzle2_EventScript_PressButton1
|
||
special DrawWholeMapView
|
||
releaseall
|
||
end
|
||
|
||
Route110_TrickHousePuzzle2_EventScript_Button2::
|
||
lockall
|
||
setvar VAR_TEMP_2, 1
|
||
playse SE_PIN
|
||
call Route110_TrickHousePuzzle2_EventScript_PressButton2
|
||
special DrawWholeMapView
|
||
releaseall
|
||
end
|
||
|
||
Route110_TrickHousePuzzle2_EventScript_Button3::
|
||
lockall
|
||
setvar VAR_TEMP_3, 1
|
||
playse SE_PIN
|
||
call Route110_TrickHousePuzzle2_EventScript_PressButton3
|
||
special DrawWholeMapView
|
||
releaseall
|
||
end
|
||
|
||
Route110_TrickHousePuzzle2_EventScript_Button4::
|
||
lockall
|
||
setvar VAR_TEMP_4, 1
|
||
playse SE_PIN
|
||
call Route110_TrickHousePuzzle2_EventScript_PressButton4
|
||
special DrawWholeMapView
|
||
releaseall
|
||
end
|
||
|
||
Route110_TrickHousePuzzle2_EventScript_PressButton1::
|
||
setmetatile 11, 12, METATILE_TrickHousePuzzle_Button_Pressed, FALSE
|
||
setmetatile 1, 13, METATILE_TrickHousePuzzle_Door_Shuttered, FALSE
|
||
return
|
||
|
||
Route110_TrickHousePuzzle2_EventScript_PressButton2::
|
||
setmetatile 0, 4, METATILE_TrickHousePuzzle_Button_Pressed, FALSE
|
||
setmetatile 5, 6, METATILE_TrickHousePuzzle_Door_Shuttered, FALSE
|
||
return
|
||
|
||
Route110_TrickHousePuzzle2_EventScript_PressButton3::
|
||
setmetatile 14, 5, METATILE_TrickHousePuzzle_Button_Pressed, FALSE
|
||
setmetatile 7, 15, METATILE_TrickHousePuzzle_Door_Shuttered, FALSE
|
||
return
|
||
|
||
Route110_TrickHousePuzzle2_EventScript_PressButton4::
|
||
setmetatile 7, 11, METATILE_TrickHousePuzzle_Button_Pressed, FALSE
|
||
setmetatile 14, 12, METATILE_TrickHousePuzzle_Door_Shuttered, FALSE
|
||
return
|
||
|
||
Route110_TrickHousePuzzle2_EventScript_Ted::
|
||
trainerbattle_single TRAINER_TED, Route110_TrickHousePuzzle2_Text_TedIntro, Route110_TrickHousePuzzle2_Text_TedDefeat
|
||
msgbox Route110_TrickHousePuzzle2_Text_TedPostBattle, MSGBOX_AUTOCLOSE
|
||
end
|
||
|
||
Route110_TrickHousePuzzle2_EventScript_Paul::
|
||
trainerbattle_single TRAINER_PAUL, Route110_TrickHousePuzzle2_Text_PaulIntro, Route110_TrickHousePuzzle2_Text_PaulDefeat
|
||
msgbox Route110_TrickHousePuzzle2_Text_PaulPostBattle, MSGBOX_AUTOCLOSE
|
||
end
|
||
|
||
Route110_TrickHousePuzzle2_EventScript_Georgia::
|
||
trainerbattle_single TRAINER_GEORGIA, Route110_TrickHousePuzzle2_Text_GeorgiaIntro, Route110_TrickHousePuzzle2_Text_GeorgiaDefeat
|
||
msgbox Route110_TrickHousePuzzle2_Text_GeorgiaPostBattle, MSGBOX_AUTOCLOSE
|
||
end
|
||
|
||
Route110_TrickHousePuzzle2_Text_WroteSecretCodeLockOpened:
|
||
.string "{PLAYER}在门上写下\n密码。\p“戏法大王十分聪颖”\n…… …… …… ……\p锁“咔嗒”一声开了!$"
|
||
|
||
Route110_TrickHousePuzzle2_Text_TedIntro:
|
||
.string "哪个开关能填补哪个洞?$"
|
||
|
||
Route110_TrickHousePuzzle2_Text_TedDefeat:
|
||
.string "对战之后,\n我更加迷茫了!$"
|
||
|
||
Route110_TrickHousePuzzle2_Text_TedPostBattle:
|
||
.string "能请你帮我按下\n所有的开关吗?$"
|
||
|
||
Route110_TrickHousePuzzle2_Text_PaulIntro:
|
||
.string "啊,这是你第二次\n挑战戏法屋!$"
|
||
|
||
Route110_TrickHousePuzzle2_Text_PaulDefeat:
|
||
.string "你也很擅长对战是吗?$"
|
||
|
||
Route110_TrickHousePuzzle2_Text_PaulPostBattle:
|
||
.string "这房子里的谜题都是\n戏法大王一个人做成的。$"
|
||
|
||
Route110_TrickHousePuzzle2_Text_GeorgiaIntro:
|
||
.string "我希望有一天能开设自己的道馆,\n所以,我要学习怎样设计谜题。$"
|
||
|
||
Route110_TrickHousePuzzle2_Text_GeorgiaDefeat:
|
||
.string "我对对战的学习还不足!$"
|
||
|
||
Route110_TrickHousePuzzle2_Text_GeorgiaPostBattle:
|
||
.string "你真强,不是吗?\n也许你已经有道馆馆主的实力了!$"
|
||
|