script set: c11

code

ev_c11_flag_change:
    zenkoku_zukan_flag(2.0, work: 0)
    ifval_call(work: 0, "EQ", 1.0, "ev_c11_flag_change_stoprer_non")
    ifval_jump(work: 90, "GE", 1.0, "ev_c11_rival_game_clear_02")
    end()

ev_c11_flag_change_stoprer_non:
    set_sys_flag(sys_flag: 775)
    ret()

ev_c11_rival_game_clear_02:
    flag_set(flag: 408)
    ifval_jump(work: 178, "GE", 1.0, "ev_c11_rival_game_clear_03")
    end()

ev_c11_rival_game_clear_03:
    chk_week(work: 0)
    ifval_jump(work: 0, "EQ", 0.0, "ev_c11_rival_geme_clear_04")
    ifval_jump(work: 0, "EQ", 6.0, "ev_c11_rival_geme_clear_04")
    end()

ev_c11_rival_geme_clear_04:
    sxy_pos_change("C11_RIVAL", 658.0, 430.0)
    sxy_mv_change("C11_RIVAL", "MV_DOWN")
    sxy_dir_change("C11_RIVAL", 1.0)
    flag_reset(flag: 408)
    end()

ev_c11_rival:
    event_start()
    obj_anime("C11_RIVAL", "anm_c11_rival_00")
    obj_anime_wait()
    obj_anime("C11_RIVAL", "anm_c11_rival_00_g")
    obj_anime_wait()
    obj_anime("HERO", "anm_c11_player_01")
    event_camera_index(552.0)
    event_camera_end_wait()
    obj_anime_wait()
    rival_name(0.0)
    player_name(1.0)
    talkmsg("dp_scenario3%31-msg_c11_rival_01_1")
    talk_keywait("dp_scenario3%31-msg_c11_rival_01_2")
    talk_close()
    obj_anime("C11_SEVEN2", "anm_c11_seven2_01")
    obj_anime("C11_RIVAL", "anm_c11_rival_02")
    obj_anime_wait()
    talkmsg("dp_scenario3%31-msg_c11_seven2_01_1")
    talkmsg("dp_scenario3%31-msg_c11_seven2_01_2")
    talk_keywait("dp_scenario3%31-msg_c11_seven2_01_3")
    obj_anime("C11_RIVAL", "anm_c11_rival_03")
    obj_anime_wait()
    rival_name(0.0)
    player_name(1.0)
    talkmsg("dp_scenario3%31-msg_c11_rival_02_1")
    talk_keywait("dp_scenario3%31-msg_c11_rival_02_2")
    talk_close()
    obj_anime("C11_RIVAL", "anm_c11_rival_04")
    obj_anime("C11_SEVEN2", "anm_c11_seven2_02")
    obj_anime_wait()
    obj_del("C11_RIVAL")
    talk_keywait("dp_scenario3%31-msg_c11_seven2_02")
    talk_close()
    obj_anime("C11_SEVEN2", "anm_c11_seven2_03")
    obj_anime_wait()
    talkmsg("dp_scenario3%31-msg_c11_seven2_03_1")
    talkmsg("dp_scenario3%31-msg_c11_seven2_03_2")
    talk_keywait("dp_scenario3%31-msg_c11_seven2_03_3")
    talk_close()
    obj_anime("C11_SEVEN2", "anm_c11_seven2_04")
    event_camera_index(553.0)
    event_camera_end_wait()
    obj_anime_wait()
    obj_del("C11_SEVEN2")
    ldval(work: 63, 2.0)
    ifval_call(work: 249, "NE", 13200.0, "ev_c11_guide_upd")
    event_end()
    end()

ev_c11_guide_upd:
    ldval(work: 249, 12900.0)
    ret()

anm_c11_rival_00:
    ac_dir_l(8.0)
    acmd_end()

anm_c11_rival_00_g:
    ac_mark_gyoe(1.0)
    acmd_end()

anm_c11_rival_01:
    ac_dir_l(4.0)
    ac_left(1.0, 8.0)
    acmd_end()

