pmd-red/src/data/ground/ground_data_a04p03_station.h
2025-12-01 23:43:07 -05:00

162 lines
5.4 KiB
C

static const struct ScriptCommand s_gs173_g0_s0_station_sref_script[] = { /* 0x8229b2c */
DEBUGINFO_O(11),
SELECT_MAP(173),
BGM_STOP,
JUMP_SCRIPT(COMMON_ENTER),
};
static const ScriptRef s_gs173_g0_s0_station_sref = { ENTER_CONTROL, SCRIPT_TYPE_01, NULL, s_gs173_g0_s0_station_sref_script }; /* 0x8229b98 */
static const struct ScriptCommand s_gs173_g1_s0_station_sref_script[] = { /* 0x8229ba4 */
DEBUGINFO_O(20),
SELECT_MAP(173),
SELECT_ENTITIES(-1, -1),
WAIT(60),
{ 0x97, 0x00, 0x0002, 0x00000001, 0x00000001, NULL },
BGM_SWITCH(MUS_WORLD_CALAMITY),
FANFARE_PLAY2(508),
{ 0x22, 0x01, 0x001e, 0x00000000, 0x00000000, NULL },
WAIT(240),
FANFARE_FADEOUT2(60, 508),
{ 0x23, 0x01, 0x001e, 0x00000000, 0x00000000, NULL },
WAIT(60),
RET,
};
static const ScriptRef s_gs173_g1_s0_station_sref = { EVENT_CONTROL, SCRIPT_TYPE_07, NULL, s_gs173_g1_s0_station_sref_script }; /* 0x8229c74 */
static const struct ScriptCommand s_gs173_g1_s0_eff0_script[] = { /* 0x8229c80 */
DEBUGINFO_O(38),
CAMERA_INIT_PAN,
WAIT(60),
WALK_GRID(179, 0),
HALT,
};
static const struct ScriptCommand s_gs173_g2_s0_station_sref_script[] = { /* 0x8229cd0 */
DEBUGINFO_O(46),
SELECT_MAP(173),
SELECT_ENTITIES(-1, -1),
BGM_SWITCH(MUS_RAYQUAZAS_DOMAIN),
FANFARE_PLAY2(508),
{ 0x97, 0x00, 0x0002, 0x00000001, 0x00000001, NULL },
{ 0x22, 0x01, 0x0010, 0x00000000, 0x00000000, NULL },
AWAIT_CUE(5),
WAIT(210),
{ 0x23, 0x01, 0x001e, 0x00000000, 0x00000000, NULL },
FANFARE_FADEOUT2(30, 508),
RET,
};
static const ScriptRef s_gs173_g2_s0_station_sref = { EVENT_CONTROL, SCRIPT_TYPE_07, NULL, s_gs173_g2_s0_station_sref_script }; /* 0x8229d90 */
static const struct ScriptCommand s_gs173_g2_s0_eff0_script[] = { /* 0x8229d9c */
DEBUGINFO_O(63),
CAMERA_END_PAN,
WAIT(1),
CAMERA_INIT_PAN,
{ 0x89, 0x30, 0x0300, 0x00000004, 0x00000000, NULL },
ALERT_CUE(5),
AWAIT_CUE(4),
END_DELETE,
};
static const struct ScriptCommand s_gs173_g3_s0_station_sref_script[] = { /* 0x8229e1c */
DEBUGINFO_O(74),
SELECT_MAP(173),
SELECT_ENTITIES(-1, -1),
BGM_SWITCH(MUS_RAYQUAZAS_DOMAIN),
{ 0x97, 0x00, 0x0001, 0x00000000, 0x00000000, NULL },
FLASH_FROM(FALSE, PALUTIL_KIND_05, 16, RGB_U32(0xFF, 0xFF, 0xFF)),
AWAIT_CUE(5),
WAIT(120),
FLASH_TO(TRUE, PALUTIL_KIND_05, 8, RGB_U32(0xFF, 0xFF, 0xFF)),
WAIT(5),
FLASH_FROM(FALSE, PALUTIL_KIND_05, 8, RGB_U32(0xFF, 0xFF, 0xFF)),
WAIT(20),
FLASH_TO(TRUE, PALUTIL_KIND_05, 8, RGB_U32(0xFF, 0xFF, 0xFF)),
WAIT(5),
FLASH_FROM(FALSE, PALUTIL_KIND_05, 8, RGB_U32(0xFF, 0xFF, 0xFF)),
WAIT(30),
FLASH_TO(TRUE, PALUTIL_KIND_05, 45, RGB_U32(0xFF, 0xFF, 0xFF)),
WAIT(30),
RET,
};
static const ScriptRef s_gs173_g3_s0_station_sref = { EVENT_CONTROL, SCRIPT_TYPE_07, NULL, s_gs173_g3_s0_station_sref_script }; /* 0x8229f4c */
static const struct ScriptCommand s_gs173_g3_s0_eff0_script[] = { /* 0x8229f58 */
DEBUGINFO_O(98),
CAMERA_END_PAN,
WAIT(1),
CAMERA_INIT_PAN,
{ 0x89, 0x18, 0x0400, 0x00000004, 0x00000000, NULL },
ALERT_CUE(5),
AWAIT_CUE(4),
END_DELETE,
};
static const struct ScriptCommand s_gs173_g3_s0_eff1_script[] = { /* 0x8229fd8 */
DEBUGINFO_O(109),
{ 0x56, 0x00, 0x0000, 0x00000135, 0x00000000, NULL },
HALT,
};
static const struct GroundEffectData s_gs173_g1_s0_effs[] = { /* 0x822a008 */
/* 0 */ { 0, 0, 1, 1, { 17, 41, CPOS_HALFTILE, CPOS_HALFTILE }, s_gs173_g1_s0_eff0_script },
};
static const struct GroundEffectData s_gs173_g2_s0_effs[] = { /* 0x822a014 */
/* 0 */ { 0, 0, 1, 1, { 17, 41, CPOS_HALFTILE, CPOS_HALFTILE }, s_gs173_g2_s0_eff0_script },
};
static const struct GroundEffectData s_gs173_g3_s0_effs[] = { /* 0x822a020 */
/* 0 */ { 0, 0, 1, 1, { 17, 36, CPOS_HALFTILE, CPOS_HALFTILE }, s_gs173_g3_s0_eff0_script },
/* 1 */ { 3, 0, 1, 1, { 18, 33, 0, CPOS_HALFTILE }, s_gs173_g3_s0_eff1_script },
};
static const ScriptRef * const (sStationScripts[]) = { /* 0x822a038 */
&s_gs173_g0_s0_station_sref,
&s_gs173_g1_s0_station_sref,
&s_gs173_g2_s0_station_sref,
&s_gs173_g3_s0_station_sref,
};
static const struct GroundScriptSector s_gs173_g0_sectors[] = { /* 0x822a048 */
{ 0,NULL, 0,NULL, 0,NULL, 0,NULL, 1,&sStationScripts[0], },
};
static const struct GroundScriptSector s_gs173_g1_sectors[] = { /* 0x822a070 */
{ 0,NULL, 0,NULL, LPARRAY(s_gs173_g1_s0_effs), 0,NULL, 1,&sStationScripts[1], },
};
static const struct GroundScriptSector s_gs173_g2_sectors[] = { /* 0x822a098 */
{ 0,NULL, 0,NULL, LPARRAY(s_gs173_g2_s0_effs), 0,NULL, 1,&sStationScripts[2], },
};
static const struct GroundScriptSector s_gs173_g3_sectors[] = { /* 0x822a0c0 */
{ 0,NULL, 0,NULL, LPARRAY(s_gs173_g3_s0_effs), 0,NULL, 1,&sStationScripts[3], },
};
static const struct GroundScriptGroup s_gs173_groups[] = { /* 0x822a0e8 */
{ LPARRAY(s_gs173_g0_sectors) },
{ LPARRAY(s_gs173_g1_sectors) },
{ LPARRAY(s_gs173_g2_sectors) },
{ LPARRAY(s_gs173_g3_sectors) },
};
static const struct GroundLink s_gs173_links[] = { /* 0x822a108 */
/* link 0 */ { { /*x*/ 18, /*y*/ 6, /*flags*/ CPOS_HALFTILE, CPOS_HALFTILE }, /*w*/ 1, /*h*/ 1, /*ret*/ 1, /*?*/ 0 },
};
const GroundScriptHeader gGroundScript_gs173 = { LPARRAY(s_gs173_groups), s_gs173_links }; /* 0x822a110 */