script set: r213r0201

code

ev_r213r0201_flag_change:
    arrive_flag_set(sys_flag: 521)
    end()

ev_r213r0201_footmark:
    talk_obj_start()
    front_pokemon(work: 236)
    pokemon_name(0.0, work: 236)
    player_name(1.0)
    nick_name(2.0, work: 236)
    ashiato_chk(work: 234, work: 235, work: 236)
    if_flagon_jump(flag: 209, "ev_footmark_02")
    flag_set(flag: 209)
    talk_keywait("dp_scenario2%146-msg_footmark_01_1")
    talk_keywait("dp_scenario2%146-msg_footmark_01_2")
    talk_close()
    jump("ev_footmark_move_01")
    jump("anm_call_footmark_back_l")

ev_footmark_02:
    talk_keywait("dp_scenario2%146-msg_footmark_02")
    talk_close()
    jump("ev_footmark_move_01")
    jump("anm_call_footmark_back_l")

ev_footmark_move_01:
    black_out("SCR_WIPE_DIV", "SCR_WIPE_SYNC")
    wipe_fade_end_check()
    time_wait(40.0, work: 246)
    black_in("SCR_WIPE_DIV", "SCR_WIPE_SYNC")
    wipe_fade_end_check()
    call("ev_futomaki_move_back")
    time_wait(20.0, work: 246)
    jump("ev_footmark_chk_01")
    jump("anm_call_footmark_back_l")

ev_futomaki_move_back:
    player_pos_get(work: 239, work: 240)
    ifval_jump(work: 239, "EQ", 4.0, "anm_call_footmark_back_l")
    ifval_jump(work: 239, "EQ", 5.0, "anm_call_footmark_back_r")
    ifval_jump(work: 240, "EQ", 5.0, "anm_call_footmark_back_u")
    jump("anm_call_footmark_back_d")
    jump("anm_call_footmark_back_l")

anm_call_footmark_back_l:
    obj_anime("R213R0101_FOOTMARK_01", "anm_footmark_back_l")
    obj_anime_wait()
    ret()

anm_call_footmark_back_r:
    obj_anime("R213R0101_FOOTMARK_01", "anm_footmark_back_r")
    obj_anime_wait()
    ret()

anm_call_footmark_back_u:
    obj_anime("R213R0101_FOOTMARK_01", "anm_footmark_back_u")
    obj_anime_wait()
    ret()

anm_call_footmark_back_d:
    obj_anime("R213R0101_FOOTMARK_01", "anm_footmark_back_d")
    obj_anime_wait()
    ret()

ev_futomaki_move_forward:
    player_pos_get(work: 239, work: 240)
    ifval_jump(work: 239, "EQ", 4.0, "anm_call_footmark_forward_l")
    ifval_jump(work: 239, "EQ", 5.0, "anm_call_footmark_forward_r")
    ifval_jump(work: 240, "EQ", 5.0, "anm_call_footmark_forward_u")
    jump("anm_call_footmark_forward_d")
    jump("anm_call_footmark_forward_l")

anm_call_footmark_forward_l:
    obj_anime("R213R0101_FOOTMARK_01", "anm_footmark_forward_l")
    obj_anime_wait()
    ret()

anm_call_footmark_forward_r:
    obj_anime("R213R0101_FOOTMARK_01", "anm_footmark_forward_r")
    obj_anime_wait()
    ret()

anm_call_footmark_forward_u:
    obj_anime("R213R0101_FOOTMARK_01", "anm_footmark_forward_u")
    obj_anime_wait()
    ret()

anm_call_footmark_forward_d:
    obj_anime("R213R0101_FOOTMARK_01", "anm_footmark_forward_d")
    obj_anime_wait()
    ret()

ev_footmark_chk_01:
    ifval_jump(work: 235, "EQ", 1.0, "ev_footmark_kawaii")
    ifval_jump(work: 235, "EQ", 2.0, "ev_footmark_kakkoii")
    ifval_jump(work: 235, "EQ", 3.0, "ev_footmark_kowai")
    ifval_jump(work: 235, "EQ", 4.0, "ev_footmark_otoboke")
    jump("ev_footmark_un_01")
    jump("ev_footmark_03")

ev_footmark_kawaii:
    ifval_jump(work: 234, "EQ", 1.0, "ev_footmark_kawaii_ashi_ari")
    jump("ev_footmark_kawaii_ashi_nashi")
    jump("ev_footmark_03")