anm_c11_rival_02:
    ac_wait(32.0)
    ac_dir_r(8.0)
    acmd_end()

anm_c11_rival_03:
    ac_dir_r(4.0)
    ac_dir_r(4.0)
    acmd_end()

anm_c11_rival_04:
    ac_dir_d(4.0)
    ac_down(1.0, 4.0)
    ac_dir_r(4.0)
    ac_right(2.0, 4.0)
    ac_dir_u(4.0)
    ac_up(1.0, 4.0)
    ac_dir_r(4.0)
    ac_right(9.0, 4.0)
    acmd_end()

anm_c11_player_01:
    ac_dir_r(4.0)
    ac_right(2.0, 4.0)
    acmd_end()

anm_c11_player_02:
    ac_wait(24.0)
    ac_dir_u(4.0)
    acmd_end()

anm_c11_player_03:
    ac_dir_r(8.0)
    acmd_end()

anm_c11_player_40:
    ac_wait(8.0)
    ac_dir_u(8.0)
    acmd_end()

anm_c11_seven2_01:
    ac_dir_l(8.0)
    ac_left(2.0, 8.0)
    ac_dir_d(8.0)
    ac_down(2.0, 8.0)
    ac_dir_l(8.0)
    ac_left(1.0, 8.0)
    acmd_end()

anm_c11_seven2_02:
    ac_wait(8.0)
    ac_dir_d(8.0)
    ac_wait(8.0)
    ac_dir_r(8.0)
    acmd_end()

anm_c11_seven2_03:
    ac_dir_l(8.0)
    acmd_end()

anm_c11_seven2_04:
    ac_dir_r(4.0)
    ac_right(9.0, 8.0)
    acmd_end()

ev_c11_man3:
    easy_obj_msg("dp_scenario3%31-msg_c11_man3_01")
    end()

ev_c11_woman3:
    easy_obj_msg("dp_scenario3%31-msg_c11_woman3_01")
    end()

ev_c11_man1:
    easy_obj_msg("dp_scenario3%31-msg_c11_man1_01")
    end()

ev_c11_babygirl1:
    easy_obj_msg("dp_scenario3%31-msg_c11_babygirl1_01")
    end()

ev_c11_girl2:
    easy_obj_msg("dp_scenario3%31-msg_c11_girl2_01")
    end()

ev_c11_fighter1:
    easy_obj_msg("dp_scenario3%31-msg_c11_fighter_01")
    end()

ev_c11_seaman:
    easy_obj_msg("dp_scenario3%31-msg_c11_seaman1_01")
    end()

ev_c11_fishing:
    talk_obj_start()
    ldval(work: 238, 447.0)
    ldval(work: 239, 1.0)
    item_name(0.0, work: 238, work: 239)
    if_flagon_jump(flag: 70, "ev_c11_fishing_05")
    talkmsg("dp_scenario3%31-msg_c11_fishing_01")
    yes_no_win(work: 246)
    ifval_jump(work: 246, "EQ", 1.0, "no_c11_fishing")
    talk_keywait("dp_scenario3%31-msg_c11_fishing_02")
    chg_common_scr("ev_item_event_keywait")
    flag_set(flag: 70)
    flag_set(flag: 1303)
    talkmsg("dp_scenario3%31-msg_c11_fishing_03")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()

no_c11_fishing:
    talkmsg("dp_scenario3%31-msg_c11_fishing_04")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()

ev_c11_fishing_05:
    talkmsg("dp_scenario3%31-msg_c11_fishing_05")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()

ev_c11_sign1:
    easy_board_msg("dp_scenario3%31-msg_c11_sign1_01", "BOARD_TYPE_TOWN", 0.0)
    end()

ev_c11_sign2:
    easy_board_msg("dp_scenario3%31-msg_c11_sign2_01", "BOARD_TYPE_ROAD", 0.0, 3.0)
    end()

ev_c11_sign3:
    easy_board_msg("dp_scenario3%31-msg_c11_sign3_01", "BOARD_TYPE_ROAD", 0.0, 3.0)
    end()

