script set: d31r0101

code

ev_d31r0101_bpgift_01:
    jump("ev_d31r0101_bpgift_02")

ev_d31r0101_bpgift_02:
    talk_obj_start()
    chg_common_scr("ev_shop_start_talk")
    ldval(work: 3, 0.0)
    jump("ev_d31r0101_shop_re")
    end()

ev_d31r0101_shop_re:
    ifval_call(work: 3, "EQ", 1.0, "ev_d31r0101_shop_sonohoka")
    add_custum_win_label("ss_fld_shop%SS_fld_shop_197", 0.0)
    add_custum_win_label("ss_fld_shop%SS_fld_shop_199", 2.0)
    open_custum_win(work: 238)
    switch(work: 238)
    case_jump(0.0, "ev_d31r0101_shop_buy")
    case_jump(2.0, "ev_d31r0101_shop_end")
    jump("ev_d31r0101_shop_end")
    end()

ev_d31r0101_shop_sonohoka:
    talkmsg("dp_scenario1%28-mes_shop_01_03")
    ret()

ev_d31r0101_shop_buy:
    ldval(work: 3, 1.0)
    talk_close_no_clear()
    event_camera_index(302.0)
    shop_open_battle()
    dpr_shop_open_wait()
    event_camera_index(303.0)
    event_camera_end_wait()
    jump("ev_d31r0101_shop_re")
    end()

ev_d31r0101_shop_end:
    talkmsg("ss_fld_shop%SS_fld_shop_202")
    talk_close()
    talk_obj_end()
    end()

ev_d31r0101_tokkun_01:
    talk_obj_start()
    ifval_jump(work: 282, "EQ", 1.0, "ev_d31r0101_tokkun_01_check")
    talk_keywait("dp_scenario3%43-msg_d31r0101_tokkun_01")
    ldval(work: 282, 1.0)
    jump("ev_d31r0101_tokkun_01_check")
    jump("ev_d31r0101_tokkun_01_check")

ev_d31r0101_tokkun_01_check:
    item_chk(796.0, 1.0, work: 246)
    ifval_jump(work: 246, "EQ", 0.0, "ev_d31r0101_tokkun_01_check02")
    jump("ev_d31r0101_tokkun_02")
    end()

ev_d31r0101_tokkun_01_check02:
    item_chk(795.0, 1.0, work: 246)
    ifval_jump(work: 246, "EQ", 1.0, "ev_d31r0101_tokkun_02")
    talk_keywait("dp_scenario3%43-msg_d31r0101_tokkun_02")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()

ev_d31r0101_tokkun_02:
    talkmsg("dp_scenario3%43-msg_d31r0101_tokkun_03")
    add_custum_win_label("dp_options%DP_options_041", 1.0)
    add_custum_win_label("dp_options%DP_options_042", 0.0)
    open_custum_win(work: 246)
    switch(work: 246)
    case_jump(1.0, "ev_d31r0101_tokkun_02_00")
    case_jump(0.0, "ev_d31r0101_tokkun_end")
    jump("ev_d31r0101_tokkun_end")
    end()

ev_d31r0101_tokkun_02_00:
    talk_close()
    pokelist_set_proc(12.0)
    pokelist_get_result(work: 238, work: 239)
    ifval_jump(work: 238, "EQ", -1.0, "ev_d31r0101_tokkun_end")
    jump("ev_d31r0101_tokkun_03")
    end()

ev_d31r0101_tokkun_03:
    get_item_count(796.0, work: 0)
    get_item_count(795.0, work: 1)
    talkmsg("dp_scenario3%43-msg_d31r0101_tokkun_06")
    item_name(0.0, 796.0, 1.0)
    number_name(1.0, work: 0)
    add_custum_win_label("dp_scenario3%43-msg_d31r0101_tokkun_07", 2.0)
    item_name(0.0, 795.0, 1.0)
    number_name(1.0, work: 1)
    add_custum_win_label("dp_scenario3%43-msg_d31r0101_tokkun_07", 1.0)
    add_custum_win_label("dp_scenario3%43-msg_d31r0101_tokkun_08", 0.0)
    open_custum_win(work: 246)
    switch(work: 246)
    case_jump(2.0, "ev_d31r0101_tokkun_kin")
    case_jump(1.0, "ev_d31r0101_tokkun_gin")
    case_jump(0.0, "ev_d31r0101_tokkun_end")
    jump("ev_d31r0101_tokkun_end")
    end()

ev_d31r0101_tokkun_kin:
    talk_close()
    training_open(work: 239, work: 238, 796.0)
    training_open_wait(0.0, 0.0, 0.0, work: 246)
    ifval_jump(work: 246, "EQ", 0.0, "ev_d31r0101_tokkun_end")
    jump("ev_d31r0101_tokkun_start")
    end()

ev_d31r0101_tokkun_gin:
    talk_close()
    training_open(work: 239, work: 238, 795.0)
    training_open_wait(0.0, 0.0, 0.0, work: 246)
    ifval_jump(work: 246, "EQ", 0.0, "ev_d31r0101_tokkun_end")
    jump("ev_d31r0101_tokkun_start")
    end()

ev_d31r0101_tokkun_start:
    talk_keywait("dp_scenario3%43-msg_d31r0101_tokkun_11")
    black_out("SCR_WIPE_DIV", "SCR_WIPE_SYNC")
    fade_wait()
    se_play("UI_COMMON_LV_GAUGE_UP")
    black_in("SCR_WIPE_DIV", "SCR_WIPE_SYNC")
    fade_wait()
    nick_name("0�CSCWK_TEMP0")
    talk_keywait("dp_scenario3%43-msg_d31r0101_tokkun_12")
    talk_keywait("dp_scenario3%43-msg_d31r0101_tokkun_13")
    yes_no_win(work: 246)
    ifval_jump(work: 246, "EQ", 0.0, "ev_d31r0101_tokkun_02_00")
    ifval_jump(work: 246, "EQ", 1.0, "ev_d31r0101_tokkun_end")
    end()

ev_d31r0101_tokkun_end:
    talk_keywait("dp_scenario3%43-msg_d31r0101_tokkun_14")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()

ev_d31r0101_gentleman_01:
    easy_obj_msg("dp_scenario3%43-msg_d31r0101_gentleman_01")
    end()

ev_d31r0101_madam_01:
    easy_obj_msg("dp_scenario3%43-msg_d31r0101_madam_01")
    end()

ev_d31r0101_badman1_01:
    easy_obj_msg("dp_scenario3%43-msg_d31r0101_badman1_01")
    end()

ev_d31r0101_girl1_01:
    easy_obj_msg("dp_scenario3%43-msg_d31r0101_girl1_01")
    end()

ev_d31r0101_clown_01:
    easy_obj_msg("dp_scenario3%43-msg_d31r0101_clown_01")
    end()

ev_d31r0101_babygirl_01:
    jump("ev_d31r0101_oldwoman_01")

ev_d31r0101_oldwoman_01:
    talk_obj_start_turn_not()
    talk_keywait("dp_scenario3%43-msg_d31r0101_babygirl_01")
    talk_keywait("dp_scenario3%43-msg_d31r0101_oldwoman_01")
    last_keywait()
    talk_close()
    talk_obj_end()
    end()