script set: d26r0104

code

ev_d26r0104_obj_change:
    if_flagon_jump(flag: 491, "ev_d26r0104_obj_change_vanish")
    end()

ev_d26r0104_obj_change_vanish:
    set_door_obj("P_C_001_AutoDoor_01")
    door_force_anime_end(0.0)
    end()

ev_d26r0104_gingaboss:
    event_start()
    obj_anime("HERO", "anm_hero_01")
    obj_anime_wait()
    black_out("SCR_WIPE_DIV", 3.0)
    fade_wait()
    event_camera_index(237.0)
    obj_pos_change_world("HERO", -8.0, 0.0, 11.0)
    black_in("SCR_WIPE_DIV", 3.0)
    fade_wait()
    obj_anime("D26R0104_GINGABOSS", "anm_d26r0104_gingaboss_01")
    obj_anime_wait()
    time_wait(20.0, work: 246)
    talkmsg("dp_scenario2%83-msg_d26r0104_gingaboss_01_1")
    time_wait(10.0, work: 246)
    set_force_blink("D26R0104_GINGABOSS", 1.0)
    time_wait(20.0, work: 246)
    talk_keywait("dp_scenario2%83-msg_d26r0104_gingaboss_01_2")
    talk_close()
    time_wait(10.0, work: 246)
    set_force_blink("D26R0104_GINGABOSS", 0.0)
    event_camera_index(238.0)
    obj_anime("D26R0104_GINGABOSS", "anm_d26r0104_gingaboss_02")
    obj_anime_wait()
    time_wait(10.0, work: 246)
    set_force_blink("D26R0104_GINGABOSS", 1.0)
    time_wait(15.0, work: 246)
    set_force_blink("D26R0104_GINGABOSS", 0.0)
    talkmsg("dp_scenario2%83-msg_d26r0104_gingaboss_02_1")
    talkmsg("dp_scenario2%83-msg_d26r0104_gingaboss_02_2")
    obj_anime("D26R0104_GINGABOSS", "anm_c03gym0101_leader_01_face02")
    obj_anime_wait()
    talk_keywait("dp_scenario2%83-msg_d26r0104_gingaboss_02_3")
    talk_close()
    event_camera_index(239.0)
    obj_anime("D26R0104_GINGABOSS", "anm_c03gym0101_leader_01_face00")
    obj_anime_wait()
    player_pos_get(work: 238, work: 239)
    ifval_jump(work: 238, "EQ", 8.0, "ev_d26r0104_gingaboss_x1")
    ifval_jump(work: 238, "EQ", 9.0, "ev_d26r0104_gingaboss_x2")
    end()

ev_d26r0104_gingaboss_x1:
    obj_anime("D26R0104_GINGABOSS", "anm_d26r0104_gingaboss_03")
    obj_anime_wait()
    jump("common_d26r0104_gingaboss_01")
    jump("common_d26r0104_gingaboss_01")

ev_d26r0104_gingaboss_x2:
    obj_anime("D26R0104_GINGABOSS", "anm_d26r0104_gingaboss_13")
    obj_anime_wait()
    jump("common_d26r0104_gingaboss_01")
    jump("common_d26r0104_gingaboss_01")

common_d26r0104_gingaboss_01:
    trainer_btl_set("GINGALBOSS_01", 0.0)
    trainer_lose_check(work: 246)
    ifval_jump(work: 246, "EQ", 0.0, "ev_d26r0104_gingaboss_battle_lose")
    talkmsg("dp_scenario2%83-msg_d26r0104_gingaboss_03_1")
    talkmsg("dp_scenario2%83-msg_d26r0104_gingaboss_03_2")
    talkmsg("dp_scenario2%83-msg_d26r0104_gingaboss_03_3")
    talk_keywait("dp_scenario2%83-msg_d26r0104_gingaboss_03_4")
    ldval(work: 238, 1.0)
    ldval(work: 239, 1.0)
    add_item_chk(work: 238, work: 239, work: 246)
    ifval_call(work: 246, "EQ", 1.0, "ev_d26r0104_item_event_ok")
    talkmsg("dp_scenario2%83-msg_d26r0104_gingaboss_04_1")
    talkmsg("dp_scenario2%83-msg_d26r0104_gingaboss_04_2")
    talk_keywait("dp_scenario2%83-msg_d26r0104_gingaboss_04_3")
    talk_close()
    obj_anime("D26R0104_GINGABOSS", "anm_d26r0104_gingaboss_10")
    obj_anime_wait()
    talkmsg("dp_scenario2%83-msg_d26r0104_gingaboss_05_1")
    talkmsg("dp_scenario2%83-msg_d26r0104_gingaboss_05_2")
    talk_keywait("dp_scenario2%83-msg_d26r0104_gingaboss_05_3")
    talk_close()
    obj_anime("D26R0104_GINGABOSS", "anm_d26r0104_gingaboss_04")
    obj_anime_wait()
    obj_del("D26R0104_GINGABOSS")
    ldval(work: 122, 1.0)
    ldval(work: 249, 10400.0)
    event_end()
    end()

