summaryrefslogtreecommitdiff
path: root/data/maps/ThreeIsland_BerryForest
diff options
context:
space:
mode:
authorultima-soul <akshayjhanji@hotmail.com>2020-03-13 00:32:04 -0700
committerultima-soul <akshayjhanji@hotmail.com>2020-03-13 00:32:04 -0700
commit99e4de062ae43aa978ad4f1a8cd70bc739c64c9d (patch)
tree1164d31577e6ebddc1cb313d40bb69ce0d426170 /data/maps/ThreeIsland_BerryForest
parent339c2914affc3c62ac9a5725aa1a0c7ccc3161ca (diff)
parent6af8c04d8fa6aaeaeb6c8b919e7770a65b9a883d (diff)
Merge branch 'master' into event_object_movement
Diffstat (limited to 'data/maps/ThreeIsland_BerryForest')
-rw-r--r--data/maps/ThreeIsland_BerryForest/map.json74
-rw-r--r--data/maps/ThreeIsland_BerryForest/scripts.inc32
-rw-r--r--data/maps/ThreeIsland_BerryForest/text.inc14
3 files changed, 62 insertions, 58 deletions
diff --git a/data/maps/ThreeIsland_BerryForest/map.json b/data/maps/ThreeIsland_BerryForest/map.json
index f6dd0d71c..d88a902a3 100644
--- a/data/maps/ThreeIsland_BerryForest/map.json
+++ b/data/maps/ThreeIsland_BerryForest/map.json
@@ -5,16 +5,18 @@
"music": "MUS_T_MORI",
"region_map_section": "MAPSEC_BERRY_FOREST",
"requires_flash": false,
- "weather": "WEATHER_CLOUDY",
- "map_type": "MAP_TYPE_3",
- "unknown_18": 1,
- "unknown_19": 7,
- "elevator_flag": 0,
- "battle_scene": "BATTLE_SCENE_0",
+ "weather": "WEATHER_SHADE",
+ "map_type": "MAP_TYPE_ROUTE",
+ "allow_cycling": true,
+ "allow_escaping": true,
+ "allow_running": true,
+ "show_map_name": true,
+ "floor_number": 0,
+ "battle_scene": "MAP_BATTLE_SCENE_NORMAL",
"connections": null,
"object_events": [
{
- "graphics_id": "OBJECT_EVENT_GFX_LITTLE_GIRL",
+ "graphics_id": "OBJ_EVENT_GFX_LITTLE_GIRL",
"x": 4,
"y": 8,
"elevation": 3,
@@ -23,11 +25,11 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
- "script": "ThreeIsland_BerryForest_EventScript_163C83",
+ "script": "ThreeIsland_BerryForest_EventScript_Lostelle",
"flag": "FLAG_HIDE_LOSTELLE_IN_BERRY_FOREST"
},
{
- "graphics_id": "OBJECT_EVENT_GFX_CUT_TREE",
+ "graphics_id": "OBJ_EVENT_GFX_CUT_TREE",
"x": 12,
"y": 11,
"elevation": 3,
@@ -36,11 +38,11 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
- "script": "EventScript_InteractWithCutTreeObject",
+ "script": "EventScript_CutTree",
"flag": "FLAG_TEMP_12"
},
{
- "graphics_id": "OBJECT_EVENT_GFX_CUT_TREE",
+ "graphics_id": "OBJ_EVENT_GFX_CUT_TREE",
"x": 19,
"y": 7,
"elevation": 3,
@@ -49,11 +51,11 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
- "script": "EventScript_InteractWithCutTreeObject",
+ "script": "EventScript_CutTree",
"flag": "FLAG_TEMP_13"
},
{
- "graphics_id": "OBJECT_EVENT_GFX_CUT_TREE",
+ "graphics_id": "OBJ_EVENT_GFX_CUT_TREE",
"x": 23,
"y": 17,
"elevation": 3,
@@ -62,11 +64,11 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
- "script": "EventScript_InteractWithCutTreeObject",
+ "script": "EventScript_CutTree",
"flag": "FLAG_TEMP_14"
},
{
- "graphics_id": "OBJECT_EVENT_GFX_CUT_TREE",
+ "graphics_id": "OBJ_EVENT_GFX_CUT_TREE",
"x": 38,
"y": 23,
"elevation": 3,
@@ -75,11 +77,11 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
- "script": "EventScript_InteractWithCutTreeObject",
+ "script": "EventScript_CutTree",
"flag": "FLAG_TEMP_15"
},
{
- "graphics_id": "OBJECT_EVENT_GFX_CUT_TREE",
+ "graphics_id": "OBJ_EVENT_GFX_CUT_TREE",
"x": 44,
"y": 23,
"elevation": 3,
@@ -88,11 +90,11 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
- "script": "EventScript_InteractWithCutTreeObject",
+ "script": "EventScript_CutTree",
"flag": "FLAG_TEMP_16"
},
{
- "graphics_id": "OBJECT_EVENT_GFX_CUT_TREE",
+ "graphics_id": "OBJ_EVENT_GFX_CUT_TREE",
"x": 44,
"y": 29,
"elevation": 3,
@@ -101,11 +103,11 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
- "script": "EventScript_InteractWithCutTreeObject",
+ "script": "EventScript_CutTree",
"flag": "FLAG_TEMP_17"
},
{
- "graphics_id": "OBJECT_EVENT_GFX_CUT_TREE",
+ "graphics_id": "OBJ_EVENT_GFX_CUT_TREE",
"x": 16,
"y": 43,
"elevation": 3,
@@ -114,11 +116,11 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
- "script": "EventScript_InteractWithCutTreeObject",
+ "script": "EventScript_CutTree",
"flag": "FLAG_TEMP_18"
},
{
- "graphics_id": "OBJECT_EVENT_GFX_CUT_TREE",
+ "graphics_id": "OBJ_EVENT_GFX_CUT_TREE",
"x": 17,
"y": 39,
"elevation": 3,
@@ -127,11 +129,11 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
- "script": "EventScript_InteractWithCutTreeObject",
+ "script": "EventScript_CutTree",
"flag": "FLAG_TEMP_19"
},
{
- "graphics_id": "OBJECT_EVENT_GFX_CUT_TREE",
+ "graphics_id": "OBJ_EVENT_GFX_CUT_TREE",
"x": 14,
"y": 39,
"elevation": 3,
@@ -140,11 +142,11 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
- "script": "EventScript_InteractWithCutTreeObject",
+ "script": "EventScript_CutTree",
"flag": "FLAG_TEMP_1A"
},
{
- "graphics_id": "OBJECT_EVENT_GFX_CUT_TREE",
+ "graphics_id": "OBJ_EVENT_GFX_CUT_TREE",
"x": 11,
"y": 39,
"elevation": 3,
@@ -153,11 +155,11 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
- "script": "EventScript_InteractWithCutTreeObject",
+ "script": "EventScript_CutTree",
"flag": "FLAG_TEMP_1B"
},
{
- "graphics_id": "OBJECT_EVENT_GFX_ITEM_BALL",
+ "graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
"x": 12,
"y": 5,
"elevation": 3,
@@ -170,7 +172,7 @@
"flag": "FLAG_HIDE_THREE_ISLAND_BERRY_FOREST_MAX_ETHER"
},
{
- "graphics_id": "OBJECT_EVENT_GFX_ITEM_BALL",
+ "graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
"x": 27,
"y": 11,
"elevation": 3,
@@ -183,7 +185,7 @@
"flag": "FLAG_HIDE_THREE_ISLAND_BERRY_FOREST_FULL_HEAL"
},
{
- "graphics_id": "OBJECT_EVENT_GFX_ITEM_BALL",
+ "graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
"x": 12,
"y": 43,
"elevation": 3,
@@ -222,18 +224,20 @@
"coord_events": [],
"bg_events": [
{
- "type": "bg_event_type_0",
+ "type": "sign",
"x": 7,
"y": 27,
"elevation": 0,
- "script": "ThreeIsland_BerryForest_EventScript_163D31"
+ "player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
+ "script": "ThreeIsland_BerryForest_EventScript_BewareSign"
},
{
- "type": "bg_event_type_0",
+ "type": "sign",
"x": 39,
"y": 35,
"elevation": 0,
- "script": "ThreeIsland_BerryForest_EventScript_163D28"
+ "player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
+ "script": "ThreeIsland_BerryForest_EventScript_WelcomeSign"
},
{
"type": "hidden_item",
diff --git a/data/maps/ThreeIsland_BerryForest/scripts.inc b/data/maps/ThreeIsland_BerryForest/scripts.inc
index cf1693258..dab6cb795 100644
--- a/data/maps/ThreeIsland_BerryForest/scripts.inc
+++ b/data/maps/ThreeIsland_BerryForest/scripts.inc
@@ -7,16 +7,16 @@ ThreeIsland_BerryForest_OnTransition:: @ 8163C77
setescapewarp MAP_THREE_ISLAND_BOND_BRIDGE, 255, 12, 6
end
-ThreeIsland_BerryForest_EventScript_163C83:: @ 8163C83
+ThreeIsland_BerryForest_EventScript_Lostelle:: @ 8163C83
lock
faceplayer
- msgbox gUnknown_817ADD6
+ msgbox ThreeIsland_BerryForest_Text_HelpScaryPokemon
playse SE_PIN
applymovement 1, Movement_ExclamationMark
waitmovement 0
- applymovement 1, Movement_163D22
+ applymovement 1, ThreeIsland_BerryForest_Movement_LostelleLookAround
waitmovement 0
- msgbox gUnknown_817AE8E
+ msgbox ThreeIsland_BerryForest_Text_HereItComesAgain
goto_if_questlog EventScript_ReleaseEnd
waitse
playmoncry SPECIES_HYPNO, 2
@@ -26,12 +26,12 @@ ThreeIsland_BerryForest_EventScript_163C83:: @ 8163C83
special sub_8112364
applymovement 1, Movement_FacePlayer
waitmovement 0
- msgbox gUnknown_817AEE1
+ msgbox ThreeIsland_BerryForest_Text_ThankYouHaveThis
giveitem ITEM_IAPAPA_BERRY
- compare VAR_RESULT, 0
- call_if_eq EventScript_163D19
- special Special_BufferBigGuyOrBigGirlString
- msgbox gUnknown_817AF3B
+ compare VAR_RESULT, FALSE
+ call_if_eq ThreeIsland_BerryForest_EventScript_NoRoomForBerry
+ special BufferBigGuyOrBigGirlString
+ msgbox ThreeIsland_BerryForest_Text_LetsGoHome
closemessage
setflag FLAG_RESCUED_LOSTELLE
setflag FLAG_HIDE_LOSTELLE_IN_BERRY_FOREST
@@ -42,11 +42,11 @@ ThreeIsland_BerryForest_EventScript_163C83:: @ 8163C83
release
end
-EventScript_163D19:: @ 8163D19
- msgbox gUnknown_817AF9F
+ThreeIsland_BerryForest_EventScript_NoRoomForBerry:: @ 8163D19
+ msgbox ThreeIsland_BerryForest_Text_BerryPouchIsFull
return
-Movement_163D22:: @ 8163D22
+ThreeIsland_BerryForest_Movement_LostelleLookAround:: @ 8163D22
walk_in_place_fastest_left
delay_16
walk_in_place_fastest_right
@@ -54,10 +54,10 @@ Movement_163D22:: @ 8163D22
walk_in_place_fastest_left
step_end
-ThreeIsland_BerryForest_EventScript_163D28:: @ 8163D28
- msgbox gUnknown_817AFD6, MSGBOX_SIGN
+ThreeIsland_BerryForest_EventScript_WelcomeSign:: @ 8163D28
+ msgbox ThreeIsland_BerryForest_Text_WelcomeToBerryForest, MSGBOX_SIGN
end
-ThreeIsland_BerryForest_EventScript_163D31:: @ 8163D31
- msgbox gUnknown_817B029, MSGBOX_SIGN
+ThreeIsland_BerryForest_EventScript_BewareSign:: @ 8163D31
+ msgbox ThreeIsland_BerryForest_Text_BewareWildBerryLovingMons, MSGBOX_SIGN
end
diff --git a/data/maps/ThreeIsland_BerryForest/text.inc b/data/maps/ThreeIsland_BerryForest/text.inc
index 807df9c30..fdb08e3c6 100644
--- a/data/maps/ThreeIsland_BerryForest/text.inc
+++ b/data/maps/ThreeIsland_BerryForest/text.inc
@@ -1,4 +1,4 @@
-gUnknown_817ADD6:: @ 817ADD6
+ThreeIsland_BerryForest_Text_HelpScaryPokemon:: @ 817ADD6
.string "LOSTELLE: Whimper… Sniff…\n"
.string "Oh! Please, help!\p"
.string "A scary POKéMON appeared there\n"
@@ -8,36 +8,36 @@ gUnknown_817ADD6:: @ 817ADD6
.string "I'm too scared to move!\n"
.string "But I want to go home…$"
-gUnknown_817AE8E:: @ 817AE8E
+ThreeIsland_BerryForest_Text_HereItComesAgain:: @ 817AE8E
.string "Oh! Here it comes again!\n"
.string "No! Go away! It's scaring me!\p"
.string "Waaaaaaah!\n"
.string "I want my daddy!$"
-gUnknown_817AEE1:: @ 817AEE1
+ThreeIsland_BerryForest_Text_ThankYouHaveThis:: @ 817AEE1
.string "Ohh! That was so scary!\n"
.string "Thank you!\p"
.string "LOSTELLE came to pick some\n"
.string "BERRIES.\p"
.string "You can have this!$"
-gUnknown_817AF3B:: @ 817AF3B
+ThreeIsland_BerryForest_Text_LetsGoHome:: @ 817AF3B
.string "What's your name?\p"
.string "LOSTELLE's scared, so can I go\n"
.string "with you to my daddy's house?\p"
.string "Okay!\n"
.string "Let's go home!$"
-gUnknown_817AF9F:: @ 817AF9F
+ThreeIsland_BerryForest_Text_BerryPouchIsFull:: @ 817AF9F
.string "Your BERRY POUCH is full.\n"
.string "I guess you don't want this.$"
-gUnknown_817AFD6:: @ 817AFD6
+ThreeIsland_BerryForest_Text_WelcomeToBerryForest:: @ 817AFD6
.string "Welcome to the BERRY FOREST\p"
.string "Be friendly and share BERRIES with\n"
.string "others and POKéMON.$"
-gUnknown_817B029:: @ 817B029
+ThreeIsland_BerryForest_Text_BewareWildBerryLovingMons:: @ 817B029
.string "Beware of wild, BERRY-loving\n"
.string "POKéMON!$"