code
common_vm_03:
ifval_call(work: 234, "EQ", 0.0, "comp_gold_case_0")
ifval_call(work: 234, "EQ", 1.0, "comp_gold_case_1")
ifval_call(work: 234, "EQ", 2.0, "comp_gold_case_2")
ifval_jump(work: 246, "EQ", 0.0, "common_vm_not_enough_money")
add_item_chk(work: 235, 1.0, work: 246)
ifval_jump(work: 246, "EQ", 0.0, "common_vm_fail_item")
ifval_call(work: 234, "EQ", 0.0, "sub_gold_case_0")
ifval_call(work: 234, "EQ", 1.0, "sub_gold_case_1")
ifval_call(work: 234, "EQ", 2.0, "sub_gold_case_2")
item_name(0.0, work: 235, 1.0)
se_play("S_FI101")
item_name(0.0, work: 235, 1.0)
talk_keywait("dp_scenario2%100-msg_c07r0205_vender_02")
ldwk(work: 238, work: 235)
ldval(work: 239, 1.0)
chg_common_scr("ev_item_event_keywait")
get_rnd(work: 246, 64.0)
ifval_jump(work: 246, "NE", 0.0, "common_vm_normal_ret")
add_item_chk(work: 235, 1.0, work: 246)
ifval_jump(work: 246, "EQ", 0.0, "common_vm_fail_item")
se_play("S_FI101")
item_name(0.0, work: 235, 1.0)
talk_keywait("dp_scenario2%100-msg_c07r0205_vender_03")
ldwk(work: 238, work: 235)
ldval(work: 239, 1.0)
chg_common_scr("ev_item_event_keywait")
jump("common_vm_normal_ret")
end()