## Vbv
label shop
#date_open
shop_buy_count_work 	= 0
shop_talk_count_work 	= 0
if t_karin_insert_cnt>3 and t_karin_fera_cnt>7 and _ITEM(505)=0 then item_soldout	505,_FALSE			#u[P
if t_ichigo_insert_cnt>3 and t_ichigo_fera_cnt>4 and _ITEM(506)=0 then item_soldout	506,_FALSE			#v


## shop_count	= 2				#eXgp

#͂߂ăVbvɂ
if shop_count	= 0 then gosub shop_1st		#߂ăVbvɂƂ
shop_count	= shop_count+1

minimoney_open

#
@bgm14

#@subuta_right
#@subuta
##if shop_count	>1 then @bg_erocute
if shop_count	>1 {
windowclose
wait	30

transition	"",60
setbgeffecttime	1
setbgwaittime	0
bg	"cg\bg\black.png",0,-120,100,100

wait	90

se	"sound\se\BG_ACeVbvKi~.ogg"

wait	60

transition	"",60
setbgeffecttime	1
setbgwaittime	0
bg	"cg\bg\bg_erocute1.png",0,-123,100,100
	layerload	1,"chara\W\JE^[\JE^[\.png",826,99
	layerload	2,"cg\bg\bg_erocute1_counter.png",0,-120
layerload	3,"cg\bg\bg_erocute2.png",0,-120

wait	90

wait	120

se	"sound\se\ACeVbv_hAJ.ogg"

layermove	3,120,1280,-156
layerzoom	3,120,0,120

layerfadeout	3,60

wait	60


}
if shop_count	>1 then gosub shop_in_message	#VbvCbZ[W

#iI`j
#iPDACe𔃂j
#iQDACe𔄂ji΁j
#iRDbjii|b񐔁jOȏ̏ꍇ̂݁BPx̗XŘbł̂͂P̂݁j
#iSDXoj

label	shop_loop
window_close
#minimoney_close
if shop_talk_count_work>0 then 	goto shop_skip1
if shop_talk_count>11	then	goto shop_skip1

select	sel,"ACe𔃂","ACe𔄂","b","Xo"

if sel=0 then goto shop_buy
if sel=1 then goto shop_sell
if sel=2 then goto shop_talk
if sel=3 then goto shop_exit
goto	shop_loop

label	shop_skip1
select	sel,"ACe𔃂","ACe𔄂","Xo"
if sel=0 then goto shop_buy
if sel=1 then goto shop_sell
if sel=2 then goto shop_exit
goto	shop_loop



#
label shop_buy
	shopmode_buy
	if _ITEM=0	then 	goto	shop_loop
	gosub	shop_buy_message
	goto	shop_buy
#
label	shop_sell
	shopmode_sell
	if _ITEM=0	then 	goto	shop_loop
	gosub	shop_sell_message
	goto	shop_sell
#b
label	shop_talk
	shop_talk_count_work=shop_talk_count_work+1
	gosub	shop_talk_in
	goto	shop_loop
#o
label	shop_exit
	if shop_buy_count_work=0 then shop_nobuy_count=shop_nobuy_count+1
	if shop_buy_count_work>0 then shop_nobuy_count=0
	gosub	shop_out_message
	minimoney_close
	@subuta_
setbgeffecttime	60
setbgwaittime	60	
	@bg_black
	#wait	60
	return