ev_c11_ship:
    talk_obj_start()
    turn_hero_site()
    player_dir_get(work: 238)
    talkmsg("dp_scenario3%31-msg_c11_seaman_01")
    yes_no_win(work: 246)
    ifval_jump(work: 246, "EQ", 0.0, "ev_c11_ship_in")
    ifval_jump(work: 246, "EQ", 1.0, "ev_c11_ship_end")
    end()

ev_c11_ship_end:
    talkmsg("dp_scenario3%31-msg_c11_seaman_03")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()

ev_c11_ship_in:
    talk_keywait("dp_scenario3%31-msg_c11_seaman_02")
    talk_close()
    call("ev_c11_seaman02_ship_in")
    get_rel_pos_hero("C11_SEAMAN_02", work: 240)
    ifval_call(work: 240, "EQ", 7.0, "ev_c11_player_ship_in_007")
    ifval_call(work: 240, "EQ", 8.0, "ev_c11_player_ship_in_008")
    ifval_call(work: 240, "EQ", 9.0, "ev_c11_player_ship_in_009")
    ifval_call(work: 240, "EQ", 4.0, "ev_c11_player_ship_in_r")
    ifval_call(work: 240, "EQ", 6.0, "ev_c11_player_ship_in_l")
    ldval(work: 243, 104.0)
    map_change("SEA01", 0.0)
    talk_obj_end()
    end()

ev_c11_seaman02_ship_in:
    obj_anime("C11_SEAMAN_02", "anm_c11_ship_seaman_02")
    obj_anime_wait()
    se_play("S_FI001")
    obj_anime("C11_SEAMAN_02", "anm_c11_ship_vanish_in")
    obj_anime_wait()
    ret()

ev_c11_player_ship_in_007:
    obj_anime("HERO", "anm_c11_ship_player_d7")
    obj_anime_wait()
    se_play("S_FI001")
    obj_anime("HERO", "anm_c11_ship_vanish_in")
    obj_anime_wait()
    ret()

ev_c11_player_ship_in_008:
    obj_anime("HERO", "anm_c11_ship_player_d8")
    obj_anime_wait()
    se_play("S_FI001")
    obj_anime("HERO", "anm_c11_ship_vanish_in")
    obj_anime_wait()
    ret()

ev_c11_player_ship_in_009:
    obj_anime("HERO", "anm_c11_ship_player_d9")
    obj_anime_wait()
    se_play("S_FI001")
    obj_anime("HERO", "anm_c11_ship_vanish_in")
    obj_anime_wait()
    ret()

ev_c11_player_ship_in_r:
    obj_anime("HERO", "anm_c11_ship_player_r")
    obj_anime_wait()
    se_play("S_FI001")
    obj_anime("HERO", "anm_c11_ship_vanish_in")
    obj_anime_wait()
    ret()

ev_c11_player_ship_in_l:
    obj_anime("HERO", "anm_c11_ship_player_l")
    obj_anime_wait()
    se_play("S_FI001")
    obj_anime("HERO", "anm_c11_ship_vanish_in")
    obj_anime_wait()
    ret()

anm_c11_ship_seaman_02:
    ac_dir_d(8.0)
    ac_wait(16.0)
    acmd_end()

anm_c11_ship_vanish_in:
    ac_vanish_on(1.0)
    acmd_end()

anm_c11_ship_player_d7:
    ac_dir_r(8.0)
    ac_right(1.0, 8.0)
    ac_dir_d(8.0)
    ac_down(1.0, 8.0)
    ac_wait(16.0)
    acmd_end()

anm_c11_ship_player_d8:
    ac_dir_d(8.0)
    ac_down(1.0, 8.0)
    ac_wait(16.0)
    acmd_end()

anm_c11_ship_player_d9:
    ac_dir_l(8.0)
    ac_left(1.0, 8.0)
    ac_dir_d(8.0)
    ac_down(1.0, 8.0)
    ac_wait(16.0)
    acmd_end()

