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,45 @@
{
"id": "MAP_NEW_MAUVILLE_ENTRANCE",
"name": "NewMauville_Entrance",
"layout": "LAYOUT_NEW_MAUVILLE_ENTRANCE",
"music": "MUS_MT_PYRE",
"region_map_section": "MAPSEC_NEW_MAUVILLE",
"requires_flash": false,
"weather": "WEATHER_NONE",
"map_type": "MAP_TYPE_UNDERGROUND",
"allow_cycling": true,
"allow_escaping": true,
"allow_running": true,
"show_map_name": true,
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
"connections": null,
"object_events": [],
"warp_events": [
{
"x": 4,
"y": 6,
"elevation": 3,
"dest_map": "MAP_ROUTE110",
"dest_warp_id": 0
},
{
"x": 4,
"y": 1,
"elevation": 3,
"dest_map": "MAP_NEW_MAUVILLE_INSIDE",
"dest_warp_id": 0
}
],
"coord_events": [
{
"type": "trigger",
"x": 4,
"y": 2,
"elevation": 3,
"var": "VAR_NEW_MAUVILLE_STATE",
"var_value": "0",
"script": "NewMauville_Entrance_EventScript_Door"
}
],
"bg_events": []
}

View File

@ -0,0 +1,58 @@
NewMauville_Entrance_MapScripts::
map_script MAP_SCRIPT_ON_LOAD, NewMauville_Entrance_OnLoad
map_script MAP_SCRIPT_ON_TRANSITION, NewMauville_Entrance_OnTransition
.byte 0
NewMauville_Entrance_OnLoad:
call_if_eq VAR_NEW_MAUVILLE_STATE, 0, NewMauville_Entrance_EventScript_CloseDoor
end
NewMauville_Entrance_EventScript_CloseDoor::
setmetatile 3, 0, METATILE_Facility_NewMauvilleDoor_Closed_Tile0, TRUE
setmetatile 4, 0, METATILE_Facility_NewMauvilleDoor_Closed_Tile1, TRUE
setmetatile 5, 0, METATILE_Facility_NewMauvilleDoor_Closed_Tile2, TRUE
setmetatile 3, 1, METATILE_Facility_NewMauvilleDoor_Closed_Tile3, TRUE
setmetatile 4, 1, METATILE_Facility_NewMauvilleDoor_Closed_Tile4, TRUE
setmetatile 5, 1, METATILE_Facility_NewMauvilleDoor_Closed_Tile5, TRUE
return
NewMauville_Entrance_OnTransition:
setflag FLAG_LANDMARK_NEW_MAUVILLE
end
NewMauville_Entrance_EventScript_Door::
lockall
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterUp
waitmovement 0
msgbox NewMauville_Entrance_Text_DoorIsLocked, MSGBOX_DEFAULT
checkitem ITEM_BASEMENT_KEY
goto_if_eq VAR_RESULT, FALSE, NewMauville_Entrance_EventScript_DontOpenDoor
msgbox NewMauville_Entrance_Text_UseBasementKey, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, NewMauville_Entrance_EventScript_DontOpenDoor
msgbox NewMauville_Entrance_Text_UsedBasementKey, MSGBOX_DEFAULT
setmetatile 3, 0, METATILE_Facility_NewMauvilleDoor_Open_Tile0, FALSE
setmetatile 4, 0, METATILE_Facility_NewMauvilleDoor_Open_Tile1, FALSE
setmetatile 5, 0, METATILE_Facility_NewMauvilleDoor_Open_Tile2, FALSE
setmetatile 3, 1, METATILE_Facility_NewMauvilleDoor_Open_Tile3, TRUE
setmetatile 4, 1, METATILE_Facility_NewMauvilleDoor_Open_Tile4, FALSE
setmetatile 5, 1, METATILE_Facility_NewMauvilleDoor_Open_Tile5, TRUE
special DrawWholeMapView
playse SE_BANG
setvar VAR_NEW_MAUVILLE_STATE, 1
releaseall
end
NewMauville_Entrance_EventScript_DontOpenDoor::
releaseall
end
NewMauville_Entrance_Text_DoorIsLocked:
.string "The door is locked.$"
NewMauville_Entrance_Text_UseBasementKey:
.string "Use the BASEMENT KEY?$"
NewMauville_Entrance_Text_UsedBasementKey:
.string "{PLAYER} used the BASEMENT KEY.\p"
.string "The door opened!$"