ev_footmark_kakkoii:
    ifval_jump(work: 234, "EQ", 1.0, "ev_footmark_kakkoii_ashi_ari")
    jump("ev_footmark_kakkoii_ashi_nashi")
    jump("ev_footmark_03")

ev_footmark_kowai:
    ifval_jump(work: 234, "EQ", 1.0, "ev_footmark_kowai_ashi_ari")
    jump("ev_footmark_kowai_ashi_nashi")
    jump("ev_footmark_03")

ev_footmark_otoboke:
    ifval_jump(work: 234, "EQ", 1.0, "ev_footmark_otoboke_ashi_ari")
    jump("ev_footmark_otoboke_ashi_nashi")
    jump("ev_footmark_03")

ev_footmark_kawaii_ashi_ari:
    poke_lvup_how_many(work: 236, work: 246)
    ifval_jump(work: 246, "GE", 30.0, "ev_footmark_a1_05")
    ifval_jump(work: 246, "GE", 20.0, "ev_footmark_a1_04")
    ifval_jump(work: 246, "GE", 10.0, "ev_footmark_a1_03")
    ifval_jump(work: 246, "GE", 5.0, "ev_footmark_a1_02")
    jump("ev_footmark_a1_01")
    jump("ev_footmark_03")

ev_footmark_kawaii_ashi_nashi:
    poke_lvup_how_many(work: 236, work: 246)
    ifval_jump(work: 246, "GE", 30.0, "ev_footmark_a2_05")
    ifval_jump(work: 246, "GE", 20.0, "ev_footmark_a2_04")
    ifval_jump(work: 246, "GE", 10.0, "ev_footmark_a2_03")
    ifval_jump(work: 246, "GE", 5.0, "ev_footmark_a2_02")
    jump("ev_footmark_a2_01")
    jump("ev_footmark_03")

ev_footmark_kakkoii_ashi_ari:
    poke_lvup_how_many(work: 236, work: 246)
    ifval_jump(work: 246, "GE", 30.0, "ev_footmark_b1_05")
    ifval_jump(work: 246, "GE", 20.0, "ev_footmark_b1_04")
    ifval_jump(work: 246, "GE", 10.0, "ev_footmark_b1_03")
    ifval_jump(work: 246, "GE", 5.0, "ev_footmark_b1_02")
    jump("ev_footmark_b1_01")
    jump("ev_footmark_03")

ev_footmark_kakkoii_ashi_nashi:
    poke_lvup_how_many(work: 236, work: 246)
    ifval_jump(work: 246, "GE", 30.0, "ev_footmark_b2_05")
    ifval_jump(work: 246, "GE", 20.0, "ev_footmark_b2_04")
    ifval_jump(work: 246, "GE", 10.0, "ev_footmark_b2_03")
    ifval_jump(work: 246, "GE", 5.0, "ev_footmark_b2_02")
    jump("ev_footmark_b2_01")
    jump("ev_footmark_03")

ev_footmark_kowai_ashi_ari:
    poke_lvup_how_many(work: 236, work: 246)
    ifval_jump(work: 246, "GE", 30.0, "ev_footmark_c1_05")
    ifval_jump(work: 246, "GE", 20.0, "ev_footmark_c1_04")
    ifval_jump(work: 246, "GE", 10.0, "ev_footmark_c1_03")
    ifval_jump(work: 246, "GE", 5.0, "ev_footmark_c1_02")
    jump("ev_footmark_c1_01")
    jump("ev_footmark_03")

ev_footmark_kowai_ashi_nashi:
    poke_lvup_how_many(work: 236, work: 246)
    ifval_jump(work: 246, "GE", 30.0, "ev_footmark_c2_05")
    ifval_jump(work: 246, "GE", 20.0, "ev_footmark_c2_04")
    ifval_jump(work: 246, "GE", 10.0, "ev_footmark_c2_03")
    ifval_jump(work: 246, "GE", 5.0, "ev_footmark_c2_02")
    jump("ev_footmark_c2_01")
    jump("ev_footmark_03")

ev_footmark_otoboke_ashi_ari:
    poke_lvup_how_many(work: 236, work: 246)
    ifval_jump(work: 246, "GE", 30.0, "ev_footmark_d1_05")
    ifval_jump(work: 246, "GE", 20.0, "ev_footmark_d1_04")
    ifval_jump(work: 246, "GE", 10.0, "ev_footmark_d1_03")
    ifval_jump(work: 246, "GE", 5.0, "ev_footmark_d1_02")
    jump("ev_footmark_d1_01")
    jump("ev_footmark_03")