anm_c11_ship_player_r:
    ac_dir_r(8.0)
    ac_right(1.0, 8.0)
    ac_dir_d(8.0)
    ac_down(1.0, 8.0)
    ac_wait(16.0)
    acmd_end()

anm_c11_ship_player_l:
    ac_dir_l(8.0)
    ac_left(1.0, 8.0)
    ac_dir_d(8.0)
    ac_down(1.0, 8.0)
    ac_wait(16.0)
    acmd_end()

ev_c11_rival_game_clear:
    talk_obj_start()
    if_flagon_jump(flag: 1133, "ev_c11_rival_win")
    rival_name(0.0)
    player_name(1.0)
    talk_keywait("dp_scenario3%31-msg_c11_rival_a_01")
    talk_close()
    first_poke_no_get(work: 246)
    ifval_jump(work: 246, "EQ", 387.0, "ev_c11_rival_02")
    ifval_jump(work: 246, "EQ", 390.0, "ev_c11_rival_03")
    jump("ev_c11_rival_01")
    jump("ev_c11_rival_01")

ev_c11_rival_01:
    dendou_num_get(work: 246)
    ifval_jump(work: 246, "LT", 20.0, "ev_c11_rival_01_lvup_before")
    ifval_jump(work: 246, "GE", 20.0, "ev_c11_rival_01_lvup_after")
    end()

ev_c11_rival_01_lvup_before:
    trainer_btl_set("RIVAL_19", 0.0)
    jump("ev_c11_rival_btl_coomon")
    jump("ev_c11_rival_02")

ev_c11_rival_01_lvup_after:
    trainer_btl_set("RIVAL_22", 0.0)
    jump("ev_c11_rival_btl_coomon")
    jump("ev_c11_rival_02")

ev_c11_rival_02:
    dendou_num_get(work: 246)
    ifval_jump(work: 246, "LT", 20.0, "ev_c11_rival_02_lvup_before")
    ifval_jump(work: 246, "GE", 20.0, "ev_c11_rival_02_lvup_after")
    end()

ev_c11_rival_02_lvup_before:
    trainer_btl_set("RIVAL_20", 0.0)
    jump("ev_c11_rival_btl_coomon")
    jump("ev_c11_rival_03")

ev_c11_rival_02_lvup_after:
    trainer_btl_set("RIVAL_23", 0.0)
    jump("ev_c11_rival_btl_coomon")
    jump("ev_c11_rival_03")

ev_c11_rival_03:
    dendou_num_get(work: 246)
    ifval_jump(work: 246, "LT", 20.0, "ev_c11_rival_03_lvup_before")
    ifval_jump(work: 246, "GE", 20.0, "ev_c11_rival_03_lvup_after")
    end()

ev_c11_rival_03_lvup_before:
    trainer_btl_set("RIVAL_21", 0.0)
    jump("ev_c11_rival_btl_coomon")
    jump("ev_c11_rival_win")

ev_c11_rival_03_lvup_after:
    trainer_btl_set("RIVAL_24", 0.0)
    jump("ev_c11_rival_btl_coomon")
    jump("ev_c11_rival_win")

ev_c11_rival_btl_coomon:
    trainer_lose_check(work: 246)
    ifval_jump(work: 246, "EQ", 0.0, "ev_c11_rival_battle_lose")
    flag_set(flag: 1133)
    jump("ev_c11_rival_win")
    jump("ev_c11_rival_win")

ev_c11_rival_win:
    rival_name(0.0)
    player_name(1.0)
    talkmsg("dp_scenario3%31-msg_c11_rival_a_02_1")
    talk_keywait("dp_scenario3%31-msg_c11_rival_a_02_2")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()

ev_c11_rival_battle_lose:
    trainer_lose()
    event_end()
    end()

ev_c11_stop_01:
    easy_obj_msg("dp_scenario3%31-msg_c11_stop_01")
    end()

ev_c11_stop_02:
    easy_obj_msg("dp_scenario3%31-msg_c11_stop_02")
    end()