import from github
This commit is contained in:
62
data/maps/FallarborTown_CozmosHouse/map.json
Normal file
62
data/maps/FallarborTown_CozmosHouse/map.json
Normal file
@ -0,0 +1,62 @@
|
||||
{
|
||||
"id": "MAP_FALLARBOR_TOWN_COZMOS_HOUSE",
|
||||
"name": "FallarborTown_CozmosHouse",
|
||||
"layout": "LAYOUT_HOUSE1",
|
||||
"music": "MUS_FALLARBOR",
|
||||
"region_map_section": "MAPSEC_FALLARBOR_TOWN",
|
||||
"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_SCIENTIST_1",
|
||||
"x": 6,
|
||||
"y": 4,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_WANDER_AROUND",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "FallarborTown_CozmosHouse_EventScript_ProfCozmo",
|
||||
"flag": "FLAG_HIDE_FALLARBOR_HOUSE_PROF_COZMO"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_WOMAN_2",
|
||||
"x": 5,
|
||||
"y": 6,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_WANDER_LEFT_AND_RIGHT",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "FallarborTown_CozmosHouse_EventScript_CozmosWife",
|
||||
"flag": "0"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 3,
|
||||
"y": 8,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_FALLARBOR_TOWN",
|
||||
"dest_warp_id": 3
|
||||
},
|
||||
{
|
||||
"x": 4,
|
||||
"y": 8,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_FALLARBOR_TOWN",
|
||||
"dest_warp_id": 3
|
||||
}
|
||||
],
|
||||
"coord_events": [],
|
||||
"bg_events": []
|
||||
}
|
118
data/maps/FallarborTown_CozmosHouse/scripts.inc
Normal file
118
data/maps/FallarborTown_CozmosHouse/scripts.inc
Normal file
@ -0,0 +1,118 @@
|
||||
FallarborTown_CozmosHouse_MapScripts::
|
||||
.byte 0
|
||||
|
||||
FallarborTown_CozmosHouse_EventScript_ProfCozmo::
|
||||
lock
|
||||
faceplayer
|
||||
goto_if_set FLAG_RECEIVED_TM27, FallarborTown_CozmosHouse_EventScript_GaveMeteorite
|
||||
checkitem ITEM_METEORITE
|
||||
goto_if_eq VAR_RESULT, TRUE, FallarborTown_CozmosHouse_EventScript_PlayerHasMeteorite
|
||||
msgbox FallarborTown_CozmosHouse_Text_MeteoriteWillNeverBeMineNow, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
FallarborTown_CozmosHouse_EventScript_PlayerHasMeteorite::
|
||||
call_if_unset FLAG_TEMP_2, FallarborTown_CozmosHouse_EventScript_NoticeMeteorite
|
||||
call_if_set FLAG_TEMP_2, FallarborTown_CozmosHouse_EventScript_AskForMeteorite
|
||||
goto_if_eq VAR_RESULT, NO, FallarborTown_CozmosHouse_EventScript_DeclineGiveMeteorite
|
||||
msgbox FallarborTown_CozmosHouse_Text_PleaseUseThisTM, MSGBOX_DEFAULT
|
||||
giveitem ITEM_TM27
|
||||
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
||||
setvar VAR_0x8004, ITEM_METEORITE
|
||||
call Common_EventScript_PlayerHandedOverTheItem
|
||||
setflag FLAG_RECEIVED_TM27
|
||||
msgbox FallarborTown_CozmosHouse_Text_ReallyGoingToHelpMyResearch, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
FallarborTown_CozmosHouse_EventScript_NoticeMeteorite::
|
||||
msgbox FallarborTown_CozmosHouse_Text_MeteoriteWillNeverBeMineNow, MSGBOX_DEFAULT
|
||||
msgbox FallarborTown_CozmosHouse_Text_IsThatMeteoriteMayIHaveIt, MSGBOX_YESNO
|
||||
return
|
||||
|
||||
FallarborTown_CozmosHouse_EventScript_AskForMeteorite::
|
||||
msgbox FallarborTown_CozmosHouse_Text_MayIHaveMeteorite, MSGBOX_YESNO
|
||||
return
|
||||
|
||||
FallarborTown_CozmosHouse_EventScript_DeclineGiveMeteorite::
|
||||
setflag FLAG_TEMP_2
|
||||
msgbox FallarborTown_CozmosHouse_Text_CrushedWithDisappointment, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
FallarborTown_CozmosHouse_EventScript_GaveMeteorite::
|
||||
msgbox FallarborTown_CozmosHouse_Text_ReallyGoingToHelpMyResearch, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
FallarborTown_CozmosHouse_EventScript_CozmosWife::
|
||||
lock
|
||||
faceplayer
|
||||
goto_if_set FLAG_RECEIVED_TM27, FallarborTown_CozmosHouse_EventScript_CozmoIsHappy
|
||||
goto_if_set FLAG_DEFEATED_EVIL_TEAM_MT_CHIMNEY, FallarborTown_CozmosHouse_EventScript_CozmoIsSad
|
||||
msgbox FallarborTown_CozmosHouse_Text_CozmoWentToMeteorFalls, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
FallarborTown_CozmosHouse_EventScript_CozmoIsSad::
|
||||
msgbox FallarborTown_CozmosHouse_Text_FeelSorryForCozmo, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
FallarborTown_CozmosHouse_EventScript_CozmoIsHappy::
|
||||
msgbox FallarborTown_CozmosHouse_Text_CozmoIsSoHappy, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
FallarborTown_CozmosHouse_Text_MeteoriteWillNeverBeMineNow:
|
||||
.string "PROF. COZMO: Oh…\n"
|
||||
.string "I never should have let myself be\l"
|
||||
.string "conned into telling TEAM MAGMA where\l"
|
||||
.string "you can find METEORITES…\p"
|
||||
.string "That METEORITE from METEOR FALLS…\n"
|
||||
.string "It's never going to be mine now…$"
|
||||
|
||||
FallarborTown_CozmosHouse_Text_IsThatMeteoriteMayIHaveIt:
|
||||
.string "Oh!\n"
|
||||
.string "Hah?\p"
|
||||
.string "That item…\p"
|
||||
.string "Could it be?\p"
|
||||
.string "Is it the METEORITE that TEAM MAGMA\n"
|
||||
.string "took from METEOR FALLS?\p"
|
||||
.string "Please, may I have it?\p"
|
||||
.string "I'm not asking for it for free.\n"
|
||||
.string "How about in exchange for this TM?$"
|
||||
|
||||
FallarborTown_CozmosHouse_Text_PleaseUseThisTM:
|
||||
.string "PROF. COZMO: This TM, it represents\n"
|
||||
.string "my feeling of gratitude.\l"
|
||||
.string "Please use it!$"
|
||||
|
||||
FallarborTown_CozmosHouse_Text_ReallyGoingToHelpMyResearch:
|
||||
.string "PROF. COZMO: Oh, I can't believe it.\n"
|
||||
.string "This is really, really great!\p"
|
||||
.string "This is really going to help my research!$"
|
||||
|
||||
FallarborTown_CozmosHouse_Text_CrushedWithDisappointment:
|
||||
.string "PROF. COZMO: Oh, but…\n"
|
||||
.string "I'm crushed with disappointment…$"
|
||||
|
||||
FallarborTown_CozmosHouse_Text_MayIHaveMeteorite:
|
||||
.string "PROF. COZMO: Please, may I have that\n"
|
||||
.string "METEORITE?\p"
|
||||
.string "I'm not asking for it for free.\n"
|
||||
.string "How about in exchange for this TM?$"
|
||||
|
||||
FallarborTown_CozmosHouse_Text_CozmoWentToMeteorFalls:
|
||||
.string "PROF. COZMO went off to METEOR FALLS\n"
|
||||
.string "on ROUTE 114 with some people from\l"
|
||||
.string "TEAM MAGMA.$"
|
||||
|
||||
FallarborTown_CozmosHouse_Text_FeelSorryForCozmo:
|
||||
.string "Poor PROF. COZMO…\n"
|
||||
.string "He's so depressed… I feel sorry for him.$"
|
||||
|
||||
FallarborTown_CozmosHouse_Text_CozmoIsSoHappy:
|
||||
.string "Look at PROF. COZMO…\n"
|
||||
.string "He's so happy! I think it's cute.$"
|
||||
|
Reference in New Issue
Block a user