pokeemerald/data/maps/RustboroCity_PokemonSchool/scripts.inc

355 lines
12 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_MapScripts::
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_Blackboard::
2017-11-10 02:21:31 +01:00
lockall
2019-11-05 20:05:29 +01:00
msgbox RustboroCity_PokemonSchool_Text_BlackboardListsStatusChanges, MSGBOX_DEFAULT
goto RustboroCity_PokemonSchool_EventScript_ChooseBlackboardTopic
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_ChooseBlackboardTopic::
2019-11-05 20:05:29 +01:00
message RustboroCity_PokemonSchool_Text_ReadWhichTopic
2017-11-10 02:21:31 +01:00
waitmessage
2021-03-31 06:35:56 +02:00
multichoicegrid 8, 1, MULTI_STATUS_INFO, 3, FALSE
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-11-05 20:05:29 +01:00
case 0, RustboroCity_PokemonSchool_EventScript_Poison
case 1, RustboroCity_PokemonSchool_EventScript_Paralysis
case 2, RustboroCity_PokemonSchool_EventScript_Sleep
case 3, RustboroCity_PokemonSchool_EventScript_Burn
case 4, RustboroCity_PokemonSchool_EventScript_Freeze
case 5, RustboroCity_PokemonSchool_EventScript_ExitTopicSelect
case MULTI_B_PRESSED, RustboroCity_PokemonSchool_EventScript_ExitTopicSelect
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_Poison::
2019-11-05 20:05:29 +01:00
msgbox RustboroCity_PokemonSchool_Text_ExplainPoison, MSGBOX_DEFAULT
goto RustboroCity_PokemonSchool_EventScript_ChooseBlackboardTopic
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_Paralysis::
2019-11-05 20:05:29 +01:00
msgbox RustboroCity_PokemonSchool_Text_ExplainParalysis, MSGBOX_DEFAULT
goto RustboroCity_PokemonSchool_EventScript_ChooseBlackboardTopic
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_Sleep::
2019-11-05 20:05:29 +01:00
msgbox RustboroCity_PokemonSchool_Text_ExplainSleep, MSGBOX_DEFAULT
goto RustboroCity_PokemonSchool_EventScript_ChooseBlackboardTopic
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_Burn::
2019-11-05 20:05:29 +01:00
msgbox RustboroCity_PokemonSchool_Text_ExplainBurn, MSGBOX_DEFAULT
goto RustboroCity_PokemonSchool_EventScript_ChooseBlackboardTopic
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_Freeze::
2019-11-05 20:05:29 +01:00
msgbox RustboroCity_PokemonSchool_Text_ExplainFreeze, MSGBOX_DEFAULT
goto RustboroCity_PokemonSchool_EventScript_ChooseBlackboardTopic
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_ExitTopicSelect::
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_GameboyKid1::
2019-11-05 20:05:29 +01:00
msgbox RustboroCity_PokemonSchool_Text_TradingRightNow, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_GameboyKid2::
2019-11-05 20:05:29 +01:00
msgbox RustboroCity_PokemonSchool_Text_AlwaysWantedSeedot, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_RichBoy::
2019-11-05 20:05:29 +01:00
msgbox RustboroCity_PokemonSchool_Text_PokemontCantUseManMadeItems, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_Lass::
2019-11-05 20:05:29 +01:00
msgbox RustboroCity_PokemonSchool_Text_ConfusedPokemonAttacksItself, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_SchoolKidM::
2019-11-05 20:05:29 +01:00
msgbox RustboroCity_PokemonSchool_Text_PokemonHealItselfWithBerry, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_StudentNotebook::
2019-11-05 20:05:29 +01:00
msgbox RustboroCity_PokemonSchool_Text_StudentsNotes, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_Teacher::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-05 20:05:29 +01:00
goto_if_set FLAG_RECEIVED_QUICK_CLAW, RustboroCity_PokemonSchool_EventScript_GaveQuickClaw
2019-10-07 06:14:10 +02:00
compare VAR_FACING, DIR_EAST
2019-11-05 20:05:29 +01:00
call_if_eq RustboroCity_PokemonSchool_EventScript_TeacherCheckOnStudentsEast
2019-10-07 06:14:10 +02:00
compare VAR_FACING, DIR_WEST
2019-11-05 20:05:29 +01:00
call_if_eq RustboroCity_PokemonSchool_EventScript_TeacherCheckOnStudentsWest
msgbox RustboroCity_PokemonSchool_Text_StudentsWhoDontStudyGetQuickClaw, MSGBOX_DEFAULT
giveitem ITEM_QUICK_CLAW
compare VAR_RESULT, 0
goto_if_eq Common_EventScript_ShowBagIsFull
2017-11-10 02:21:31 +01:00
closemessage
2019-10-06 19:55:30 +02:00
applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_QUICK_CLAW
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_TeacherCheckOnStudentsEast::
2019-11-05 20:05:29 +01:00
applymovement VAR_LAST_TALKED, RustboroCity_PokemonSchool_Movement_TeacherCheckOnStudentsEast
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_TeacherCheckOnStudentsWest::
2019-11-05 20:05:29 +01:00
applymovement VAR_LAST_TALKED, RustboroCity_PokemonSchool_Movement_TeacherCheckOnStudentsWest
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_GaveQuickClaw::
2019-11-05 20:05:29 +01:00
msgbox RustboroCity_PokemonSchool_Text_ExplainQuickClaw, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2019-10-06 19:55:30 +02:00
applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
2017-11-10 02:21:31 +01:00
waitmovement 0
release
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Movement_TeacherCheckOnStudentsWest:
walk_left
walk_down
walk_down
walk_right
walk_in_place_fastest_down
delay_16
delay_16
delay_16
walk_down
walk_in_place_fastest_left
delay_16
delay_16
walk_right
delay_16
delay_16
delay_8
walk_up
walk_left
walk_left
walk_up
walk_up
walk_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Movement_TeacherCheckOnStudentsEast:
walk_right
walk_right
walk_down
walk_down
walk_left
walk_left
walk_in_place_fastest_down
delay_16
delay_16
delay_16
walk_down
walk_in_place_fastest_left
delay_16
delay_16
walk_right
delay_16
delay_16
delay_8
walk_up
walk_right
walk_up
walk_up
walk_left
walk_left
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_Scott::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-05 20:05:29 +01:00
goto_if_set FLAG_MET_SCOTT_AFTER_OBTAINING_STONE_BADGE, RustboroCity_PokemonSchool_EventScript_ScottWatchStudents
goto_if_set FLAG_MET_SCOTT_RUSTBORO, RustboroCity_PokemonSchool_EventScript_ScottSpokeAlready
goto_if_set FLAG_BADGE01_GET, RustboroCity_PokemonSchool_EventScript_ScottGreetHasBadge
msgbox RustboroCity_PokemonSchool_Text_ScottMetAlreadyCut, MSGBOX_DEFAULT
addvar VAR_SCOTT_STATE, 1
2019-01-02 22:12:43 +01:00
setflag FLAG_MET_SCOTT_RUSTBORO
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_ScottSpokeAlready::
2019-11-05 20:05:29 +01:00
goto_if_set FLAG_BADGE01_GET, RustboroCity_PokemonSchool_EventScript_ScottNoticeBadge
msgbox RustboroCity_PokemonSchool_Text_StudentTalentLevelUnknown, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_ScottGreetHasBadge::
2019-11-05 20:05:29 +01:00
msgbox RustboroCity_PokemonSchool_Text_ScottMetAlreadyStoneBadge, MSGBOX_DEFAULT
goto RustboroCity_PokemonSchool_EventScript_MetScottAfterBadge
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_ScottNoticeBadge::
2019-11-05 20:05:29 +01:00
msgbox RustboroCity_PokemonSchool_Text_ScottStoneBadge, MSGBOX_DEFAULT
goto RustboroCity_PokemonSchool_EventScript_MetScottAfterBadge
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_MetScottAfterBadge::
addvar VAR_SCOTT_STATE, 1
2019-01-02 22:12:43 +01:00
setflag FLAG_MET_SCOTT_AFTER_OBTAINING_STONE_BADGE
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_EventScript_ScottWatchStudents::
2019-11-05 20:05:29 +01:00
msgbox RustboroCity_PokemonSchool_Text_StudentTalentLevelUnknown, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_BlackboardListsStatusChanges:
2017-11-10 02:21:31 +01:00
.string "The blackboard lists status changes\n"
.string "that may affect POKéMON in battle.$"
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_ReadWhichTopic:
2017-11-10 02:21:31 +01:00
.string "Which topic do you want to read?$"
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_ExplainPoison:
2017-11-10 02:21:31 +01:00
.string "If a POKéMON is poisoned, it will\n"
.string "steadily lose HP.\p"
.string "The effects of poison remain after\n"
.string "a battle.\p"
2018-12-07 16:41:08 +01:00
.string "A poisoned POKéMON's HP will drop\n"
2017-11-10 02:21:31 +01:00
.string "while it is traveling.\p"
.string "Heal a poisoning using an ANTIDOTE.$"
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_ExplainParalysis:
2017-11-10 02:21:31 +01:00
.string "If a POKéMON becomes paralyzed,\n"
.string "its SPEED drops.\p"
.string "It may also not be able to move while\n"
.string "it is in battle.\p"
.string "Paralysis remains after battle.\n"
.string "Cure it using a PARLYZ HEAL.$"
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_ExplainSleep:
2017-11-10 02:21:31 +01:00
.string "If a POKéMON falls asleep, it will be\n"
.string "unable to attack.\p"
.string "A POKéMON may wake up on its own,\n"
.string "but if a battle ends while it is\l"
.string "sleeping, it will stay asleep.\p"
.string "Wake it up using an AWAKENING.$"
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_ExplainBurn:
2017-11-10 02:21:31 +01:00
.string "A burn reduces ATTACK power, and it\n"
2018-12-07 16:41:08 +01:00
.string "steadily reduces the victim's HP.\p"
2017-11-10 02:21:31 +01:00
.string "A burn lingers after battle.\n"
.string "Cure a burn using a BURN HEAL.$"
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_ExplainFreeze:
2017-11-10 02:21:31 +01:00
.string "If a POKéMON is frozen, it becomes\n"
.string "completely helpless.\p"
.string "It will remain frozen after battle.\n"
.string "Thaw it out using an ICE HEAL.$"
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_StudentsWhoDontStudyGetQuickClaw:
2018-12-07 16:41:08 +01:00
.string "Students who don't study get a little\n"
2017-11-10 02:21:31 +01:00
.string "taste of my QUICK CLAW.\p"
.string "Whether or not you are a good student \n"
.string "will be evident from the way you use\l"
.string "this item.$"
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_ExplainQuickClaw:
2017-11-10 02:21:31 +01:00
.string "A POKéMON holding the QUICK CLAW will\n"
.string "occasionally speed up and get to move\l"
.string "before its opponent.\p"
.string "There are many other items that are\n"
.string "meant to be held by POKéMON.\p"
.string "Just those alone will give you many\n"
.string "topics to study!$"
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_TradingRightNow:
2018-12-07 16:41:08 +01:00
.string "I'm trading POKéMON with my friend\n"
2017-11-10 02:21:31 +01:00
.string "right now.$"
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_AlwaysWantedSeedot:
2017-11-10 02:21:31 +01:00
.string "I always wanted a SEEDOT, and\n"
2018-12-07 16:41:08 +01:00
.string "I'm finally getting one!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_PokemontCantUseManMadeItems:
2017-11-10 02:21:31 +01:00
.string "POKéMON can hold items, but they\n"
2018-12-07 16:41:08 +01:00
.string "don't know what to do with man-made\l"
2017-11-10 02:21:31 +01:00
.string "items like POTION and ANTIDOTE.$"
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_ConfusedPokemonAttacksItself:
2017-11-10 02:21:31 +01:00
.string "You know how some POKéMON moves can\n"
.string "confuse a POKéMON?\p"
.string "A confused POKéMON will sometimes\n"
.string "attack itself without meaning to.\p"
.string "But once it leaves battle, it will\n"
.string "return to normal.$"
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_PokemonHealItselfWithBerry:
2017-11-10 02:21:31 +01:00
.string "A POKéMON holding a BERRY will heal\n"
.string "itself…\p"
.string "There are many kinds of items that\n"
.string "POKéMON can hold…\p"
.string "Boy, it sure is hard taking notes\n"
.string "down…$"
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_StudentsNotes:
2018-12-07 16:41:08 +01:00
.string "It's this student's notebook…\p"
2017-11-10 02:21:31 +01:00
.string "POKéMON are to be caught using\n"
.string "POKé BALLS.\p"
.string "Up to six POKéMON can accompany\n"
.string "a TRAINER.\p"
.string "A TRAINER is someone who catches\n"
.string "POKéMON, raises them, and battles\l"
.string "with them.\p"
2018-12-07 16:41:08 +01:00
.string "A TRAINER's mission is to defeat\n"
2017-11-10 02:21:31 +01:00
.string "the strong TRAINERS who await\l"
.string "challengers in POKéMON GYMS.$"
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_ScottMetAlreadyCut:
2018-12-07 16:41:08 +01:00
.string "Hello? Didn't we meet before?\n"
2017-11-10 02:21:31 +01:00
.string "I think back in PETALBURG CITY.\p"
.string "Let me introduce myself.\n"
2018-12-07 16:41:08 +01:00
.string "My name's SCOTT.\p"
.string "I've been traveling everywhere in\n"
2017-11-10 02:21:31 +01:00
.string "search of outstanding TRAINERS.\p"
2018-12-07 16:41:08 +01:00
.string "More specifically, I'm looking for\n"
2017-11-10 02:21:31 +01:00
.string "POKéMON battle experts.\p"
.string "So, what brings you to this SCHOOL?\n"
.string "Are you a TRAINER, too?\p"
.string "The first thing you should do is to\n"
.string "have a POKéMON learn the move CUT.\p"
.string "If I remember correctly, someone in\n"
.string "this town has CUT.$"
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_StudentTalentLevelUnknown:
2017-11-10 02:21:31 +01:00
.string "SCOTT: Hmm…\p"
.string "The talent levels of the students here\n"
2018-12-07 16:41:08 +01:00
.string "are unknown. The potential's there.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_ScottStoneBadge:
2018-12-07 16:41:08 +01:00
.string "SCOTT: Oh, what's that?\p"
.string "It's a STONE BADGE, isn't it?\n"
.string "That's pretty impressive, I'd say.\p"
.string "But, you know, I would've loved to see\n"
2017-11-10 02:21:31 +01:00
.string "you in battle.\p"
2018-12-07 16:41:08 +01:00
.string "It's hard to tell what you're like as\n"
2017-11-10 02:21:31 +01:00
.string "a TRAINER from a LEAGUE BADGE.$"
2021-07-20 21:18:31 +02:00
RustboroCity_PokemonSchool_Text_ScottMetAlreadyStoneBadge:
2018-12-07 16:41:08 +01:00
.string "Hello? Didn't we meet before?\n"
2017-11-10 02:21:31 +01:00
.string "I think back in PETALBURG CITY.\p"
.string "Let me introduce myself.\n"
2018-12-07 16:41:08 +01:00
.string "My name's SCOTT.\p"
.string "I've been traveling everywhere in\n"
2017-11-10 02:21:31 +01:00
.string "search of outstanding TRAINERS.\p"
2018-12-07 16:41:08 +01:00
.string "More specifically, I'm looking for\n"
2017-11-10 02:21:31 +01:00
.string "POKéMON battle experts.\p"
2018-12-07 16:41:08 +01:00
.string "Oh, what's that?\n"
.string "It's a STONE BADGE, isn't it?\p"
.string "That's pretty impressive, I'd say, for\n"
2017-11-10 02:21:31 +01:00
.string "a starting TRAINER like yourself.\p"
2018-12-07 16:41:08 +01:00
.string "But, you know, I would've loved to see\n"
2017-11-10 02:21:31 +01:00
.string "you in battle.\p"
2018-12-07 16:41:08 +01:00
.string "It's hard to tell what you're like as\n"
2017-11-10 02:21:31 +01:00
.string "a TRAINER from a LEAGUE BADGE.$"