script set: c10r0103

code

ev_c10r0103_flag_change:
    if_flagon_jump(flag: 137, "ev_c10r0103_bigfour1_set1")
    if_flagoff_jump(flag: 137, "ev_c10r0103_bigfour1_set2")
    end()

ev_c10r0103_bigfour1_set1:
    if_flagoff_jump(flag: 1, "ev_c10r0103_bigfour1_set1_end")
    door_enable_set("C10R0103_D02", 0.0)
    door_enable_set("C10R0103_D01", 0.0)
    set_door_obj("C10R0103_D02")
    hit_door_anime(0.0)
    sxy_exit_pos_change(0.0, 7.0, 2.0)
    end()

ev_c10r0103_bigfour1_set1_end:
    end()

ev_c10r0103_bigfour1_set2:
    door_enable_set("C10R0103_D02", 0.0)
    door_enable_set("C10R0103_D01", 0.0)
    sxy_exit_pos_change(0.0, 7.0, 0.0)
    end()

ev_c10r0103_bigfour1:
    if_flagon_jump(flag: 137, "ev_c10r0103_bigfour1_02")
    bgm_play("EV214")
    if_flagon_jump(flag: 1336, "ev_c10r0103_bigfour1_pupl3")
    if_flagon_jump(flag: 1335, "ev_c10r0103_bigfour1_pupl2")
    talk_obj_start_look_none()
    event_start()
    black_out("SCR_WIPE_DIV", 3.0)
    fade_wait()
    call("ev_block_doc")
    obj_pos_change_world("HERO", -8.0, 0.0, 6.599999904632568)
    sxy_dir_change("HERO", 180.0)
    event_camera_index(85.0)
    black_in("SCR_WIPE_DIV", 3.0)
    fade_wait()
    talkmsg("dp_scenario3%20-msg_c10r0103_bigfour1_01_1")
    obj_anime("C10R0103_BIGFOUR1", "anm_c10r0103_bigfour1_face01")
    obj_anime_wait()
    talkmsg("dp_scenario3%20-msg_c10r0103_bigfour1_01_2")
    talk_close()
    obj_anime("C10R0103_BIGFOUR1", "anm_c10r0103_bigfour1_face00")
    obj_anime_wait()
    time_wait(15.0, work: 246)
    talk_keywait("dp_scenario3%20-msg_c10r0103_bigfour1_01_3")
    talk_close()
    event_camera_index(86.0)
    bgm_now_map_play()
    btl_encseq_load("league01")
    trainer_btl_set("BIGFOUR1_01", 0.0)
    call("ev_c10r0103_bigfour1_win_common")
    talkmsg("dp_scenario3%20-msg_c10r0103_bigfour1_02_1")
    talkmsg("dp_scenario3%20-msg_c10r0103_bigfour1_02_2")
    last_keywait()
    talk_close()
    call("ev_block_doc_end")
    call("ev_c10r0103_bigfour1_win_dooropen")
    talk_obj_end()
    event_end()
    end()

ev_c10r0103_bigfour1_win_common:
    flag_set(flag: 137)
    fnote_data_make("FNOTE_ID_SITENNOU", "BIGFOUR1_01", 0.0, 0.0, 0.0)
    ret()

ev_c10r0103_bigfour1_win_dooropen:
    set_door_obj("C10R0103_D02")
    hit_door_anime(0.0)
    se_play("S_FI116")
    hit_door_anime_wait()
    sxy_exit_pos_change(0.0, 7.0, 2.0)
    flag_set(flag: 1)
    ret()

anm_c10r0103_bigfour1_face00:
    ac_face_index(0.0)
    acmd_end()

anm_c10r0103_bigfour1_face01:
    ac_face_index(1.0)
    acmd_end()

ev_c10r0103_bigfour1_pupl2:
    talk_obj_start()
    event_start()
    talkmsg("dp_scenario3%20-msg_c10r0103_bigfour1_11_1")
    talk_close()
    bgm_now_map_play()
    trainer_btl_set("BIGFOUR1_02", 0.0)
    trainer_lose_check(work: 246)
    ifval_jump(work: 246, "EQ", 0.0, "ev_c10r0103_common_battle_lose")
    call("ev_c10r0103_bigfour1_win_common")
    talkmsg("dp_scenario3%20-msg_c10r0103_bigfour1_11_2")
    last_keywait()
    talk_close()
    talk_obj_end()
    call("ev_block_doc_end")
    call("ev_c10r0103_bigfour1_win_dooropen")
    talk_obj_end()
    event_end()
    end()

ev_c10r0103_bigfour1_pupl3:
    talk_obj_start()
    event_start()
    player_name(0.0)
    talkmsg("dp_scenario3%20-msg_c10r0103_bigfour1_21_1")
    talk_close()
    bgm_now_map_play()
    trainer_btl_set("BIGFOUR1_03", 0.0)
    trainer_lose_check(work: 246)
    ifval_jump(work: 246, "EQ", 0.0, "ev_c10r0103_common_battle_lose")
    call("ev_c10r0103_bigfour1_win_common")
    talkmsg("dp_scenario3%20-msg_c10r0103_bigfour1_21_2")
    last_keywait()
    talk_close()
    call("ev_block_doc_end")
    call("ev_c10r0103_bigfour1_win_dooropen")
    talk_obj_end()
    event_end()
    end()

ev_c10r0103_common_battle_lose:
    trainer_lose()
    talk_obj_end()
    event_end()
    end()

ev_c10r0103_bigfour1_02:
    talk_obj_start()
    if_flagon_jump(flag: 1336, "ev_c10r0103_bigfour1_pupl3w")
    if_flagon_jump(flag: 1335, "ev_c10r0103_bigfour1_pupl2w")
    talkmsg("dp_scenario3%20-msg_c10r0103_bigfour1_03")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()

ev_c10r0103_bigfour1_pupl2w:
    talkmsg("dp_scenario3%20-msg_c10r0103_bigfour1_11_3")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()

ev_c10r0103_bigfour1_pupl3w:
    talkmsg("dp_scenario3%20-msg_c10r0103_bigfour1_21_3")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()

ev_c10r0103_room_in:
    event_start()
    set_door_obj("C10R0103_D01")
    hit_door_anime(0.0)
    se_play("S_FI116")
    obj_anime("HERO", "anm_c10r0103_roomin_01")
    obj_anime_wait()
    se_play("SEQ_SE_DP_KI_GASYAN")
    flag_reset("C10R0103_D01")
    se_play("S_FI117")
    hit_door_anime(1.0)
    hit_door_anime_wait()
    door_enable_set("C10R0103_D02", 0.0)
    door_enable_set("C10R0103_D01", 0.0)
    sxy_exit_pos_change(0.0, 7.0, 0.0)
    ldval(work: 417, 2.0)
    event_end()
    end()

anm_c10r0103_roomin_01:
    ac_dir_u(4.0)
    ac_up(2.0, 8.0)
    ac_wait(16.0)
    acmd_end()