:: music_checks
<<set $here = 'music_checks'>>
<<set $ARGS = $location_var[$here]>>
<!-- !! Del Parco Storyline Stages-->
<!-- !! ml_delparcoQW['Stage'] = 0 - Storyline hasn''t started yet.-->
<!-- !! ml_delparcoQW['Stage'] = 1 - Sveta declines the offer when they meet while she is busking. Zariyah tells her to visit her office next Friday around 4pm.-->
<!-- !! ml_delparcoQW['Stage'] = 2 - Sveta accepts the offer when they meet while she is busking.  Zariyah tells her to think about it, and that if she changes her mind, just visit her in her office.-->
<!-- !! ml_delparcoQW['Stage'] = 3 --->
<!-- !! ml_delparcoQW['Stage'] = 4 --->
<!-- !! ml_delparcoQW['Stage'] = 5 --->
<!-- !! ml_delparcoQW['Stage'] = 6 --->
<!-- !! ml_delparcoQW['Stage'] = 7 --->
<!-- !! ml_delparcoQW['Stage'] = 98 - Sveta declined the offer even after thinking about it. Zariyah gave her a card and asked her to call if she changes her mind.-->
<!-- !!								Story is not over, Sveta can start it any time by calling or visiting Zariyah-->
<!-- !! ml_delparcoQW['Stage'] = 99 - Zariyah met Sveta when Sveta was visibly pregnant and asked her to talk after Sveta gave birth and feels like she is ready for this.-->
<!-- !!								Like with Stage 98, Sveta can continue the story at a later point (after she is not pregnant anymore).-->
<!-- !! ml_delparcoQW['Stage'] = 100 - Zariyah will not do anything with Sveta. Either she decided not to even give her an offer, or she fired Sveta-->
<<if $location_var[$here][0] == 'zariyah_approach'>>
	<<if $loc == 'pav_park'>>
		<<set $chance = 75>>
	<<else>>
		<<set $ml_approach = (rand(0,100) > 80 and ($pc.skillLevel("playInstrument") + $pc.skillLevel("singing") + $pcs_perform) >= 120 and hotcat >= 5 and ml_delparcoQW['stage'] = 0)>>
	<</if>>
	<!-- FAILED TO CONVERT
		ml_approach = rand(1,100) > chance and (pcs_instrmusic + pcs_vokal + pcs_perform) >= 120 and hotcat >= 5 and ml_delparcoQW['stage'] = 0
	-----
		<<set $ml_approach = rand(1 , ERROR: FAILED TO CONVERT LITERAL: """100) > chance and ($pc.skillLevel("playInstrument") + $pc.skillLevel("singing") + $pcs_perform) >= 120 and hotcat >= 5 and ml_delparcoQW['stage'] = 0""">>

	-->
	<<warn "CONVERSION ERROR e65ff108efc282521776a1c1fab956d5">>
	<<if $ml_approach>>
		<!-- !! Check for fame: if very 'famous' then she won't ever approach Sveta, doesn't want her associated with Del Parco.-->
		<<if $pc.fame('pav_slut') > 250 or $pc.fame('pav_prostitute') > 250 or $pc.fame('pav_sex') > 250 or $pc.fame('pav_porn') > 500 or $pc.fame('pav_stripping') > 500>>
			<<setinit $ml_delparcoQW['Stage'] = 100>>
			<!-- !! Check for covered in cum: face, hair, clothes (at least decent amount). If Sveta is in public, visibly covered in cum, she won''t ever approach Sveta,-->
			<!-- !! doesn''t want her associated with Del Parco.-->
		<<elseif $cumvol[11] > 10 or $cumvol[16] > 20 or $cumvol[6] > 20 or $cumvol[7] > 20>>
			<<setinit $ml_delparcoQW['Stage'] = 100>>
			<!-- !! Check for drunk+. If Sveta drunk, very drunk or wasted Zariyah won''t approach her - what for? However, she will still approach her if the next time-->
			<!-- !! she sees Sveta busking and Sveta passes the checks.-->
		<<elseif $pc.alko > 6>>
			<<set $ml_approach = 0>>
			<<setinit $ml_delparcoQW['Zariyah_Trust'] -= 10>>
			<!-- !! Check for stoned: if Sveta is stoned the Zariyah will avoid her for now. But they still can meet.-->
		<<elseif $pc.strongNarkota > 20>>
			<<set $ml_approach = 0>>
			<<setinit $ml_delparcoQW['Zariyah Trust'] -= 20>>
		<</if>>
		<!-- !! Less serious checks-->
		<!-- !! Check if Sveta is tipsy-->
		<<if $pc.alko > 4 and $pc.alko < 7>>
			<<setinit $ml_delparcoQW['Drinking Rule'] = 1>>
			<<setinit $ml_delparcoQW['Zariyah Trust'] -= 5>>
		<</if>>
		<!-- !! Check if Sveta is high-->
		<<if getvar("$jointhigh") > 0>>
			<<setinit $ml_delparcoQW['Weed Rule'] = 1>>
			<<setinit $ml_delparcoQW['Zariyah Trust'] -= 5>>
		<</if>>
		<!-- !! Check if Sveta is dressed like a hooker-->
		<<if $wardrobe.PCloStyle > 3 or $wardrobe.PCloStyle == 3 or getvar("$CloThinness") > 4 or getvar("$CloTopCut") > 3 or getvar("$CloSkirtShortness") > 4 or getvar("$CloPantsShortness") > 5 or getvar("$CloPanties") == 1>>
			<<setinit $ml_delparcoQW['Outfit Rule'] = 1>>
			<<setinit $ml_delparcoQW['Zariyah Trust'] -= 5>>
		<</if>>
		<!-- !! Check if Sveta is pregnant-->
		<<if getvar("$pc.pregchem") > 3450>>
			<!-- !! If Sveta is visibly pregnant, and also clearly drank alcohol and/or is high and/or is stoned and/or is dressed like a hooker,-->
			<!-- !! Zariyah doesn''t want to do anything with her.-->
			<<if $pc.alko > 4 or getvar("$jointhigh") > 0 or $pc.strongNarkota > 20 or $ml_delparcoQW['Outfit Rule'] == 1>>
				<<setinit $ml_delparcoQW['Stage'] = 100>>
				<!-- !! If Sveta is visibly pregnant, Zariyah will talk with her and make an offer for after she gave birth. She doesn''t want a pregnant-->
				<!-- !! woman in or close to her third semester as a musician, too risky. But later, sure.-->
			<<else>>
				<<setinit $ml_delparcoQW['Stage'] = 99>>
			<</if>>
		<</if>>
		<<gs 'music_checks' 'check_for_trust'>>
		<<if getvar("$ml_delparcoQW['Stage']") == 100>>
			<<set $ml_approach = 0>>

		<</if>>
	<</if>>
	<<set $chance to null>>
<</if>>
<<if $location_var[$here][0] == 'check_if_fired'>>
	<!-- !! Check for fame: if very 'famous' then she won't ever approach Sveta, doesn't want her associated with Del Parco.-->
	<<if $pc.fame('pav_sex') > 150>>
		<<setinit $ml_delparcoQW['Sveta Sex'] = 1>>
		<<setinit $ml_delparcoQW['Stage'] = 100>>
	<<elseif $pc.fame('pav_prostitute') > 150>>
		<<setinit $ml_delparcoQW['Sveta Prostitute'] = 1>>
		<<setinit $ml_delparcoQW['Stage'] = 100>>
	<<elseif $pc.fame('pav_porn') > 500>>
		<<setinit $ml_delparcoQW['Sveta Porn'] = 1>>
		<<setinit $ml_delparcoQW['Stage'] = 100>>
	<<elseif $pc.fame('pav_stripping') > 500>>
		<<setinit $ml_delparcoQW['Sveta Stripper'] = 1>>
		<<setinit $ml_delparcoQW['Stage'] = 100>>
		<!-- !! Check for covered in cum: face, hair, clothes (at least decent amount). If Sveta is shows up to a gig covered in cum, Zariyah will fire her on the spot.-->
		<!-- !! TODO: Will add something here, if she is caught and raped in the park before the gig it makes sense that she goes to Zariyah to call the police. That will be a separate scene.-->
	<<elseif $cumvol[11] > 10 or $cumvol[16] > 20 or $cumvol[6] > 20 or $cumvol[7] > 20>>
		<<setinit $ml_delparcoQW['Stage'] = 100>>
		<!-- !! Check for drunk+. If Sveta shows up to perform drunk, very drunk or wasted Zariyah will fire her because she is unreliable.-->
	<<elseif $pc.alko > 6>>
		<<setinit $ml_delparcoQW['Sveta Drunk'] = 1>>
		<<setinit $ml_delparcoQW['Stage'] = 100>>
		<!-- !! Check for stoned: if Sveta shows up to perform stoned, Zariyah will fire her because she is unreliable.-->
	<<elseif $pc.strongNarkota > 20>>
		<<setinit $ml_delparcoQW['Sveta Stoned'] = 1>>
		<<setinit $ml_delparcoQW['Stage'] = 100>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'check_if_can_perform'>>
	<!-- !! Less serious checks-->
	<!-- !! Check if Sveta is tipsy-->
	<<if $pc.alko > 4 and $pc.alko < 7>>
		<<setinit $ml_delparcoQW['Drinking Rule'] = 1>>
		<<setinit $ml_delparcoQW['Zariyah Trust'] -= 10>>
		<<set $ml_perform = 0>>
	<</if>>
	<!-- !! Check if Sveta is high-->
	<<if getvar("$jointhigh") > 0>>
		<<setinit $ml_delparcoQW['Weed Rule'] = 1>>
		<<setinit $ml_delparcoQW['Zariyah Trust'] -= 10>>
		<<set $ml_perform = 0>>
	<</if>>
	<!-- !! Check if Sveta is dressed like a hooker-->
	<<if $wardrobe.PCloStyle > 3 or $wardrobe.PCloStyle == 3 or getvar("$CloThinness") > 4 or getvar("$CloTopCut") > 3 or getvar("$CloSkirtShortness") > 4 or getvar("$CloPantsShortness") > 5 or getvar("$CloPanties") == 1>>
		<<setinit $ml_delparcoQW['Outfit Rule'] = 1>>
		<<setinit $ml_delparcoQW['Zariyah Trust'] -= 10>>
		<<set $ml_perform = 0>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'check_for_trust'>>
	<!-- !! Check for Zariyah''s trust level. If it is 0 or less, then the story is over. So if she sees Sveta drunk or stoned several times, she won''t make an offer.-->
	<<if $ml_delparcoQW['Zariyah Trust'] <= 0>>
		<<setinit $ml_delparcoQW['Stage'] = 100>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'reset_checks'>>
	<<setinit $ml_delparcoQW['Drinking Rule'] = 1>>
	<<setinit $ml_delparcoQW['Weed Rule'] = 1>>
	<<setinit $ml_delparcoQW['Outfit Rule'] = 1>>
<</if>>
