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,123 @@
{
"id": "MAP_SAFARI_ZONE_SOUTH",
"name": "SafariZone_South",
"layout": "LAYOUT_SAFARI_ZONE_SOUTH",
"music": "MUS_SAFARI_ZONE",
"region_map_section": "MAPSEC_SAFARI_ZONE",
"requires_flash": false,
"weather": "WEATHER_NONE",
"map_type": "MAP_TYPE_ROUTE",
"allow_cycling": true,
"allow_escaping": false,
"allow_running": true,
"show_map_name": true,
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
"connections": [
{
"direction": "up",
"offset": 0,
"map": "MAP_SAFARI_ZONE_NORTH"
},
{
"direction": "left",
"offset": 0,
"map": "MAP_SAFARI_ZONE_SOUTHWEST"
},
{
"direction": "right",
"offset": 0,
"map": "MAP_SAFARI_ZONE_SOUTHEAST"
}
],
"object_events": [
{
"graphics_id": "OBJ_EVENT_GFX_CAMPER",
"x": 32,
"y": 34,
"elevation": 4,
"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": "SafariZone_South_EventScript_ExitAttendant",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_BOY_1",
"x": 26,
"y": 28,
"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": "SafariZone_South_EventScript_Boy",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_MAN_4",
"x": 16,
"y": 6,
"elevation": 5,
"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": "SafariZone_South_EventScript_Man",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_YOUNGSTER",
"x": 15,
"y": 31,
"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": "SafariZone_South_EventScript_Youngster",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_CAMPER",
"x": 36,
"y": 16,
"elevation": 3,
"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": "SafariZone_South_EventScript_ConstructionWorker1",
"flag": "FLAG_HIDE_SAFARI_ZONE_SOUTH_CONSTRUCTION_WORKERS"
},
{
"graphics_id": "OBJ_EVENT_GFX_CAMPER",
"x": 36,
"y": 17,
"elevation": 3,
"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": "SafariZone_South_EventScript_ConstructionWorker2",
"flag": "FLAG_HIDE_SAFARI_ZONE_SOUTH_CONSTRUCTION_WORKERS"
}
],
"warp_events": [
{
"x": 32,
"y": 33,
"elevation": 0,
"dest_map": "MAP_ROUTE121_SAFARI_ZONE_ENTRANCE",
"dest_warp_id": 0
}
],
"coord_events": [],
"bg_events": []
}

View File

