pokeemerald/data/maps/Route113/scripts.inc

171 lines
4.9 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
Route113_MapScripts:: @ 81F2153
2019-02-22 08:28:32 +01:00
map_script MAP_SCRIPT_ON_RESUME, Route113_MapScript1_1F215E
map_script MAP_SCRIPT_ON_TRANSITION, Route113_OnTransition
2017-11-10 02:21:31 +01:00
.byte 0
Route113_MapScript1_1F215E: @ 81F215E
setstepcallback 1
end
Route113_OnTransition: @ 81F2161
clearflag FLAG_FORCE_MIRAGE_TOWER_VISIBLE
2017-11-10 02:21:31 +01:00
call Route113_EventScript_1F216A
end
Route113_EventScript_1F216A:: @ 81F216A
2018-05-19 18:02:43 +02:00
getplayerxy VAR_TEMP_0, VAR_TEMP_1
compare VAR_TEMP_0, 19
2018-12-22 02:28:24 +01:00
goto_if_lt Route113_EventScript_1F2189
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_0, 84
2018-12-22 02:28:24 +01:00
goto_if_gt Route113_EventScript_1F2189
2018-12-24 22:23:58 +01:00
setweather WEATHER_ASH
2017-11-10 02:21:31 +01:00
return
Route113_EventScript_1F2189:: @ 81F2189
return
Route113_EventScript_1F218A:: @ 81F218A
msgbox Route113_Text_1F235B, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
Route113_EventScript_1F2193:: @ 81F2193
msgbox Route113_Text_1F23CA, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
Route113_EventScript_1F219C:: @ 81F219C
msgbox Route113_Text_1F2440, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
Route113_EventScript_1F21A5:: @ 81F21A5
msgbox Route113_Text_1F2456, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
Route113_EventScript_1F21AE:: @ 81F21AE
msgbox Route113_Text_1F24F8, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
Route113_EventScript_1F21B7:: @ 81F21B7
msgbox Route113_Text_1F2471, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
Route113_EventScript_1F21C0:: @ 81F21C0
trainerbattle_single TRAINER_JAYLEN, Route113_Text_299D3C, Route113_Text_299D68
msgbox Route113_Text_299D7D, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
Route113_EventScript_1F21D7:: @ 81F21D7
trainerbattle_single TRAINER_DILLON, Route113_Text_299DE3, Route113_Text_299E1C
msgbox Route113_Text_299E38, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
Route113_EventScript_1F21EE:: @ 81F21EE
trainerbattle_single TRAINER_MADELINE_1, Route113_Text_299EA6, Route113_Text_299EF9, Route113_EventScript_1F221A
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq Route113_EventScript_1F2239
msgbox Route113_Text_299F15, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
Route113_EventScript_1F221A:: @ 81F221A
special sub_80B4808
waitmovement 0
msgbox Route113_Text_299F49, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_MADELINE_1
2017-11-10 02:21:31 +01:00
release
end
Route113_EventScript_1F2239:: @ 81F2239
trainerbattle_rematch TRAINER_MADELINE_1, Route113_Text_299F8A, Route113_Text_299FC9
msgbox Route113_Text_299FD8, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
Route113_EventScript_1F2250:: @ 81F2250
trainerbattle_single TRAINER_LAO_1, Route113_Text_29A015, Route113_Text_29A04C, Route113_EventScript_1F227C
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq Route113_EventScript_1F229B
msgbox Route113_Text_29A067, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
Route113_EventScript_1F227C:: @ 81F227C
special sub_80B4808
waitmovement 0
msgbox Route113_Text_29A0A2, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_LAO_1
2017-11-10 02:21:31 +01:00
release
end
Route113_EventScript_1F229B:: @ 81F229B
trainerbattle_rematch TRAINER_LAO_1, Route113_Text_29A0E8, Route113_Text_29A11F
msgbox Route113_Text_29A13A, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
Route113_EventScript_1F22B2:: @ 81F22B2
trainerbattle_single TRAINER_LUNG, Route113_Text_29A192, Route113_Text_29A1C6
msgbox Route113_Text_29A219, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
Route113_EventScript_1F22C9:: @ 81F22C9
trainerbattle_double TRAINER_TORI_AND_TIA, Route113_Text_29A261, Route113_Text_29A29D, Route113_Text_29A31F
msgbox Route113_Text_29A2DE, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
Route113_EventScript_1F22E4:: @ 81F22E4
trainerbattle_double TRAINER_TORI_AND_TIA, Route113_Text_29A35C, Route113_Text_29A397, Route113_Text_29A419
msgbox Route113_Text_29A3DA, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
Route113_EventScript_1F22FF:: @ 81F22FF
trainerbattle_single TRAINER_SOPHIE, Route113_Text_29A4BF, Route113_Text_29A508
msgbox Route113_Text_29A529, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
Route113_EventScript_1F2316:: @ 81F2316
trainerbattle_single TRAINER_COBY, Route113_Text_29A453, Route113_Text_29A480
msgbox Route113_Text_29A489, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
Route113_EventScript_1F232D:: @ 81F232D
trainerbattle_single TRAINER_LAWRENCE, Route113_Text_29A566, Route113_Text_29A5A0
msgbox Route113_Text_29A5BE, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
Route113_EventScript_1F2344:: @ 81F2344
trainerbattle_single TRAINER_WYATT, Route113_Text_29A5E4, Route113_Text_29A628
msgbox Route113_Text_29A65D, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
Route113_Text_1F235B: @ 81F235B
2018-12-07 16:41:08 +01:00
.string "Wahahaha! Today's technology is a\n"
2017-11-10 02:21:31 +01:00
.string "wondrous thing!\p"
.string "Take this volcanic ash here.\n"
.string "It can be fashioned into glass.$"
Route113_Text_1F23CA: @ 81F23CA
2018-12-07 16:41:08 +01:00
.string "It's fun walking through the volcano's\n"
2017-11-10 02:21:31 +01:00
.string "ashes on the ground and grass.\p"
2018-12-07 16:41:08 +01:00
.string "You can see where you walked--it's\n"
2017-11-10 02:21:31 +01:00
.string "really neat!$"
Route113_Text_1F2440: @ 81F2440
.string "ROUTE 113\n"
.string "{RIGHT_ARROW} ROUTE 111$"
2017-11-10 02:21:31 +01:00
Route113_Text_1F2456: @ 81F2456
.string "ROUTE 113\n"
.string "{LEFT_ARROW} FALLARBOR TOWN$"
2017-11-10 02:21:31 +01:00
Route113_Text_1F2471: @ 81F2471
.string "TRAINER TIPS\p"
.string "You may register one of the KEY ITEMS\n"
.string "in your BAG as SELECT.\p"
.string "Simply press SELECT to use\n"
.string "the registered item conveniently.$"
Route113_Text_1F24F8: @ 81F24F8
.string "GLASS WORKSHOP\n"
.string "“Turning Volcanic Ash into Glass Items”$"