# shop_coco_carmen
!!2022/06/20

if $ARGS[0] = 'start':
	killvar 'clothingfilter'
	$loc_arg = $ARGS[0]
	$loc = 'shop_coco_carmen'
    $location_type = 'public_indoors'
	$menu_loc = 'shop_coco_carmen'
	$menu_arg = 'start'
	menu_off = 0
	*clr & cla
	mag = 1
	gs 'stat'
	gs 'themes', 'indoors'
	'<center><b><font color="maroon">Coco Carmen</font></b></center>'
	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/coco/shop.jpg"></center>'
	*nl
	'If you are happy to push through the tourists Coco has everything a young adult might like to wear. It''s a step up from G&M and unless you can afford the boutiques in Old Town you''ll be spending some time buying outfits here.'

	act 'Leave the coco': minut += 3 & gt 'pav_commercial'
	
	act 'View dresses': minut += 5 & gt 'shop_coco_carmen', 'dress'

	act 'View other outfits': minut += 5 & gt 'shop_coco_carmen', 'outfits'

	act 'View purses': minut += 5 & gt 'shop_coco_carmen', 'purses'
end

if $ARGS[0] = 'dress':
	$loc_arg = 'dress'
	$loc = 'shop_coco_carmen'
	$menu_loc = 'shop_coco_carmen'
	$menu_arg = 'dress'
	menu_off = 0
	*clr & cla
	gs'stat'
	'<center><b><font color="maroon">Viewing Coco Carmen dresses</font></b></center>'
	*nl

	gs 'clothing_QV', 'shop_filter_header'

	act 'Return': minut += 1 & gt 'shop_coco_carmen', 'start'

	!!To filter just this set
	clo_i = 0
	:loopcoco_dress_filter

		if Clothingstock > 17:
			i = 1
		elseif Clothingstock > 11:
			i = 2
		elseif Clothingstock > 5:
			i = 3
		else
			i = 4
		end

		:loopcoco_dress
			if coco_dress[i] = 0:
				gs 'clothing_attributes', 'coco_dress', i
				gs 'clothing_QV', 'shop_filter'

				!!sort by filter
				if (clothingfilter['quality'] = 0 and CloQuality = clo_i) or (clothingfilter['inhibition'] = 0 and CloInhibit = clo_i) or clothingfilter['number'] = 0:
					if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1: *p '<a href="exec: i = <<i>> & gt ''shop_coco_carmen'', ''coco_dress''"><img src="images/pc/items/coco/dress/<<i>>.jpg" 	height="250" /></a>'
				end
			end
			i += 2
		if i <= 300:jump 'loopcoco_dress'

	clo_i += 1
	if clothingfilter['quality'] = 0 and clo_i <= 7:
		jump 'loopcoco_dress_filter'
	elseif clothingfilter['inhibition'] = 0 and clo_i <= 40:
		jump 'loopcoco_dress_filter'
	end
end

if $ARGS[0] = 'coco_dress':
	cla
	menu_off = 1
	if coco_dress[i] ! 0:
		msg 'You already own this dress.'
		gt 'shop_coco_carmen', 'dress'
	end

	gt 'clothing', 'view_clothing_item', 'coco_dress',i, 3000, 'shop'
end

if $ARGS[0] = 'outfits':
	$loc_arg = 'outfits'
	$loc = 'shop_coco_carmen'
	$menu_loc = 'shop_coco_carmen'
	$menu_arg = 'outfits'
	menu_off = 0
	*clr & cla
	gs'stat'
	'<center><b><font color="maroon">Viewing Coco Carmen outfits</font></b></center>'
	*nl

	gs 'clothing_QV', 'shop_filter_header'

	act 'Return': minut += 1 & gt 'shop_coco_carmen', 'start'

	!!To filter just this set
	clo_i = 0
	:loopcoco_outfits_filter

		if Clothingstock > 11:
			i = 1
		else
			i = 2
		end

		:loopcoco_outfits
			if coco_outfits[i] = 0:
				gs 'clothing_attributes', 'coco_outfits', i
				gs 'clothing_QV', 'shop_filter'

				!!sort by filter
				if (clothingfilter['quality'] = 0 and CloQuality = clo_i) or (clothingfilter['inhibition'] = 0 and CloInhibit = clo_i) or clothingfilter['number'] = 0:
					if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1: *p '<a href="exec: i = <<i>> & gt ''shop_coco_carmen'', ''coco_outfits''"><img src="images/pc/items/coco/outfits/<<i>>.jpg" 	height="250" /></a>'
				end
			end
			i += 2
		if i <= 160:jump 'loopcoco_outfits'

	clo_i += 1
	if clothingfilter['quality'] = 0 and clo_i <= 7:
		jump 'loopcoco_outfits_filter'
	elseif clothingfilter['inhibition'] = 0 and clo_i <= 40:
		jump 'loopcoco_outfits_filter'
	end
end

if $ARGS[0] = 'coco_outfits':
	cla
	menu_off = 1
	if coco_outfits[i] ! 0:
		msg 'You already own this outfit.'
		gt 'shop_coco_carmen', 'outfits'
	end

	gt 'clothing', 'view_clothing_item', 'coco_outfits',i, 3000, 'shop'

end

if $ARGS[0] = 'shoes':
	$loc_arg = $ARGS[0]
	$loc = 'shop_coco_carmen'
	$menu_loc = 'shop_coco_carmen'
	$menu_arg = 'shoes'
	menu_off = 0
	*clr & cla
	gs'stat'

	act 'Return': minut += 1 & gt 'shop_coco_carmen', 'start'

	if Clothingstock > 11:
		i = 1
	else
		i = 2
	end

	:loopcoco_shoes
		if scoco[i] = 0:*p '<a href="exec: i = <<i>> & gt ''shop_coco_carmen'', ''coco_shoes''"><img src="images/pc/shoes/coco/<<i>>.jpg" height="250" /></a>'
		i += 2
	if i <= 37:jump 'loopcoco_shoes'
end

if $ARGS[0] = 'purses':
	$loc_arg = 'purses'
	$loc = 'shop_coco_carmen'
	$menu_loc = 'shop_coco_carmen'
	$menu_arg = 'purses'
	menu_off = 0
	*clr & cla
	gs'stat'

	act 'Return': minut += 1 & gt 'shop_coco_carmen', 'start'

	i = 1

	:loopcoco_purses
		if coco_purses[i] = 0:*p '<a href="exec: i = <<i>> & gt ''shop_coco_carmen'', ''purses2''"><img src="images/pc/items/coco/purses/<<i>>.jpg" 	height="150" /></a> '
		i += 1
	if i <= 60:jump 'loopcoco_purses'
end

if $ARGS[0] = 'purses2': gt 'purses', 'view_purse_item', 'shop', 'coco',i, 2000

--- shop_coco_carmen ---------------------------------

