pokeemerald/data/maps/FortreeCity/scripts.inc

157 lines
4.4 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
FortreeCity_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, FortreeCity_OnTransition
2019-11-07 20:49:52 +01:00
map_script MAP_SCRIPT_ON_RESUME, FortreeCity_OnResume
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
FortreeCity_OnTransition:
2017-11-10 02:21:31 +01:00
setflag FLAG_VISITED_FORTREE_CITY
end
2021-07-20 21:18:31 +02:00
FortreeCity_OnResume:
setstepcallback STEP_CB_FORTREE_BRIDGE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_EventScript_Man::
2019-11-07 20:49:52 +01:00
msgbox FortreeCity_Text_SawGiganticPokemonInSky, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_EventScript_Woman::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-07 20:49:52 +01:00
goto_if_set FLAG_KECLEON_FLED_FORTREE, FortreeCity_EventScript_WomanGymAccessible
msgbox FortreeCity_Text_SomethingBlockingGym, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
FortreeCity_EventScript_WomanGymAccessible::
2019-11-07 20:49:52 +01:00
msgbox FortreeCity_Text_ThisTimeIllBeatWinona, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
FortreeCity_EventScript_Girl::
2019-11-07 20:49:52 +01:00
msgbox FortreeCity_Text_TreesGrowByDrinkingRainwater, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_EventScript_OldMan::
2019-11-07 20:49:52 +01:00
msgbox FortreeCity_Text_EveryoneHealthyAndLively, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_EventScript_Boy::
2019-11-07 20:49:52 +01:00
msgbox FortreeCity_Text_BugPokemonComeThroughWindow, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_EventScript_GameboyKid::
2019-11-07 20:49:52 +01:00
msgbox FortreeCity_Text_PokemonThatEvolveWhenTraded, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_EventScript_CitySign::
2019-11-07 20:49:52 +01:00
msgbox FortreeCity_Text_CitySign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_EventScript_GymSign::
2019-11-07 20:49:52 +01:00
msgbox FortreeCity_Text_GymSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FortreeCity_EventScript_Kecleon::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2021-08-05 18:46:11 +02:00
checkitem ITEM_DEVON_SCOPE
goto_if_eq VAR_RESULT, TRUE, FortreeCity_EventScript_AskUseDevonScope
2019-11-07 20:49:52 +01:00
msgbox FortreeCity_Text_SomethingUnseeable, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
FortreeCity_EventScript_AskUseDevonScope::
2019-11-07 20:49:52 +01:00
msgbox FortreeCity_Text_UnseeableUseDevonScope, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, FortreeCity_EventScript_UseDevonScope
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
FortreeCity_EventScript_UseDevonScope::
2019-11-07 20:49:52 +01:00
msgbox FortreeCity_Text_UsedDevonScopePokemonFled, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2019-10-06 22:06:34 +02:00
applymovement VAR_LAST_TALKED, Movement_KecleonAppears
2017-11-10 02:21:31 +01:00
waitmovement 0
waitse
2021-11-07 18:58:11 +01:00
playmoncry SPECIES_KECLEON, CRY_MODE_ENCOUNTER
2017-11-10 02:21:31 +01:00
delay 40
waitmoncry
2019-11-07 20:49:52 +01:00
applymovement VAR_LAST_TALKED, FortreeCity_Movement_KecleonFlee
2017-11-10 02:21:31 +01:00
waitmovement 0
removeobject VAR_LAST_TALKED
2019-01-02 22:12:43 +01:00
setflag FLAG_KECLEON_FLED_FORTREE
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
FortreeCity_Movement_KecleonFlee:
walk_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
FortreeCity_Text_SawGiganticPokemonInSky:
2017-11-10 02:21:31 +01:00
.string "No one believes me, but I saw this\n"
.string "gigantic POKéMON in the sky.\p"
.string "It seemed to squirm as it flew toward\n"
.string "ROUTE 131.\p"
.string "By the way… Sniff…\n"
.string "Um… You, uh…smell singed.\p"
.string "Were you at a volcano or something?$"
2021-07-20 21:18:31 +02:00
FortreeCity_Text_SomethingBlockingGym:
2017-11-10 02:21:31 +01:00
.string "I want to go to the POKéMON GYM,\n"
2018-12-07 16:41:08 +01:00
.string "but something's blocking the way.\p"
2017-11-10 02:21:31 +01:00
.string "After all the bother I went through\n"
.string "training on ROUTE 120…$"
2021-07-20 21:18:31 +02:00
FortreeCity_Text_ThisTimeIllBeatWinona:
2018-12-07 16:41:08 +01:00
.string "I've got my pride-and-joy POKéMON\n"
.string "with me. This time, I'll beat WINONA.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
FortreeCity_Text_TreesGrowByDrinkingRainwater:
2017-11-10 02:21:31 +01:00
.string "The ground absorbs rainwater, and\n"
.string "trees grow by drinking that water…\p"
.string "Our FORTREE CITY exists because\n"
2018-12-07 16:41:08 +01:00
.string "there's both water and soil.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
FortreeCity_Text_EveryoneHealthyAndLively:
2017-11-10 02:21:31 +01:00
.string "The CITY consists of homes built on\n"
.string "trees.\p"
.string "Perhaps because of that lifestyle,\n"
.string "everyone is healthy and lively.\p"
2018-12-07 16:41:08 +01:00
.string "Why, even myself--I feel as if I've\n"
2017-11-10 02:21:31 +01:00
.string "grown thirty years younger.$"
2021-07-20 21:18:31 +02:00
FortreeCity_Text_BugPokemonComeThroughWindow:
2017-11-10 02:21:31 +01:00
.string "Living on top of trees is okay.\p"
.string "But sometimes BUG POKéMON come in\n"
.string "through windows.\l"
.string "It can be really startling.$"
2021-07-20 21:18:31 +02:00
FortreeCity_Text_PokemonThatEvolveWhenTraded:
2017-11-10 02:21:31 +01:00
.string "There are POKéMON that evolve when\n"
2018-12-07 16:41:08 +01:00
.string "you trade them! That's what I heard.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
FortreeCity_Text_SomethingUnseeable:
2017-11-10 02:21:31 +01:00
.string "Something unseeable is in the way.$"
2021-07-20 21:18:31 +02:00
FortreeCity_Text_UnseeableUseDevonScope:
2017-11-10 02:21:31 +01:00
.string "Something unseeable is in the way.\p"
.string "Want to use the DEVON SCOPE?$"
2021-07-20 21:18:31 +02:00
FortreeCity_Text_UsedDevonScopePokemonFled:
2017-11-10 02:21:31 +01:00
.string "{PLAYER} used the DEVON SCOPE.\p"
.string "An invisible POKéMON became completely\n"
.string "visible!\p"
.string "The startled POKéMON fled!$"
2021-07-20 21:18:31 +02:00
FortreeCity_Text_CitySign:
2017-11-10 02:21:31 +01:00
.string "FORTREE CITY\n"
.string "“The treetop city that frolics with\l"
.string "nature.”$"
2021-07-20 21:18:31 +02:00
FortreeCity_Text_GymSign:
2017-11-10 02:21:31 +01:00
.string "FORTREE CITY POKéMON GYM\n"
.string "LEADER: WINONA\p"
.string "“The bird user taking flight into\n"
.string "the world.”$"