2021-07-20 15:18:31 -04:00
|
|
|
InsideOfTruck_MapScripts::
|
2019-11-08 02:03:45 -05:00
|
|
|
map_script MAP_SCRIPT_ON_LOAD, InsideOfTruck_OnLoad
|
|
|
|
map_script MAP_SCRIPT_ON_RESUME, InsideOfTruck_OnResume
|
2017-11-09 19:21:31 -06:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
InsideOfTruck_OnLoad:
|
2019-06-12 15:07:32 -04:00
|
|
|
setmetatile 4, 1, METATILE_InsideOfTruck_ExitLight_Top, 0
|
|
|
|
setmetatile 4, 2, METATILE_InsideOfTruck_ExitLight_Mid, 0
|
|
|
|
setmetatile 4, 3, METATILE_InsideOfTruck_ExitLight_Bottom, 0
|
2017-11-09 19:21:31 -06:00
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
InsideOfTruck_OnResume:
|
2019-10-15 04:58:52 -04:00
|
|
|
setstepcallback STEP_CB_TRUCK
|
2017-11-09 19:21:31 -06:00
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
InsideOfTruck_EventScript_SetIntroFlags::
|
2017-11-09 19:21:31 -06:00
|
|
|
lockall
|
2019-03-10 08:10:59 -04:00
|
|
|
setflag FLAG_HIDE_MAP_NAME_POPUP
|
2017-11-09 19:21:31 -06:00
|
|
|
checkplayergender
|
2018-12-24 21:22:56 -05:00
|
|
|
compare VAR_RESULT, MALE
|
2019-11-08 02:03:45 -05:00
|
|
|
goto_if_eq InsideOfTruck_EventScript_SetIntroFlagsMale
|
2018-12-24 21:22:56 -05:00
|
|
|
compare VAR_RESULT, FEMALE
|
2019-11-08 02:03:45 -05:00
|
|
|
goto_if_eq InsideOfTruck_EventScript_SetIntroFlagsFemale
|
2017-11-09 19:21:31 -06:00
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
InsideOfTruck_EventScript_SetIntroFlagsMale::
|
2018-08-10 10:45:15 -04:00
|
|
|
setrespawn HEAL_LOCATION_LITTLEROOT_TOWN_BRENDANS_HOUSE_2F
|
2019-02-22 04:01:38 -05:00
|
|
|
setvar VAR_LITTLEROOT_INTRO_STATE, 1
|
2018-10-18 15:28:59 -04:00
|
|
|
setflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_MOM
|
|
|
|
setflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_TRUCK
|
|
|
|
setflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_RIVAL_MOM
|
|
|
|
setflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_RIVAL_SIBLING
|
|
|
|
setflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_2F_POKE_BALL
|
2019-11-08 02:03:45 -05:00
|
|
|
setvar VAR_LITTLEROOT_HOUSES_STATE_BRENDAN, 1
|
2018-06-14 22:00:09 -05:00
|
|
|
setdynamicwarp MAP_LITTLEROOT_TOWN, 255, 3, 10
|
2017-11-09 19:21:31 -06:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
InsideOfTruck_EventScript_SetIntroFlagsFemale::
|
2018-08-10 10:45:15 -04:00
|
|
|
setrespawn HEAL_LOCATION_LITTLEROOT_TOWN_MAYS_HOUSE_2F
|
2019-02-22 04:01:38 -05:00
|
|
|
setvar VAR_LITTLEROOT_INTRO_STATE, 2
|
2018-10-18 15:28:59 -04:00
|
|
|
setflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_MOM
|
|
|
|
setflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_TRUCK
|
|
|
|
setflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_RIVAL_MOM
|
|
|
|
setflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_RIVAL_SIBLING
|
|
|
|
setflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_2F_POKE_BALL
|
2019-11-08 02:03:45 -05:00
|
|
|
setvar VAR_LITTLEROOT_HOUSES_STATE_MAY, 1
|
2018-06-14 22:00:09 -05:00
|
|
|
setdynamicwarp MAP_LITTLEROOT_TOWN, 255, 12, 10
|
2017-11-09 19:21:31 -06:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
InsideOfTruck_EventScript_MovingBox::
|
2019-11-08 02:03:45 -05:00
|
|
|
msgbox InsideOfTruck_Text_BoxPrintedWithMonLogo, MSGBOX_SIGN
|
2017-11-09 19:21:31 -06:00
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
InsideOfTruck_Text_BoxPrintedWithMonLogo:
|
2017-11-09 19:21:31 -06:00
|
|
|
.string "The box is printed with a POKéMON logo.\p"
|
2018-12-07 10:41:08 -05:00
|
|
|
.string "It's a POKéMON brand moving and\n"
|
2017-11-09 19:21:31 -06:00
|
|
|
.string "delivery service.$"
|
|
|
|
|