ev_footmark_otoboke_ashi_nashi:
    poke_lvup_how_many(work: 236, work: 246)
    ifval_jump(work: 246, "GE", 30.0, "ev_footmark_d2_05")
    ifval_jump(work: 246, "GE", 20.0, "ev_footmark_d2_04")
    ifval_jump(work: 246, "GE", 10.0, "ev_footmark_d2_03")
    ifval_jump(work: 246, "GE", 5.0, "ev_footmark_d2_02")
    jump("ev_footmark_d2_01")
    jump("ev_footmark_03")

ev_footmark_a1_01:
    talk_keywait("dp_scenario2%146-msg_footmark_a1_01_1")
    jump("ev_footmark_03")
    jump("ev_footmark_03")

ev_footmark_a1_02:
    talk_keywait("dp_scenario2%146-msg_footmark_a1_02")
    jump("ev_footmark_03")
    jump("ev_footmark_03")

ev_footmark_a1_03:
    talk_keywait("dp_scenario2%146-msg_footmark_a1_03")
    jump("ev_footmark_03")
    jump("ev_footmark_03")

ev_footmark_a1_04:
    talk_keywait("dp_scenario2%146-msg_footmark_a1_04")
    jump("ev_footmark_03")
    jump("ev_footmark_03")

ev_footmark_a1_05:
    talk_keywait("dp_scenario2%146-msg_footmark_a1_05")
    jump("ev_footmark_ashi_ari_ribbon_chk")
    jump("ev_footmark_03")

ev_footmark_a2_01:
    talk_keywait("dp_scenario2%146-msg_footmark_a2_01")
    jump("ev_footmark_04")
    jump("ev_footmark_03")

ev_footmark_a2_02:
    talk_keywait("dp_scenario2%146-msg_footmark_a2_02")
    jump("ev_footmark_04")
    jump("ev_footmark_03")

ev_footmark_a2_03:
    talk_keywait("dp_scenario2%146-msg_footmark_a2_03")
    jump("ev_footmark_04")
    jump("ev_footmark_03")

ev_footmark_a2_04:
    talk_keywait("dp_scenario2%146-msg_footmark_a2_04")
    jump("ev_footmark_04")
    jump("ev_footmark_03")

ev_footmark_a2_05:
    talk_keywait("dp_scenario2%146-msg_footmark_a2_05")
    jump("ev_footmark_ashi_nashi_ribbon_chk")
    jump("ev_footmark_03")

ev_footmark_b1_01:
    talk_keywait("dp_scenario2%146-msg_footmark_b1_01_1")
    talk_keywait("dp_scenario2%146-msg_footmark_b1_01_2")
    jump("ev_footmark_03")
    jump("ev_footmark_03")

ev_footmark_b1_02:
    talk_keywait("dp_scenario2%146-msg_footmark_b1_02_1")
    talk_keywait("dp_scenario2%146-msg_footmark_b1_02_2")
    jump("ev_footmark_03")
    jump("ev_footmark_03")

ev_footmark_b1_03:
    talk_keywait("dp_scenario2%146-msg_footmark_b1_03_1")
    talk_keywait("dp_scenario2%146-msg_footmark_b1_03_2")
    talk_keywait("dp_scenario2%146-msg_footmark_b1_03_3")
    jump("ev_footmark_03")
    jump("ev_footmark_03")

ev_footmark_b1_04:
    talk_keywait("dp_scenario2%146-msg_footmark_b1_04_1")
    talk_keywait("dp_scenario2%146-msg_footmark_b1_04_2")
    jump("ev_footmark_03")
    jump("ev_footmark_03")

ev_footmark_b1_05:
    talk_keywait("dp_scenario2%146-msg_footmark_b1_05_1")
    talk_keywait("dp_scenario2%146-msg_footmark_b1_05_2")
    jump("ev_footmark_ashi_ari_ribbon_chk")
    jump("ev_footmark_03")

ev_footmark_b2_01:
    talk_keywait("dp_scenario2%146-msg_footmark_b2_01")
    jump("ev_footmark_04")
    jump("ev_footmark_03")

ev_footmark_b2_02:
    talk_keywait("dp_scenario2%146-msg_footmark_b2_02")
    jump("ev_footmark_04")
    jump("ev_footmark_03")

ev_footmark_b2_03:
    talk_keywait("dp_scenario2%146-msg_footmark_b2_03")
    jump("ev_footmark_04")
    jump("ev_footmark_03")

