import from github
This commit is contained in:
88
data/maps/RustboroCity_Mart/map.json
Normal file
88
data/maps/RustboroCity_Mart/map.json
Normal file
@ -0,0 +1,88 @@
|
||||
{
|
||||
"id": "MAP_RUSTBORO_CITY_MART",
|
||||
"name": "RustboroCity_Mart",
|
||||
"layout": "LAYOUT_MART",
|
||||
"music": "MUS_POKE_MART",
|
||||
"region_map_section": "MAPSEC_RUSTBORO_CITY",
|
||||
"requires_flash": false,
|
||||
"weather": "WEATHER_NONE",
|
||||
"map_type": "MAP_TYPE_INDOOR",
|
||||
"allow_cycling": false,
|
||||
"allow_escaping": false,
|
||||
"allow_running": false,
|
||||
"show_map_name": false,
|
||||
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
|
||||
"connections": null,
|
||||
"object_events": [
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_MART_EMPLOYEE",
|
||||
"x": 1,
|
||||
"y": 3,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_RIGHT",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "RustboroCity_Mart_EventScript_Clerk",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_BOY_1",
|
||||
"x": 2,
|
||||
"y": 5,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_UP",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "RustboroCity_Mart_EventScript_Boy",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_POKEFAN_F",
|
||||
"x": 8,
|
||||
"y": 4,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_WANDER_UP_AND_DOWN",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "RustboroCity_Mart_EventScript_PokefanF",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_BUG_CATCHER",
|
||||
"x": 8,
|
||||
"y": 2,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_UP",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "RustboroCity_Mart_EventScript_BugCatcher",
|
||||
"flag": "0"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 3,
|
||||
"y": 7,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_RUSTBORO_CITY",
|
||||
"dest_warp_id": 2
|
||||
},
|
||||
{
|
||||
"x": 4,
|
||||
"y": 7,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_RUSTBORO_CITY",
|
||||
"dest_warp_id": 2
|
||||
}
|
||||
],
|
||||
"coord_events": [],
|
||||
"bg_events": []
|
||||
}
|
70
data/maps/RustboroCity_Mart/scripts.inc
Normal file
70
data/maps/RustboroCity_Mart/scripts.inc
Normal file
@ -0,0 +1,70 @@
|
||||
RustboroCity_Mart_MapScripts::
|
||||
.byte 0
|
||||
|
||||
RustboroCity_Mart_EventScript_Clerk::
|
||||
lock
|
||||
faceplayer
|
||||
message gText_HowMayIServeYou
|
||||
waitmessage
|
||||
goto_if_unset FLAG_MET_DEVON_EMPLOYEE, RustboroCity_Mart_EventScript_PokemartBasic
|
||||
goto_if_set FLAG_MET_DEVON_EMPLOYEE, RustboroCity_Mart_EventScript_PokemartExpanded
|
||||
end
|
||||
|
||||
RustboroCity_Mart_EventScript_PokemartBasic::
|
||||
pokemart RustboroCity_Mart_Pokemart_Basic
|
||||
msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
.align 2
|
||||
RustboroCity_Mart_Pokemart_Basic:
|
||||
.2byte ITEM_POKE_BALL
|
||||
.2byte ITEM_POTION
|
||||
.2byte ITEM_SUPER_POTION
|
||||
.2byte ITEM_ANTIDOTE
|
||||
.2byte ITEM_PARALYZE_HEAL
|
||||
.2byte ITEM_ESCAPE_ROPE
|
||||
.2byte ITEM_REPEL
|
||||
.2byte ITEM_X_SPEED
|
||||
.2byte ITEM_X_ATTACK
|
||||
.2byte ITEM_X_DEFEND
|
||||
.2byte ITEM_NONE
|
||||
release
|
||||
end
|
||||
|
||||
RustboroCity_Mart_EventScript_PokemartExpanded::
|
||||
pokemart 0
|
||||
msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
RustboroCity_Mart_EventScript_PokefanF::
|
||||
msgbox RustboroCity_Mart_Text_BuyingHealsInCaseOfShroomish, MSGBOX_NPC
|
||||
end
|
||||
|
||||
RustboroCity_Mart_EventScript_Boy::
|
||||
msgbox RustboroCity_Mart_Text_ShouldBuySuperPotionsInstead, MSGBOX_NPC
|
||||
end
|
||||
|
||||
RustboroCity_Mart_EventScript_BugCatcher::
|
||||
msgbox RustboroCity_Mart_Text_GettingEscapeRopeJustInCase, MSGBOX_NPC
|
||||
end
|
||||
|
||||
RustboroCity_Mart_Text_BuyingHealsInCaseOfShroomish:
|
||||
.string "I'm buying some PARLYZ HEALS and\n"
|
||||
.string "ANTIDOTES.\p"
|
||||
.string "Just in case I run into SHROOMISH\n"
|
||||
.string "in PETALBURG WOODS.$"
|
||||
|
||||
RustboroCity_Mart_Text_ShouldBuySuperPotionsInstead:
|
||||
.string "My POKéMON evolved.\n"
|
||||
.string "It has a lot of HP now.\p"
|
||||
.string "I should buy SUPER POTIONS for it\n"
|
||||
.string "instead of ordinary POTIONS.$"
|
||||
|
||||
RustboroCity_Mart_Text_GettingEscapeRopeJustInCase:
|
||||
.string "I'm getting an ESCAPE ROPE just in\n"
|
||||
.string "case I get lost in a cave.\p"
|
||||
.string "I just need to use it to get back to\n"
|
||||
.string "the entrance.$"
|
||||
|
Reference in New Issue
Block a user