import from github

This commit is contained in:
2022-05-19 17:14:13 +00:00
parent 5247c34f50
commit ab32b30591
12612 changed files with 1905035 additions and 83 deletions

View File

@ -0,0 +1,49 @@
{
"id": "MAP_TRAINER_HILL_ROOF",
"name": "TrainerHill_Roof",
"layout": "LAYOUT_TRAINER_HILL_ROOF",
"music": "MUS_B_TOWER_RS",
"region_map_section": "MAPSEC_TRAINER_HILL",
"requires_flash": false,
"weather": "WEATHER_NONE",
"map_type": "MAP_TYPE_INDOOR",
"allow_cycling": false,
"allow_escaping": false,
"allow_running": true,
"show_map_name": false,
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
"connections": null,
"object_events": [
{
"graphics_id": "OBJ_EVENT_GFX_GENTLEMAN",
"x": 12,
"y": 7,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0",
"script": "TrainerHill_Roof_EventScript_Owner",
"flag": "0"
}
],
"warp_events": [
{
"x": 9,
"y": 5,
"elevation": 3,
"dest_map": "MAP_TRAINER_HILL_4F",
"dest_warp_id": 1
},
{
"x": 15,
"y": 5,
"elevation": 0,
"dest_map": "MAP_TRAINER_HILL_ELEVATOR",
"dest_warp_id": 1
}
],
"coord_events": [],
"bg_events": []
}

View File

@ -0,0 +1,62 @@
TrainerHill_Roof_MapScripts::
map_script MAP_SCRIPT_ON_RESUME, TrainerHill_OnResume
map_script MAP_SCRIPT_ON_FRAME_TABLE, TrainerHill_OnFrame
.byte 0
TrainerHill_Roof_EventScript_Owner::
trainerhill_settrainerflags
lock
faceplayer
trainerhill_getownerstate
switch VAR_RESULT
case 0, TrainerHill_Roof_EventScript_Arrived
case 1, TrainerHill_Roof_EventScript_GivePrize
case 2, TrainerHill_Roof_EventScript_AlreadyReceivedPrize
TrainerHill_Roof_EventScript_Arrived::
msgbox TrainerHill_Roof_Text_YouFinallyCameBravo, MSGBOX_DEFAULT
TrainerHill_Roof_EventScript_GivePrize::
trainerhill_giveprize
switch VAR_RESULT
case 0, TrainerHill_Roof_EventScript_ReceivePrize
case 1, TrainerHill_Roof_EventScript_NoRoomForPrize
case 2, TrainerHill_Roof_EventScript_CheckFinalTime
TrainerHill_Roof_EventScript_ReceivePrize::
msgbox TrainerHill_Roof_Text_HaveTheMostMarvelousGift, MSGBOX_DEFAULT
playfanfare MUS_LEVEL_UP
message gText_ObtainedTheItem
waitfanfare
waitmessage
goto TrainerHill_Roof_EventScript_CheckFinalTime
TrainerHill_Roof_EventScript_NoRoomForPrize::
msgbox TrainerHill_Roof_Text_HaveTheMostMarvelousGift, MSGBOX_DEFAULT
msgbox gText_TheBagIsFull, MSGBOX_DEFAULT
msgbox TrainerHill_Roof_Text_FullUpBeBackLaterForThis, MSGBOX_DEFAULT
goto TrainerHill_Roof_EventScript_CheckFinalTime
TrainerHill_Roof_EventScript_CheckFinalTime::
trainerhill_finaltime
switch VAR_RESULT
case 0, TrainerHill_Roof_EventScript_NewRecord
case 1, TrainerHill_Roof_EventScript_NoNewRecord
case 2, TrainerHill_Roof_EventScript_EndSpeakToOwner
TrainerHill_Roof_EventScript_NewRecord::
msgbox TrainerHill_Roof_Text_GotHereMarvelouslyQuickly, MSGBOX_DEFAULT
goto TrainerHill_Roof_EventScript_EndSpeakToOwner
end
TrainerHill_Roof_EventScript_NoNewRecord::
msgbox TrainerHill_Roof_Text_YouWerentVeryQuick, MSGBOX_DEFAULT
goto TrainerHill_Roof_EventScript_EndSpeakToOwner
end
TrainerHill_Roof_EventScript_EndSpeakToOwner::
msgbox TrainerHill_Roof_Text_ArriveZippierNextTime, MSGBOX_DEFAULT
release
end
TrainerHill_Roof_EventScript_AlreadyReceivedPrize::
msgbox TrainerHill_Roof_Text_ArriveZippierNextTime, MSGBOX_DEFAULT
release
end