ev_footmark_b2_04:
    talk_keywait("dp_scenario2%146-msg_footmark_b2_04")
    jump("ev_footmark_04")
    jump("ev_footmark_03")

ev_footmark_b2_05:
    talk_keywait("dp_scenario2%146-msg_footmark_b2_05")
    jump("ev_footmark_ashi_nashi_ribbon_chk")
    jump("ev_footmark_03")

ev_footmark_c1_01:
    talk_keywait("dp_scenario2%146-msg_footmark_c1_01_1")
    talk_keywait("dp_scenario2%146-msg_footmark_c1_01_2")
    jump("ev_footmark_03")
    jump("ev_footmark_03")

ev_footmark_c1_02:
    talk_keywait("dp_scenario2%146-msg_footmark_c1_02_1")
    talk_keywait("dp_scenario2%146-msg_footmark_c1_02_2")
    jump("ev_footmark_03")
    jump("ev_footmark_03")

ev_footmark_c1_03:
    talk_keywait("dp_scenario2%146-msg_footmark_c1_03")
    jump("ev_footmark_03")
    jump("ev_footmark_03")

ev_footmark_c1_04:
    talk_keywait("dp_scenario2%146-msg_footmark_c1_04_1")
    talk_keywait("dp_scenario2%146-msg_footmark_c1_04_2")
    jump("ev_footmark_03")
    jump("ev_footmark_03")

ev_footmark_c1_05:
    talk_keywait("dp_scenario2%146-msg_footmark_c1_05_1")
    talk_keywait("dp_scenario2%146-msg_footmark_c1_05_2")
    jump("ev_footmark_ashi_ari_ribbon_chk")
    jump("ev_footmark_03")

ev_footmark_c2_01:
    talk_keywait("dp_scenario2%146-msg_footmark_c2_01")
    jump("ev_footmark_04")
    jump("ev_footmark_03")

ev_footmark_c2_02:
    talk_keywait("dp_scenario2%146-msg_footmark_c2_02")
    jump("ev_footmark_04")
    jump("ev_footmark_03")

ev_footmark_c2_03:
    talk_keywait("dp_scenario2%146-msg_footmark_c2_03")
    jump("ev_footmark_04")
    jump("ev_footmark_03")

ev_footmark_c2_04:
    talk_keywait("dp_scenario2%146-msg_footmark_c2_04")
    jump("ev_footmark_04")
    jump("ev_footmark_03")

ev_footmark_c2_05:
    talk_keywait("dp_scenario2%146-msg_footmark_c2_05_1")
    talk_keywait("dp_scenario2%146-msg_footmark_c2_05_2")
    jump("ev_footmark_ashi_nashi_ribbon_chk")
    jump("ev_footmark_03")

ev_footmark_d1_01:
    talk_keywait("dp_scenario2%146-msg_footmark_d1_01_1")
    talk_keywait("dp_scenario2%146-msg_footmark_d1_01_2")
    jump("ev_footmark_03")
    jump("ev_footmark_03")

ev_footmark_d1_02:
    talk_keywait("dp_scenario2%146-msg_footmark_d1_02_1")
    talk_keywait("dp_scenario2%146-msg_footmark_d1_02_2")
    jump("ev_footmark_03")
    jump("ev_footmark_03")

ev_footmark_d1_03:
    talk_keywait("dp_scenario2%146-msg_footmark_d1_03z_1")
    talk_keywait("dp_scenario2%146-msg_footmark_d1_03_2")
    jump("ev_footmark_03")
    jump("ev_footmark_03")

ev_footmark_d1_04:
    talk_keywait("dp_scenario2%146-msg_footmark_d1_04_1")
    talk_keywait("dp_scenario2%146-msg_footmark_d1_04_2")
    jump("ev_footmark_03")
    jump("ev_footmark_03")

ev_footmark_d1_05:
    talk_keywait("dp_scenario2%146-msg_footmark_d1_05_1")
    talk_keywait("dp_scenario2%146-msg_footmark_d1_05_2")
    jump("ev_footmark_ashi_ari_ribbon_chk")
    jump("ev_footmark_03")

ev_footmark_d2_01:
    talk_keywait("dp_scenario2%146-msg_footmark_d2_01")
    jump("ev_footmark_04")
    jump("ev_footmark_03")

ev_footmark_d2_02:
    talk_keywait("dp_scenario2%146-msg_footmark_d2_02")
    jump("ev_footmark_04")
    jump("ev_footmark_03")

