import from github
This commit is contained in:
153
data/maps/UnionRoom/map.json
Normal file
153
data/maps/UnionRoom/map.json
Normal file
@ -0,0 +1,153 @@
|
||||
{
|
||||
"id": "MAP_UNION_ROOM",
|
||||
"name": "UnionRoom",
|
||||
"layout": "LAYOUT_UNION_ROOM",
|
||||
"music": "MUS_EVER_GRANDE",
|
||||
"region_map_section": "MAPSEC_DYNAMIC",
|
||||
"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_FRONTIER",
|
||||
"connections": null,
|
||||
"object_events": [
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_UNION_ROOM_NURSE",
|
||||
"x": 3,
|
||||
"y": 2,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "UnionRoom_EventScript_Attendant",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_VAR_3",
|
||||
"x": 1,
|
||||
"y": 8,
|
||||
"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": "UnionRoom_EventScript_Player4",
|
||||
"flag": "FLAG_HIDE_UNION_ROOM_PLAYER_4"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_VAR_7",
|
||||
"x": 7,
|
||||
"y": 8,
|
||||
"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": "UnionRoom_EventScript_Player8",
|
||||
"flag": "FLAG_HIDE_UNION_ROOM_PLAYER_8"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_VAR_6",
|
||||
"x": 1,
|
||||
"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": "UnionRoom_EventScript_Player7",
|
||||
"flag": "FLAG_HIDE_UNION_ROOM_PLAYER_7"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_VAR_5",
|
||||
"x": 7,
|
||||
"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": "UnionRoom_EventScript_Player6",
|
||||
"flag": "FLAG_HIDE_UNION_ROOM_PLAYER_6"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_VAR_4",
|
||||
"x": 13,
|
||||
"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": "UnionRoom_EventScript_Player5",
|
||||
"flag": "FLAG_HIDE_UNION_ROOM_PLAYER_5"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_VAR_2",
|
||||
"x": 10,
|
||||
"y": 6,
|
||||
"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": "UnionRoom_EventScript_Player3",
|
||||
"flag": "FLAG_HIDE_UNION_ROOM_PLAYER_3"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_VAR_1",
|
||||
"x": 13,
|
||||
"y": 8,
|
||||
"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": "UnionRoom_EventScript_Player2",
|
||||
"flag": "FLAG_HIDE_UNION_ROOM_PLAYER_2"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_VAR_0",
|
||||
"x": 4,
|
||||
"y": 6,
|
||||
"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": "UnionRoom_EventScript_Player1",
|
||||
"flag": "FLAG_HIDE_UNION_ROOM_PLAYER_1"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 7,
|
||||
"y": 11,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_NONE",
|
||||
"dest_warp_id": 127
|
||||
},
|
||||
{
|
||||
"x": 8,
|
||||
"y": 11,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_NONE",
|
||||
"dest_warp_id": 127
|
||||
}
|
||||
],
|
||||
"coord_events": [],
|
||||
"bg_events": []
|
||||
}
|
109
data/maps/UnionRoom/scripts.inc
Normal file
109
data/maps/UnionRoom/scripts.inc
Normal file
@ -0,0 +1,109 @@
|
||||
@ Note: LOCALID_UNION_ROOM_PLAYER_# are local ids for this map used elsewhere. They're defined in event_objects.h
|
||||
|
||||
UnionRoom_MapScripts::
|
||||
map_script MAP_SCRIPT_ON_RESUME, UnionRoom_OnResume
|
||||
map_script MAP_SCRIPT_ON_TRANSITION, UnionRoom_OnTransition
|
||||
.byte 0
|
||||
|
||||
UnionRoom_OnResume:
|
||||
setflag FLAG_HIDE_UNION_ROOM_PLAYER_1
|
||||
setflag FLAG_HIDE_UNION_ROOM_PLAYER_2
|
||||
setflag FLAG_HIDE_UNION_ROOM_PLAYER_3
|
||||
setflag FLAG_HIDE_UNION_ROOM_PLAYER_4
|
||||
setflag FLAG_HIDE_UNION_ROOM_PLAYER_5
|
||||
setflag FLAG_HIDE_UNION_ROOM_PLAYER_6
|
||||
setflag FLAG_HIDE_UNION_ROOM_PLAYER_7
|
||||
setflag FLAG_HIDE_UNION_ROOM_PLAYER_8
|
||||
removeobject LOCALID_UNION_ROOM_PLAYER_1
|
||||
removeobject LOCALID_UNION_ROOM_PLAYER_2
|
||||
removeobject LOCALID_UNION_ROOM_PLAYER_3
|
||||
removeobject LOCALID_UNION_ROOM_PLAYER_4
|
||||
removeobject LOCALID_UNION_ROOM_PLAYER_5
|
||||
removeobject LOCALID_UNION_ROOM_PLAYER_6
|
||||
removeobject LOCALID_UNION_ROOM_PLAYER_7
|
||||
removeobject LOCALID_UNION_ROOM_PLAYER_8
|
||||
special RunUnionRoom
|
||||
end
|
||||
|
||||
UnionRoom_OnTransition:
|
||||
end
|
||||
|
||||
UnionRoom_EventScript_Player1::
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, UR_INTERACT_PLAYER_1
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
|
||||
UnionRoom_EventScript_Player2::
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, UR_INTERACT_PLAYER_2
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
|
||||
UnionRoom_EventScript_Player3::
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, UR_INTERACT_PLAYER_3
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
|
||||
UnionRoom_EventScript_Player4::
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, UR_INTERACT_PLAYER_4
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
|
||||
UnionRoom_EventScript_Player5::
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, UR_INTERACT_PLAYER_5
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
|
||||
UnionRoom_EventScript_Player6::
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, UR_INTERACT_PLAYER_6
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
|
||||
UnionRoom_EventScript_Player7::
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, UR_INTERACT_PLAYER_7
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
|
||||
UnionRoom_EventScript_Player8::
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, UR_INTERACT_PLAYER_8
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
|
||||
UnionRoom_EventScript_Attendant::
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, UR_INTERACT_ATTENDANT
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
|
||||
UnionRoom_EventScript_Unused::
|
||||
lockall
|
||||
setvar VAR_RESULT, UR_INTERACT_UNUSED
|
||||
waitstate
|
||||
releaseall
|
||||
end
|
||||
|
Reference in New Issue
Block a user