script set: c04r0501

code

ev_c04r0501_shopw:
    talk_obj_start()
    talkmsg("dp_scenario2%13-msg_c04r0501_shopw1_01")
    ldval(work: 3, 0.0)
    jump("ev_c04r0501_fix_shop_re")
    end()

ev_c04r0501_fix_shop_re:
    ifval_call(work: 3, "EQ", 1.0, "ev_c04r0501_fix_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_198", 1.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_c04r0501_fix_shop_buy")
    case_jump(1.0, "ev_c04r0501_fix_shop_sell")
    case_jump(2.0, "ev_c04r0501_fix_shop_end")
    jump("ev_c04r0501_fix_shop_end")
    end()

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

ev_c04r0501_fix_shop_buy:
    ldval(work: 3, 1.0)
    talk_close_no_clear()
    event_camera_index(300.0)
    shop_open_fixed(2.0)
    dpr_shop_open_wait()
    event_camera_index(301.0)
    event_camera_end_wait()
    jump("ev_c04r0501_fix_shop_re")
    end()

ev_c04r0501_fix_shop_sell:
    ldval(work: 3, 1.0)
    talk_close_no_clear()
    shop_open_sell()
    dpr_shop_open_wait()
    jump("ev_c04r0501_fix_shop_re")
    end()

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

ev_c04r0501_oldwoman1:
    easy_obj_msg("dp_scenario2%13-msg_c04r0501_oldwoman1_01")
    end()

ev_c04r0501_oldman1:
    easy_obj_msg("dp_scenario2%13-msg_c04r0501_oldman1_01")
    end()