@ -0,0 +1,152 @@
.set LOCALID_ATTENDANT, 1
SafariZone_South_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, SafariZone_South_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, SafariZone_South_OnFrame
.byte 0
SafariZone_South_OnFrame:
map_script_2 VAR_SAFARI_ZONE_STATE, 2, SafariZone_South_EventScript_EnterSafariZone
.2byte 0
SafariZone_South_EventScript_EnterSafariZone::
lockall
applymovement OBJ_EVENT_ID_PLAYER, SafariZone_South_Movement_PlayerEnter
waitmovement 0
applymovement LOCALID_ATTENDANT, SafariZone_South_Movement_ExitAttendantBlockDoor
waitmovement 0
setobjectxyperm LOCALID_ATTENDANT, 32, 34
setvar VAR_SAFARI_ZONE_STATE, 0
releaseall
end
SafariZone_South_OnTransition:
call_if_eq VAR_SAFARI_ZONE_STATE, 2, SafariZone_South_EventScript_SetExitAttendantAside
end
SafariZone_South_EventScript_SetExitAttendantAside::
setobjectxyperm LOCALID_ATTENDANT, 31, 34
return
SafariZone_South_Movement_PlayerEnter:
walk_down
step_end
SafariZone_South_Movement_ExitAttendantBlockDoor:
walk_right
walk_in_place_faster_down
step_end
SafariZone_South_EventScript_Boy::
msgbox SafariZone_South_Text_Boy, MSGBOX_NPC
end
SafariZone_South_EventScript_Man::
msgbox SafariZone_South_Text_Man, MSGBOX_NPC
end
SafariZone_South_EventScript_Youngster::
msgbox SafariZone_South_Text_Youngster, MSGBOX_NPC
end
SafariZone_South_EventScript_ExitAttendant::
lock
faceplayer
goto_if_unset FLAG_GOOD_LUCK_SAFARI_ZONE, SafariZone_South_EventScript_GoodLuck
msgbox SafariZone_South_Text_StillHaveTimeExit, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, SafariZone_South_EventScript_ExitEarly
msgbox SafariZone_South_Text_EnjoyTheRestOfYourAdventure, MSGBOX_DEFAULT
release
end
SafariZone_South_EventScript_GoodLuck::
setflag FLAG_GOOD_LUCK_SAFARI_ZONE
msgbox SafariZone_South_Text_GoodLuck, MSGBOX_DEFAULT
release
end
SafariZone_South_EventScript_ExitEarly::
msgbox SafariZone_South_Text_ExitEarlyThankYouForPlaying, MSGBOX_DEFAULT
closemessage
switch VAR_FACING
case DIR_NORTH, SafariZone_South_EventScript_ExitEarlyNorth
case DIR_EAST, SafariZone_South_EventScript_ExitEarlyEast
end
SafariZone_South_EventScript_ExitEarlyNorth::
applymovement LOCALID_ATTENDANT, SafariZone_South_Movement_MoveExitAttendantNorth
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, SafariZone_South_Movement_PlayerExitNorth
waitmovement 0
goto SafariZone_South_EventScript_Exit
end
SafariZone_South_EventScript_ExitEarlyEast::
applymovement LOCALID_ATTENDANT, SafariZone_South_Movement_MoveExitAttendantEast
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, SafariZone_South_Movement_PlayerExitEast
waitmovement 0
goto SafariZone_South_EventScript_Exit
end
SafariZone_South_EventScript_Exit::
setvar VAR_SAFARI_ZONE_STATE, 1
special ExitSafariMode
warpdoor MAP_ROUTE121_SAFARI_ZONE_ENTRANCE, 2, 5
waitstate
end
SafariZone_South_Movement_PlayerExitNorth:
walk_up
step_end
SafariZone_South_Movement_PlayerExitEast:
walk_right
walk_in_place_faster_up
step_end
SafariZone_South_Movement_MoveExitAttendantNorth:
walk_left
walk_in_place_faster_right
step_end
SafariZone_South_Movement_MoveExitAttendantEast:
walk_down
walk_in_place_faster_up
step_end
SafariZone_South_EventScript_ConstructionWorker1::
msgbox SafariZone_South_Text_AreaOffLimits1, MSGBOX_NPC
end
SafariZone_Southeast_EventScript_ExpansionZoneAttendant::
msgbox SafariZone_Southeast_Text_ExpansionIsFinished, MSGBOX_NPC
end
SafariZone_South_EventScript_ConstructionWorker2::
msgbox SafariZone_South_Text_AreaOffLimits2, MSGBOX_NPC
end
SafariZone_Southeast_EventScript_LittleGirl::
msgbox SafariZone_Southeast_Text_LittleGirl, MSGBOX_NPC
end
SafariZone_Southeast_EventScript_FatMan::
msgbox SafariZone_Southeast_Text_FatMan, MSGBOX_NPC
end
SafariZone_Southeast_EventScript_RichBoy::
msgbox SafariZone_Southeast_Text_RichBoy, MSGBOX_NPC
end
SafariZone_Northeast_EventScript_Boy::
msgbox SafariZone_Northeast_Text_Boy, MSGBOX_NPC
end
SafariZone_Northeast_EventScript_Woman::
msgbox SafariZone_Northeast_Text_Woman, MSGBOX_NPC
end
SafariZone_Northeast_EventScript_Girl::
msgbox SafariZone_Northeast_Text_Girl, MSGBOX_NPC
end