import from github
This commit is contained in:
42
data/maps/SootopolisCity_MysteryEventsHouse_B1F/map.json
Normal file
42
data/maps/SootopolisCity_MysteryEventsHouse_B1F/map.json
Normal file
@ -0,0 +1,42 @@
|
||||
{
|
||||
"id": "MAP_SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_B1F",
|
||||
"name": "SootopolisCity_MysteryEventsHouse_B1F",
|
||||
"layout": "LAYOUT_SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_B1F",
|
||||
"music": "MUS_SOOTOPOLIS",
|
||||
"region_map_section": "MAPSEC_SOOTOPOLIS_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_VAR_0",
|
||||
"x": 6,
|
||||
"y": 5,
|
||||
"elevation": 0,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_LEFT",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "0x0",
|
||||
"flag": "0"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 3,
|
||||
"y": 1,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_1F",
|
||||
"dest_warp_id": 2
|
||||
}
|
||||
],
|
||||
"coord_events": [],
|
||||
"bg_events": []
|
||||
}
|
75
data/maps/SootopolisCity_MysteryEventsHouse_B1F/scripts.inc
Normal file
75
data/maps/SootopolisCity_MysteryEventsHouse_B1F/scripts.inc
Normal file
@ -0,0 +1,75 @@
|
||||
SootopolisCity_MysteryEventsHouse_B1F_MapScripts::
|
||||
map_script MAP_SCRIPT_ON_TRANSITION, SootopolisCity_MysteryEventsHouse_B1F_OnTransition
|
||||
map_script MAP_SCRIPT_ON_FRAME_TABLE, SootopolisCity_MysteryEventsHouse_B1F_OnFrame
|
||||
.byte 0
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_B1F_OnTransition:
|
||||
special SetEReaderTrainerGfxId
|
||||
end
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_B1F_OnFrame:
|
||||
map_script_2 VAR_TEMP_1, 0, SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleVisitingTrainer
|
||||
.2byte 0
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleVisitingTrainer::
|
||||
lockall
|
||||
applymovement OBJ_EVENT_ID_PLAYER, SootopolisCity_MysteryEventsHouse_B1F_Movement_PlayerEnterBasement
|
||||
waitmovement 0
|
||||
special CopyEReaderTrainerGreeting
|
||||
msgbox gStringVar4, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
setvar VAR_0x8004, SPECIAL_BATTLE_EREADER
|
||||
setvar VAR_0x8005, 0
|
||||
special DoSpecialTrainerBattle
|
||||
waitstate
|
||||
call_if_eq VAR_RESULT, B_OUTCOME_DREW, SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleTie
|
||||
call_if_eq VAR_RESULT, B_OUTCOME_WON, SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleWon
|
||||
call_if_eq VAR_RESULT, B_OUTCOME_LOST, SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleLost
|
||||
closemessage
|
||||
special HealPlayerParty
|
||||
applymovement OBJ_EVENT_ID_PLAYER, SootopolisCity_MysteryEventsHouse_B1F_Movement_PlayerExitBasement
|
||||
waitmovement 0
|
||||
special LoadPlayerParty
|
||||
setvar VAR_TEMP_1, 1
|
||||
warp MAP_SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_1F, 3, 1
|
||||
waitstate
|
||||
releaseall
|
||||
end
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleTie::
|
||||
setvar VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 3
|
||||
msgbox SootopolisCity_MysteryEventsHouse_B1F_Text_MatchEndedUpDraw, MSGBOX_DEFAULT
|
||||
return
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleWon::
|
||||
setvar VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 1
|
||||
special ShowFieldMessageStringVar4
|
||||
waitmessage
|
||||
waitbuttonpress
|
||||
return
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_B1F_EventScript_BattleLost::
|
||||
setvar VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 2
|
||||
special ShowFieldMessageStringVar4
|
||||
waitmessage
|
||||
waitbuttonpress
|
||||
return
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_B1F_Movement_PlayerEnterBasement:
|
||||
walk_down
|
||||
walk_down
|
||||
walk_down
|
||||
walk_right
|
||||
walk_right
|
||||
step_end
|
||||
|
||||
SootopolisCity_MysteryEventsHouse_B1F_Movement_PlayerExitBasement:
|
||||
walk_left
|
||||
walk_left
|
||||
walk_up
|
||||
walk_up
|
||||
walk_up
|
||||
walk_up
|
||||
delay_8
|
||||
step_end
|
||||
|
Reference in New Issue
Block a user