ev_footmark_d2_03:
    talk_keywait("dp_scenario2%146-msg_footmark_d2_03")
    jump("ev_footmark_04")
    jump("ev_footmark_03")

ev_footmark_d2_04:
    talk_keywait("dp_scenario2%146-msg_footmark_d2_04")
    jump("ev_footmark_04")
    jump("ev_footmark_03")

ev_footmark_d2_05:
    talk_keywait("dp_scenario2%146-msg_footmark_d2_05")
    jump("ev_footmark_ashi_nashi_ribbon_chk")
    jump("ev_footmark_03")

ev_footmark_ashi_ari_ribbon_chk:
    chk_ribbon(work: 246, work: 236, 19.0)
    ifval_jump(work: 246, "EQ", 0.0, "ev_footmark_06")
    jump("ev_footmark_03")
    jump("ev_footmark_03")

ev_footmark_ashi_nashi_ribbon_chk:
    chk_ribbon(work: 246, work: 236, 19.0)
    ifval_jump(work: 246, "EQ", 0.0, "ev_footmark_07")
    jump("ev_footmark_04")
    jump("ev_footmark_03")

ev_footmark_un_01:
    talk_keywait("dp_scenario2%146-msg_footmark_un_01")
    get_natsuki(work: 246, work: 236, -1.0)
    ifval_jump(work: 246, "LT", 255.0, "ev_footmark_05")
    chk_ribbon(work: 246, work: 236, 19.0)
    ifval_jump(work: 246, "EQ", 0.0, "ev_footmark_08")
    jump("ev_footmark_05")
    jump("ev_footmark_03")

ev_footmark_03:
    talk_close()
    time_wait(20.0, work: 246)
    call("ev_futomaki_move_forward")
    time_wait(10.0, work: 246)
    talkmsg("dp_scenario2%146-msg_footmark_03")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()

ev_footmark_04:
    talk_close()
    time_wait(20.0, work: 246)
    call("ev_futomaki_move_forward")
    time_wait(10.0, work: 246)
    talkmsg("dp_scenario2%146-msg_footmark_04")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()

ev_footmark_05:
    talk_close()
    time_wait(20.0, work: 246)
    call("ev_futomaki_move_forward")
    time_wait(10.0, work: 246)
    talkmsg("dp_scenario2%146-msg_footmark_05")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()

ev_footmark_06:
    talk_close()
    time_wait(20.0, work: 246)
    call("ev_futomaki_move_forward")
    time_wait(10.0, work: 246)
    talk_keywait("dp_scenario2%146-msg_footmark_06")
    me_play("M_FI010")
    talk_keywait("dp_scenario2%146-msg_footmark_09")
    me_wait()
    set_ribbon(work: 236, 19.0)
    talk_keywait("dp_scenario2%146-msg_footmark_10")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()

ev_footmark_07:
    talk_close()
    time_wait(20.0, work: 246)
    call("ev_futomaki_move_forward")
    time_wait(10.0, work: 246)
    talk_keywait("dp_scenario2%146-msg_footmark_07_1")
    talk_keywait("dp_scenario2%146-msg_footmark_07_2")
    me_play("M_FI010")
    talk_keywait("dp_scenario2%146-msg_footmark_09")
    me_wait()
    set_ribbon(work: 236, 19.0)
    talk_keywait("dp_scenario2%146-msg_footmark_10")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()

ev_footmark_08:
    talk_close()
    time_wait(20.0, work: 246)
    call("ev_futomaki_move_forward")
    time_wait(10.0, work: 246)
    talk_keywait("dp_scenario2%146-msg_footmark_08")
    me_play("M_FI010")
    talk_keywait("dp_scenario2%146-msg_footmark_09")
    me_wait()
    set_ribbon(work: 236, 19.0)
    talk_keywait("dp_scenario2%146-msg_footmark_10")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()

anm_footmark_back_l:
    ac_right(1.0, 8.0)
    acmd_end()

anm_footmark_back_r:
    ac_left(1.0, 8.0)
    acmd_end()

anm_footmark_back_u:
    ac_down(1.0, 8.0)
    acmd_end()

anm_footmark_back_d:
    ac_up(1.0, 8.0)
    acmd_end()

anm_footmark_forward_l:
    ac_left(1.0, 8.0)
    acmd_end()

anm_footmark_forward_r:
    ac_right(1.0, 8.0)
    acmd_end()

anm_footmark_forward_u:
    ac_up(1.0, 8.0)
    acmd_end()

anm_footmark_forward_d:
    ac_down(1.0, 8.0)
    acmd_end()