summaryrefslogtreecommitdiff
path: root/data/maps/FallarborTown_MoveRelearnersHouse
diff options
context:
space:
mode:
authorGriffinR <griffin.richards@comcast.net>2019-10-17 19:22:03 -0400
committerGriffinR <griffin.richards@comcast.net>2019-10-25 15:41:06 -0400
commit6db014cc32d28a64499af7d605be3a062560d5e0 (patch)
tree378d719659dd5a32b077bd6ee8140ccae6b2799c /data/maps/FallarborTown_MoveRelearnersHouse
parent60a592a2c32d07d47c892204659a8576017584d1 (diff)
Document party_menu first pass
Diffstat (limited to 'data/maps/FallarborTown_MoveRelearnersHouse')
-rw-r--r--data/maps/FallarborTown_MoveRelearnersHouse/map.json49
-rw-r--r--data/maps/FallarborTown_MoveRelearnersHouse/scripts.inc102
2 files changed, 151 insertions, 0 deletions
diff --git a/data/maps/FallarborTown_MoveRelearnersHouse/map.json b/data/maps/FallarborTown_MoveRelearnersHouse/map.json
new file mode 100644
index 000000000..c444c1e38
--- /dev/null
+++ b/data/maps/FallarborTown_MoveRelearnersHouse/map.json
@@ -0,0 +1,49 @@
+{
+ "id": "MAP_FALLARBOR_TOWN_MOVE_RELEARNERS_HOUSE",
+ "name": "FallarborTown_MoveRelearnersHouse",
+ "layout": "LAYOUT_HOUSE2",
+ "music": "MUS_TONEKUSA",
+ "region_map_section": "MAPSEC_FALLARBOR_TOWN",
+ "requires_flash": false,
+ "weather": "WEATHER_NONE",
+ "map_type": "MAP_TYPE_INDOOR",
+ "allow_bike": false,
+ "allow_escape_rope": false,
+ "allow_running": false,
+ "show_map_name": false,
+ "battle_scene": "MAP_BATTLE_SCENE_NORMAL",
+ "connections": null,
+ "object_events": [
+ {
+ "graphics_id": "EVENT_OBJ_GFX_FAT_MAN",
+ "x": 4,
+ "y": 4,
+ "elevation": 3,
+ "movement_type": "MOVEMENT_TYPE_FACE_DOWN",
+ "movement_range_x": 0,
+ "movement_range_y": 0,
+ "trainer_type": "0",
+ "trainer_sight_or_berry_tree_id": "0",
+ "script": "FallarborTown_MoveRelearnersHouse_EventScript_MoveRelearner",
+ "flag": "0"
+ }
+ ],
+ "warp_events": [
+ {
+ "x": 3,
+ "y": 7,
+ "elevation": 0,
+ "dest_map": "MAP_FALLARBOR_TOWN",
+ "dest_warp_id": 4
+ },
+ {
+ "x": 4,
+ "y": 7,
+ "elevation": 0,
+ "dest_map": "MAP_FALLARBOR_TOWN",
+ "dest_warp_id": 4
+ }
+ ],
+ "coord_events": [],
+ "bg_events": []
+} \ No newline at end of file
diff --git a/data/maps/FallarborTown_MoveRelearnersHouse/scripts.inc b/data/maps/FallarborTown_MoveRelearnersHouse/scripts.inc
new file mode 100644
index 000000000..7ef8b6597
--- /dev/null
+++ b/data/maps/FallarborTown_MoveRelearnersHouse/scripts.inc
@@ -0,0 +1,102 @@
+FallarborTown_MoveRelearnersHouse_MapScripts:: @ 8201382
+ .byte 0
+
+FallarborTown_MoveRelearnersHouse_EventScript_MoveRelearner:: @ 8201383
+ lockall
+ applymovement 1, Common_Movement_FacePlayer
+ waitmovement 0
+ goto_if_set FLAG_TEMP_1, FallarborTown_MoveRelearnersHouse_EventScript_AskTeachMove
+ msgbox FallarborTown_MoveRelearnersHouse_Text_ImTheMoveTutor, MSGBOX_DEFAULT
+ setflag FLAG_TEMP_1
+ goto FallarborTown_MoveRelearnersHouse_EventScript_AskTeachMove
+ end
+
+FallarborTown_MoveRelearnersHouse_EventScript_AskTeachMove:: @ 82013A8
+ checkitem ITEM_HEART_SCALE, 1
+ compare VAR_RESULT, 0
+ goto_if_eq FallarborTown_MoveRelearnersHouse_EventScript_ComeBackWithHeartScale
+ msgbox FallarborTown_MoveRelearnersHouse_Text_ThatsAHeartScaleWantMeToTeachMove, MSGBOX_YESNO
+ switch VAR_RESULT
+ case 0, FallarborTown_MoveRelearnersHouse_EventScript_ComeBackWithHeartScale
+ goto FallarborTown_MoveRelearnersHouse_EventScript_ChooseMon
+ end
+
+FallarborTown_MoveRelearnersHouse_EventScript_ChooseMon:: @ 82013D6
+ msgbox FallarborTown_MoveRelearnersHouse_Text_TutorWhichMon, MSGBOX_DEFAULT
+ special ChooseMonForMoveRelearner
+ waitstate
+ compare VAR_0x8004, 255
+ goto_if_eq FallarborTown_MoveRelearnersHouse_EventScript_ComeBackWithHeartScale
+ special IsSelectedMonEgg
+ compare VAR_RESULT, TRUE
+ goto_if_eq FallarborTown_MoveRelearnersHouse_EventScript_CantTeachEgg
+ compare VAR_0x8005, 0
+ goto_if_eq FallarborTown_MoveRelearnersHouse_EventScript_NoMoveToTeachMon
+ goto FallarborTown_MoveRelearnersHouse_EventScript_ChooseMove
+ end
+
+FallarborTown_MoveRelearnersHouse_EventScript_ChooseMove:: @ 820140C
+ msgbox FallarborTown_MoveRelearnersHouse_Text_TeachWhichMove, MSGBOX_DEFAULT
+ special TeachMoveRelearnerMove
+ waitstate
+ compare VAR_0x8004, 0
+ goto_if_eq FallarborTown_MoveRelearnersHouse_EventScript_ChooseMon
+ msgbox FallarborTown_MoveRelearnersHouse_Text_HandedOverHeartScale, MSGBOX_DEFAULT
+ takeitem ITEM_HEART_SCALE, 1
+ goto FallarborTown_MoveRelearnersHouse_EventScript_ComeBackWithHeartScale
+ end
+
+FallarborTown_MoveRelearnersHouse_EventScript_NoMoveToTeachMon:: @ 8201436
+ msgbox FallarborTown_MoveRelearnersHouse_Text_DontHaveMoveToTeachPokemon, MSGBOX_DEFAULT
+ goto FallarborTown_MoveRelearnersHouse_EventScript_ChooseMon
+ end
+
+FallarborTown_MoveRelearnersHouse_EventScript_CantTeachEgg:: @ 8201444
+ msgbox FallarborTown_MoveRelearnersHouse_Text_CantTeachEgg, MSGBOX_DEFAULT
+ goto FallarborTown_MoveRelearnersHouse_EventScript_ChooseMon
+ end
+
+FallarborTown_MoveRelearnersHouse_EventScript_ComeBackWithHeartScale:: @ 8201452
+ msgbox FallarborTown_MoveRelearnersHouse_Text_ComeBackWithHeartScale, MSGBOX_DEFAULT
+ releaseall
+ end
+
+FallarborTown_MoveRelearnersHouse_Text_ImTheMoveTutor: @ 820145C
+ .string "I'm the MOVE TUTOR.\p"
+ .string "I know all the moves that POKéMON\n"
+ .string "learn--every one of them--and I can\l"
+ .string "teach POKéMON those moves.\p"
+ .string "I can teach a move to a POKéMON\n"
+ .string "of yours if you'd like.\p"
+ .string "I'll do it for a HEART SCALE.\n"
+ .string "I'm collecting those now.$"
+
+FallarborTown_MoveRelearnersHouse_Text_ThatsAHeartScaleWantMeToTeachMove: @ 8201541
+ .string "Oh! That's it! That's an honest to\n"
+ .string "goodness HEART SCALE!\p"
+ .string "Let me guess, you want me to teach\n"
+ .string "a move?$"
+
+FallarborTown_MoveRelearnersHouse_Text_TutorWhichMon: @ 82015A5
+ .string "Which POKéMON needs tutoring?$"
+
+FallarborTown_MoveRelearnersHouse_Text_TeachWhichMove: @ 82015C3
+ .string "Which move should I teach?$"
+
+FallarborTown_MoveRelearnersHouse_Text_DontHaveMoveToTeachPokemon: @ 82015DE
+ .string "Sorry…\p"
+ .string "It doesn't appear as if I have any move\n"
+ .string "I can teach that POKéMON.$"
+
+FallarborTown_MoveRelearnersHouse_Text_HandedOverHeartScale: @ 8201627
+ .string "{PLAYER} handed over one HEART SCALE\n"
+ .string "in exchange.$"
+
+FallarborTown_MoveRelearnersHouse_Text_ComeBackWithHeartScale: @ 8201653
+ .string "If your POKéMON need to learn a move,\n"
+ .string "come back with a HEART SCALE.$"
+
+FallarborTown_MoveRelearnersHouse_Text_CantTeachEgg: @ 8201697
+ .string "Hunh? There isn't a single move that\n"
+ .string "I can teach an EGG.$"
+