ev_d26r0104_item_event_ok:
    chg_common_scr("ev_item_event_keywait")
    ret()

ev_d26r0104_gingaboss_battle_lose:
    trainer_lose()
    event_end()
    end()

anm_c03gym0101_leader_01_face00:
    ac_face_index(0.0)
    acmd_end()

anm_c03gym0101_leader_01_face02:
    ac_face_index(2.0)
    acmd_end()

anm_hero_01:
    ac_up(1.0, 8.0)
    acmd_end()

anm_d26r0104_gingaboss_01:
    ac_dir_d(8.0)
    acmd_end()

anm_d26r0104_gingaboss_02:
    ac_dir_d(8.0)
    ac_down(1.0, 8.0)
    acmd_end()

anm_d26r0104_gingaboss_03:
    ac_dir_d(8.0)
    ac_down(1.0, 8.0)
    acmd_end()

anm_d26r0104_gingaboss_13:
    ac_dir_d(8.0)
    ac_down(1.0, 8.0)
    ac_dir_r(8.0)
    ac_right(1.0, 8.0)
    ac_dir_d(8.0)
    acmd_end()

anm_d26r0104_gingaboss_10:
    ac_dir_u(8.0)
    ac_up(1.0, 8.0)
    ac_dir_r(8.0)
    ac_right(4.0, 8.0)
    ac_dir_u(8.0)
    ac_up(3.0, 8.0)
    ac_dir_d(8.0)
    acmd_end()

anm_d26r0104_gingaboss_04:
    ac_dir_r(8.0)
    ac_right(7.0, 8.0)
    acmd_end()

ev_d26r0104_door:
    talk_obj_start()
    item_chk(440.0, 1.0, work: 246)
    ifval_jump(work: 246, "EQ", 1.0, "ev_d26r0104_door_02")
    talkmsg("dp_scenario2%83-msg_d26r0104_door_01")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()

ev_d26r0104_door_02:
    talkmsg("dp_scenario2%83-msg_d26r0104_door_02")
    yes_no_win(work: 246)
    ifval_jump(work: 246, "EQ", 0.0, "yes_d26r0104_door")
    ifval_jump(work: 246, "EQ", 1.0, "no_d26r0104_door")
    end()

yes_d26r0104_door:
    player_name(0.0)
    talkmsg("dp_scenario2%83-msg_d26r0104_door_03")
    last_keywait()
    se_wait("UI_COMMON_SELECT")
    se_play("SE_AZITO_DOOR_OPEN")
    set_door_obj("P_C_001_AutoDoor_01")
    hit_door_anime(0.0)
    hit_door_anime_wait()
    flag_set(flag: 491)
    talk_close()
    talk_obj_end()
    end()

no_d26r0104_door:
    talk_close()
    talk_obj_end()
    end()

ev_d26r0104_paper1:
    easy_obj_msg("dp_scenario2%83-msg_d26r0104_paper1_01")
    end()

ev_d26r0104_pc1:
    talk_start()
    talk_keywait("dp_scenario2%83-msg_d26r0104_pc_01")
    jump("ev_d26r0104_pc1_menu")
    end()

ev_d26r0104_pc1_menu:
    talkmsg("dp_scenario2%83-msg_d26r0104_pc_02")
    add_custum_win_label("dp_options%DP_options_268")
    add_custum_win_label("dp_options%DP_options_269")
    add_custum_win_label("dp_options%DP_options_270")
    add_custum_win_label("dp_options%DP_options_271")
    open_custum_win(work: 246)
    switch(work: 246)
    case_jump(0.0, "ev_d26r0104_pc_menu_01")
    case_jump(1.0, "ev_d26r0104_pc_menu_02")
    case_jump(2.0, "ev_d26r0104_pc_menu_03")
    jump("ev_d26r0104_pc_menu_cancel")
    end()

ev_d26r0104_pc_menu_01:
    talkmsg("dp_scenario2%83-msg_d26r0104_pc_03_1")
    talkmsg("dp_scenario2%83-msg_d26r0104_pc_03_2")
    talk_keywait("dp_scenario2%83-msg_d26r0104_pc_03_3")
    jump("ev_d26r0104_pc1_menu")
    end()

ev_d26r0104_pc_menu_02:
    talkmsg("dp_scenario2%83-msg_d26r0104_pc_04_1")
    talkmsg("dp_scenario2%83-msg_d26r0104_pc_04_2")
    talkmsg("dp_scenario2%83-msg_d26r0104_pc_04_3")
    talk_keywait("dp_scenario2%83-msg_d26r0104_pc_04_4")
    jump("ev_d26r0104_pc1_menu")
    end()

ev_d26r0104_pc_menu_03:
    talkmsg("dp_scenario2%83-msg_d26r0104_pc_05_1")
    talkmsg("dp_scenario2%83-msg_d26r0104_pc_05_2")
    talkmsg("dp_scenario2%83-msg_d26r0104_pc_05_3")
    talk_keywait("dp_scenario2%83-msg_d26r0104_pc_05_4")
    jump("ev_d26r0104_pc1_menu")
    end()

ev_d26r0104_pc_menu_cancel:
    talk_close()
    talk_end()
    end()