2022-05-19 19:14:13 +02:00
|
|
|
InsideOfTruck_MapScripts::
|
|
|
|
map_script MAP_SCRIPT_ON_LOAD, InsideOfTruck_OnLoad
|
|
|
|
map_script MAP_SCRIPT_ON_RESUME, InsideOfTruck_OnResume
|
|
|
|
.byte 0
|
|
|
|
|
|
|
|
InsideOfTruck_OnLoad:
|
|
|
|
setmetatile 4, 1, METATILE_InsideOfTruck_ExitLight_Top, FALSE
|
|
|
|
setmetatile 4, 2, METATILE_InsideOfTruck_ExitLight_Mid, FALSE
|
|
|
|
setmetatile 4, 3, METATILE_InsideOfTruck_ExitLight_Bottom, FALSE
|
|
|
|
end
|
|
|
|
|
|
|
|
InsideOfTruck_OnResume:
|
|
|
|
setstepcallback STEP_CB_TRUCK
|
|
|
|
end
|
|
|
|
|
|
|
|
InsideOfTruck_EventScript_SetIntroFlags::
|
|
|
|
lockall
|
|
|
|
setflag FLAG_HIDE_MAP_NAME_POPUP
|
|
|
|
checkplayergender
|
|
|
|
goto_if_eq VAR_RESULT, MALE, InsideOfTruck_EventScript_SetIntroFlagsMale
|
|
|
|
goto_if_eq VAR_RESULT, FEMALE, InsideOfTruck_EventScript_SetIntroFlagsFemale
|
|
|
|
end
|
|
|
|
|
|
|
|
InsideOfTruck_EventScript_SetIntroFlagsMale::
|
|
|
|
setrespawn HEAL_LOCATION_LITTLEROOT_TOWN_BRENDANS_HOUSE_2F
|
|
|
|
setvar VAR_LITTLEROOT_INTRO_STATE, 1
|
|
|
|
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
|
|
|
|
setvar VAR_LITTLEROOT_HOUSES_STATE_BRENDAN, 1
|
|
|
|
setdynamicwarp MAP_LITTLEROOT_TOWN, 3, 10
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
|
|
|
InsideOfTruck_EventScript_SetIntroFlagsFemale::
|
|
|
|
setrespawn HEAL_LOCATION_LITTLEROOT_TOWN_MAYS_HOUSE_2F
|
|
|
|
setvar VAR_LITTLEROOT_INTRO_STATE, 2
|
|
|
|
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
|
|
|
|
setvar VAR_LITTLEROOT_HOUSES_STATE_MAY, 1
|
|
|
|
setdynamicwarp MAP_LITTLEROOT_TOWN, 12, 10
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
|
|
|
InsideOfTruck_EventScript_MovingBox::
|
|
|
|
msgbox InsideOfTruck_Text_BoxPrintedWithMonLogo, MSGBOX_SIGN
|
|
|
|
end
|
|
|
|
|
|
|
|
InsideOfTruck_Text_BoxPrintedWithMonLogo:
|
2022-08-21 22:56:26 +02:00
|
|
|
.string "The box is printed with a Pokémon logo.\p"
|
|
|
|
.string "It's a Pokémon brand moving and\n"
|
2022-05-19 19:14:13 +02:00
|
|
|
.string "delivery service.$"
|
|
|
|
|