:: exercise
<<set $here = 'exercise'>>
<<set $ARGS = $location_var[$here]>>
<!-- !{This will centralize calls for exercise. For calls where you wish to allow multiple types of exercises, such as a bedroom or yard, use gs 'exercise', 'start'
For direct calls use this format: gs 'exercise', $larg(0), ARG[1], $larg(2), $larg(3), $larg(4)
$larg(0) is the workout tier and the higher the tier, the greater the workout intensity.
Values: 'tier1' 'tier2' 'tier3' 'tier4'
ARG[1] is the time override. By default the tiers are in 15 minute segments if being called from an event with predetermined time set this to 1
Values: 0 (default of 15 minutes) 1 (time set to 0)
$larg(2) and on are the stats to be affected by the workout NOTE: use the gs 'exp_gain', 'name of varibale' variant, not the pcs_!!!!
Values: 'stren' 'vital' 'agil' 'sprt' 'react'
Other stats can be added if desired - for a dance-a-thon you might use gs 'exercise', 'tier1', 0, 'agil', 'danc'
} -->
<<if $location_var[$here][0] == 'start'>>
	<!--<<if ($pc.pcs_stam >= 15 or $pc.pcs_stam >= 10 and $bookYog + getvar("$obruch") > 0)>>
		There is enough space in the room to exercise.
		<<act "Exercise">><<gt 'exercise' 'workout'>><</act>>
	<<else>>
		There is enough space in the room for a variety of exercises, but you don't have the energy to work out now.
	<</if>>-->
<</if>>
<<if $location_var[$here][0] == 'workout'>>
	<<set $menu_loc = 'exercise'>>
	<<set $menu_arg = 'workout'>>
	<<set $menu_off = 0>>
	<<set $exer_menu = 0>>
	<<gs 'exercise' 'routines'>>
	<<set $clothesAtLocation = setup.func('lost_clothes_here',$loc)>>
	<<if $wardrobe.clothingworntype == 'nude' and getvar("$clothesAtLocation") == 1>>
		<<actCLA 'End workout and get dressed'>>
			<<set $time.minutes += 5>>
			<<gs 'underwear' 'wear'>>
			<<gs 'clothing' 'recover_lost_clothes' $loc 1>>
			<<gt $location>>
		<</actCLA>>
	<<else>>
		<<actCLA 'End workout'>>
			<<gt $location>>
		<</actCLA>>
	<</if>>
	<<if $pc.pcs_energy < 20 or $pc.pcs_stam < $pc.stammax / 5>>
		You do not have the energy/stamina to exercise currently
	<<elseif $wardrobe.clothingworntype == 'nude' or $wardrobe.clothingworntype == 'danilovich_outfits'>>
		<<act 'Manual routines'>>
			<<gt 'exercise' 'manual'>>
		<</act>>
		<<act 'Define routines'>>
			<<gt 'exercise' 'setup'>>
		<</act>>
		<<if $exer_stam[1] != 0 and $pc.pcs_stam > $exer_stam[1]>>
			<<actCLA ''+'+$excer_name[1]+'+' - (exer_stam[1] stamina)'>>
	<<set $exercisex = 1>> <<gt 'exercise' 'auto'>>
<</actCLA>>

		<</if>>
		<<if $exer_stam[2] != 0 and $pc.pcs_stam > $exer_stam[2]>>
			<<actCLA ''+'+$excer_name[2]+'+' - (exer_stam[2] stamina)'>>
	<<set $exercisex = 2>> <<gt 'exercise' 'auto'>>
<</actCLA>>

		<</if>>
		<<if $exer_stam[3] != 0 and $pc.pcs_stam > $exer_stam[3]>>
			<<actCLA ''+'+$excer_name[3]+'+' - (exer_stam[3] stamina)'>>
	<<set $exercisex = 3>> <<gt 'exercise' 'auto'>>
<</actCLA>>

		<</if>>
		<<if $exer_stam[4] != 0 and $pc.pcs_stam > $exer_stam[4]>>
			<<actCLA ''+'+$excer_name[4]+'+' - (exer_stam[4] stamina)'>>
	<<set $exercisex = 4>> <<gt 'exercise' 'auto'>>
<</actCLA>>

		<</if>>
		<<if $exer_stam[5] != 0 and $pc.pcs_stam > $exer_stam[5]>>
			<<actCLA ''+'+$excer_name[5]+'+' - (exer_stam[5] stamina)'>>
	<<set $exercisex = 5>> <<gt 'exercise' 'auto'>>
<</actCLA>>

		<</if>>
	<<else>>
		<b>You need to equip the proper attire before you can exercise</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'auto'>>
	<<set $exer_auto = 1>>
	<<if getvar("$exer_rout0["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout0[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'push'>>
	<<elseif getvar("$exer_rout1["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout1[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'press'>>
	<<elseif getvar("$exer_rout2["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout2[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'rope'>>
	<<elseif getvar("$exer_rout3["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout3[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'yoga'>>
	<<elseif getvar("$exer_rout4["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout4[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'hula'>>
	<<elseif getvar("$exer_rout5["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout5[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'butt'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'auto1'>>
	<<if getvar("$exer_rout1["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout1[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'press'>>
	<<elseif getvar("$exer_rout2["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout2[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'rope'>>
	<<elseif getvar("$exer_rout3["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout3[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'yoga'>>
	<<elseif getvar("$exer_rout4["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout4[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'hula'>>
	<<elseif getvar("$exer_rout5["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout5[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'butt'>>
	<<else>>
		<<gt 'exercise' 'auto_end'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'auto2'>>
	<<if getvar("$exer_rout2["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout2[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'rope'>>
	<<elseif getvar("$exer_rout3["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout3[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'yoga'>>
	<<elseif getvar("$exer_rout4["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout4[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'hula'>>
	<<elseif getvar("$exer_rout5["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout5[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'butt'>>
	<<else>>
		<<gt 'exercise' 'auto_end'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'auto3'>>
	<<if getvar("$exer_rout3["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout3[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'yoga'>>
	<<elseif getvar("$exer_rout4["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout4[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'hula'>>
	<<elseif getvar("$exer_rout5["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout5[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'butt'>>
	<<else>>
		<<gt 'exercise' 'auto_end'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'auto4'>>
	<<if getvar("$exer_rout4["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout4[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'hula'>>
	<<elseif getvar("$exer_rout5["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout5[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'butt'>>
	<<else>>
		<<gt 'exercise' 'auto_end'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'auto5'>>
	<<if getvar("$exer_rout5["+$exercisex+"]") > 0>>
		<<set $timemult = $exer_rout5[$exercisex]>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'butt'>>
	<<else>>
		<<gt 'exercise' 'auto_end'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'auto_end'>>
	<<set $exer_auto = 0>>
	<<gt 'exercise' 'workout'>>
<</if>>
<<if $location_var[$here][0] == 'manual'>>
	<<set $menu_loc = 'exercise'>>
	<<set $menu_arg = 'manual'>>
	<<set $menu_off = 0>>
	<<act 'Return'>>
		<<gt 'exercise' 'workout'>>
	<</act>>
	<<if $pc.pcs_energy < 20 and $pc.pcs_stam < $pc.stammax / 5>>
		You don't have the energy/stamina to work out anymore now.
	<<else>>
		<<actCLA 'Do pushups for 15 minutes'>>
			<<set $timemult = 1>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'push'>>
		<</actCLA>>
		<<actCLA 'Do crunches for 15 minutes'>>
			<<set $timemult = 1>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'press'>>
		<</actCLA>>
		<<actCLA 'Do squats for 15 minutes'>>
			<<set $timemult = 1>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'butt'>>
		<</actCLA>>
		<<if getvar("$skak") > 0 and $loc != 'meadow'>>
			<<actCLA 'Jump rope for 15 minutes'>>
				<<set $timemult = 1>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'rope'>>
			<</actCLA>>
		<</if>>
		<<if getvar("$bookYog") > 0>>
			<<actCLA 'Do yoga for 15 minutes'>>
				<<set $timemult = 1>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'yoga'>>
			<</actCLA>>
		<</if>>
		<<if getvar("$obruch") > 0 and $loc != 'meadow'>>
			<<actCLA 'Use your hula hoop for 15 minutes'>>
				<<set $timemult = 1>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'hula'>>
			<</actCLA>>
		<</if>>
		<<actCLA 'Do pushups for 30 minutes'>>
			<<set $timemult = 2>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'push'>>
		<</actCLA>>
		<<actCLA 'Do crunches for 30 minutes'>>
			<<set $timemult = 2>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'press'>>
		<</actCLA>>
		<<actCLA 'Do squats for 30 minutes'>>
			<<set $timemult = 2>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'butt'>>
		<</actCLA>>
		<<if getvar("$skak") > 0 and $loc != 'meadow'>>
			<<actCLA 'Jump rope for 30 minutes'>>
				<<set $timemult = 2>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'rope'>>
			<</actCLA>>
		<</if>>
		<<if getvar("$bookYog") > 0>>
			<<actCLA 'Do yoga for 30 minutes'>>
				<<set $timemult = 2>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'yoga'>>
			<</actCLA>>
		<</if>>
		<<if getvar("$obruch") > 0 and $loc != 'meadow'>>
			<<actCLA 'Use your hula hoop for 30 minutes'>>
				<<set $timemult = 2>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'hula'>>
			<</actCLA>>
		<</if>>
		<<actCLA 'Do pushups for 45 minutes'>>
			<<set $timemult = 3>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'push'>>
		<</actCLA>>
		<<actCLA 'Do crunches for 45 minutes'>>
			<<set $timemult = 3>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'press'>>
		<</actCLA>>
		<<actCLA 'Do squats for 45 minutes'>>
			<<set $timemult = 3>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'butt'>>
		<</actCLA>>
		<<if getvar("$skak") > 0 and $loc != 'meadow'>>
			<<actCLA 'Jump rope for 45 minutes'>>
				<<set $timemult = 3>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'rope'>>
			<</actCLA>>
		<</if>>
		<<if getvar("$bookYog") > 0>>
			<<actCLA 'Do yoga for 45 minutes'>>
				<<set $timemult = 3>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'yoga'>>
			<</actCLA>>
		<</if>>
		<<if getvar("$obruch") > 0 and $loc != 'meadow'>>
			<<actCLA 'Use your hula hoop for 45 minutes'>>
				<<set $timemult = 3>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'hula'>>
			<</actCLA>>
		<</if>>
		<<actCLA 'Do pushups for 60 minutes'>>
			<<set $timemult = 4>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'push'>>
		<</actCLA>>
		<<actCLA 'Do crunches for 60 minutes'>>
			<<set $timemult = 4>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'press'>>
		<</actCLA>>
		<<actCLA 'Do squats for 60 minutes'>>
			<<set $timemult = 4>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'butt'>>
		<</actCLA>>
		<<if getvar("$skak") > 0 and $loc != 'meadow'>>
			<<actCLA 'Jump rope for 60 minutes'>>
				<<set $timemult = 4>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'rope'>>
			<</actCLA>>
		<</if>>
		<<if getvar("$bookYog") > 0>>
			<<actCLA 'Do yoga for 60 minutes'>>
				<<set $timemult = 4>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'yoga'>>
			<</actCLA>>
		<</if>>
		<<if getvar("$obruch") > 0 and $loc != 'meadow'>>
			<<actCLA 'Use your hula hoop for 60 minutes'>>
				<<set $timemult = 4>> <<gs 'exercise' 'timestring'>> <<gt 'exercise' 'hula'>>
			<</actCLA>>
		<</if>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'routines'>>
	<center><h2>Exercise Routines</h2></center>
	<center><table>
	<TD><b>Routine</b></TD><TD><b>Push ups</b></TD><TD><b>Crunches</b></TD><TD><b>Jump rope</b></TD><TD><b>Yoga</TD><TD><b>Hula hoop</b></TD><TD><b>Squats</b></TD>
	<TR><TD width="100" cellspacing="2" align="left">'+iif(exer_menu = 1,'<a href="exec:$excer_name[1] = input (''<center>Enter name for exercise routine 1<br>Leave blank to restore default name.</center>'') & gs ''exercise'', ''rename'' & gt ''exercise'', ''setup''"><<$excer_name[1]>>:</a> ','<<$excer_name[1]>>:</a> ')+'</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout0[1]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout1[1]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout2[1]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout3[1]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout4[1]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout5[1]*15>></b> minutes</TD>
	<TR><TD width="100" cellspacing="2" align="left">'+iif(exer_menu = 1,'<a href="exec:$excer_name[2] = input (''<center>Enter name for exercise routine 2<br>Leave blank to restore default name.</center>'') & gs ''exercise'', ''rename'' & gt ''exercise'', ''setup''"><<$excer_name[2]>>:</a> ','<<$excer_name[2]>>:</a> ')+'</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout0[2]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout1[2]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout2[2]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout3[2]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout4[2]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout5[2]*15>></b> minutes</TD>
	<TR><TD width="100" cellspacing="2" align="left">'+iif(exer_menu = 1,'<a href="exec:$excer_name[3] = input (''<center>Enter name for exercise routine 3<br>Leave blank to restore default name.</center>'') & gs ''exercise'', ''rename'' & gt ''exercise'', ''setup''"><<$excer_name[3]>>:</a> ','<<$excer_name[3]>>:</a> ')+'</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout0[3]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout1[3]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout2[3]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout3[3]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout4[3]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout5[3]*15>></b> minutes</TD>
	<TR><TD width="100" cellspacing="2" align="left">'+iif(exer_menu = 1,'<a href="exec:$excer_name[4] = input (''<center>Enter name for exercise routine 4<br>Leave blank to restore default name.</center>'') & gs ''exercise'', ''rename'' & gt ''exercise'', ''setup''"><<$excer_name[4]>>:</a> ','<<$excer_name[4]>>:</a> ')+'</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout0[4]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout1[4]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout2[4]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout3[4]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout4[4]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout5[4]*15>></b> minutes</TD>
	<TR><TD width="100" cellspacing="2" align="left">'+iif(exer_menu = 1,'<a href="exec:$excer_name[5] = input (''<center>Enter name for exercise routine 5<br>Leave blank to restore default name.</center>'') & gs ''exercise'', ''rename'' & gt ''exercise'', ''setup''"><<$excer_name[5]>>:</a> ','<<$excer_name[5]>>:</a> ')+'</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout0[5]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout1[5]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout2[5]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout3[5]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout4[5]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout5[5]*15>></b> minutes</TD>
	<TR><TD colspan="7"><br><br><center><<link "Define up to 5 automated exercise routines.">><<gt 'exercise' 'setup'>><</link>></center></TD></TR>
	</table></center>
<</if>>
<<if $location_var[$here][0] == 'setup'>>
	<<set $menu_loc = 'exercise'>>
	<<set $menu_arg = 'setup'>>
	<<set $menu_off = 0>>
	<<set $exer_menu = 1>>
	<<gs 'exercise' 'routines'>>
	<<act 'Return'>>
		<<gt 'exercise' 'workout'>>
	<</act>>
	<<actCLA 'Define '+$excer_name[1]+''>>
		<<set $i = 1>> <<gt 'exercise' 'matrix'>>
	<</actCLA>>
	<<actCLA 'Rename '+$excer_name[1]+''>>
		<<setinit $excer_name[1] = input ('<center>Enter name for exercise routine 1<br>Leave blank to restore default name.</center>')>>
		<<gs 'exercise' 'rename'>>
		<<gt 'exercise' 'setup'>>
	<</actCLA>>
	<<actCLA 'Define '+$excer_name[2]+''>>
		<<set $i = 2>> <<gt 'exercise' 'matrix'>>
	<</actCLA>>
	<<actCLA 'Rename '+$excer_name[2]+''>>
		<<setinit $excer_name[2] = input ('<center>Enter name for exercise routine 2<br>Leave blank to restore default name.</center>')>>
		<<gs 'exercise' 'rename'>>
		<<gt 'exercise' 'setup'>>
	<</actCLA>>
	<<actCLA 'Define '+$excer_name[3]+''>>
		<<set $i = 3>> <<gt 'exercise' 'matrix'>>
	<</actCLA>>
	<<actCLA 'Rename '+$excer_name[3]+''>>
		<<setinit $excer_name[3] = input ('<center>Enter name for exercise routine 3<br>Leave blank to restore default name.</center>')>>
		<<gs 'exercise' 'rename'>>
		<<gt 'exercise' 'setup'>>
	<</actCLA>>
	<<actCLA 'Define '+$excer_name[4]+''>>
		<<set $i = 4>> <<gt 'exercise' 'matrix'>>
	<</actCLA>>
	<<actCLA 'Rename '+$excer_name[4]+''>>
		<<setinit $excer_name[4] = input ('<center>Enter name for exercise routine 4<br>Leave blank to restore default name.</center>')>>
		<<gs 'exercise' 'rename'>>
		<<gt 'exercise' 'setup'>>
	<</actCLA>>
	<<actCLA 'Define '+$excer_name[5]+''>>
		<<set $i = 5>> <<gt 'exercise' 'matrix'>>
	<</actCLA>>
	<<actCLA 'Rename '+$excer_name[5]+''>>
		<<setinit $excer_name[5] = input ('<center>Enter name for exercise routine 5<br>Leave blank to restore default name.</center>')>>
		<<gs 'exercise' 'rename'>>
		<<gt 'exercise' 'setup'>>
	<</actCLA>>
	<!-- !!exer_rout1 = default-->
<</if>>
<<if $location_var[$here][0] == 'rename'>>
	<<if $excer_name[1] == ''>>
		<<setinit $excer_name[1] = 'Default 1'>>

	<</if>>
	<<if $excer_name[2] == ''>>
		<<setinit $excer_name[2] = 'Default 2'>>

	<</if>>
	<<if $excer_name[3] == ''>>
		<<setinit $excer_name[3] = 'Default 3'>>

	<</if>>
	<<if $excer_name[4] == ''>>
		<<setinit $excer_name[4] = 'Default 4'>>

	<</if>>
	<<if $excer_name[5] == ''>>
		<<setinit $excer_name[5] = 'Default 5'>>

	<</if>>
<</if>>
<<if $location_var[$here][0] == 'matrix'>>
	<<setinit $exer_stam[$i] = $exer_stam0[$i] + $exer_stam1[$i] + $exer_stam2[$i] + $exer_stam3[$i] + $exer_stam4[$i] + $exer_stam5[$i]>>
	<<act 'Confirm'>>
		<<gt 'exercise' 'setup'>>
	<</act>>
	Choose your exercise options from the following table:
	<center><table border=0 cellspacing=0 cellpadding=10 width=1000><TH>Exercise</TH><TH>None</TH><TH>15 mins</TH><TH>30 mins</TH><TH>45 mins</TH><TH>60 mins</TH>
	<<gs 'exercise' 'matrixdata' 0 'Push ups'>>
	<<gs 'exercise' 'matrixdata' 1 'Crunches'>>
	<<if getvar("$skak") > 0 and $loc != 'meadow'>>
		<<gs 'exercise' 'matrixdata' 2 'Jump rope'>>

	<</if>>
	<<if getvar("$bookYog") > 0>>
		<<gs 'exercise' 'matrixdata' 3 'Yoga'>>

	<</if>>
	<<if getvar("$obruch") > 0 and $loc != 'meadow'>>
		<<gs 'exercise' 'matrixdata' 4 'Hula hoop'>>

	<</if>>
	<<gs 'exercise' 'matrixdata' 5 'Squats'>>
	</center></table>
	<p>Total stamina required - exer_stam[$i]</p>
<</if>>
<<if $location_var[$here][0] == 'matrixdata'>>
	<TR>
	<!-- FAILED TO CONVERT
		*p '<TD><<$larg(2)>></TD>'
	-----
		 * ERROR: FAILED TO CONVERT LITERAL: """p '<TD>$larg(2)<""" / ERROR: FAILED TO CONVERT LITERAL: """TD>'"""

	-->
	<<warn "CONVERSION ERROR f8d34f802f7859bc19edb553500dd2d5">>
	<<if $exer_rout' + $location_var[$here][1] + '[$i] == 0>>
		<<set exer_stam'+ARGS[1]+'['+i+'] = 0>>
		<!-- FAILED TO CONVERT
			*p '<TD>Selected</TD>'
		-----
			 * ERROR: FAILED TO CONVERT LITERAL: """p '<TD>Selected<""" / ERROR: FAILED TO CONVERT LITERAL: """TD>'"""

		-->
		<<warn "CONVERSION ERROR 79fa03dafe9b51c1e2e24cf60ffcd4ad">>
	<<else>>
		<!-- FAILED TO CONVERT
			*p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 0'' & gt ''exercise'', ''matrix''">Select</a></TD>'
		-----
			<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<TD><a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec:dynamic ''exer_rout<<ARGS[1]>>[$i] = 0''""">> <<gt 'exercise' 'matrix'">Select</a></TD>'>>

		-->
		<<warn "CONVERSION ERROR e2a5eca3cbd0649c350df580940828b4">>
	<</if>>
	<<if $exer_rout' + $location_var[$here][1] + '[$i] == 1>>
		<<if $location_var[$here][1] >= 3>>
			<<set exer_stam'+ARGS[1]+'['+i+'] = 5 * (10 - sport_clothes_exercise_bonus)>>
		<<else>>
			<<set exer_stam'+ARGS[1]+'['+i+'] = (15 * (10 - sport_clothes_exercise_bonus)) / 2>>
		<</if>>
		<!-- FAILED TO CONVERT
			*p '<TD>Selected</TD>'
		-----
			 * ERROR: FAILED TO CONVERT LITERAL: """p '<TD>Selected<""" / ERROR: FAILED TO CONVERT LITERAL: """TD>'"""

		-->
		<<warn "CONVERSION ERROR 79fa03dafe9b51c1e2e24cf60ffcd4ad">>
	<<else>>
		<!-- FAILED TO CONVERT
			*p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 1'' & gt ''exercise'', ''matrix''">Select</a></TD>'
		-----
			<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<TD><a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec:dynamic ''exer_rout<<ARGS[1]>>[$i] = 1''""">> <<gt 'exercise' 'matrix'">Select</a></TD>'>>

		-->
		<<warn "CONVERSION ERROR e9b93e32821f20d83e2a747b867ad2f5">>
	<</if>>
	<<if $exer_rout' + $location_var[$here][1] + '[$i] == 2>>
		<<if $location_var[$here][1] >= 3>>
			<<set exer_stam'+ARGS[1]+'['+i+'] = 10 * (10 - sport_clothes_exercise_bonus)>>
		<<else>>
			<<set exer_stam'+ARGS[1]+'['+i+'] = (30 * (10 - sport_clothes_exercise_bonus)) / 2>>
		<</if>>
		<!-- FAILED TO CONVERT
			*p '<TD>Selected</TD>'
		-----
			 * ERROR: FAILED TO CONVERT LITERAL: """p '<TD>Selected<""" / ERROR: FAILED TO CONVERT LITERAL: """TD>'"""

		-->
		<<warn "CONVERSION ERROR 79fa03dafe9b51c1e2e24cf60ffcd4ad">>
	<<else>>
		<!-- FAILED TO CONVERT
			*p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 2'' & gt ''exercise'', ''matrix''">Select</a></TD>'
		-----
			<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<TD><a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec:dynamic ''exer_rout<<ARGS[1]>>[$i] = 2''""">> <<gt 'exercise' 'matrix'">Select</a></TD>'>>

		-->
		<<warn "CONVERSION ERROR bc535a52ffbf458822fbc1ec2a3d60c7">>
	<</if>>
	<<if $exer_rout' + $location_var[$here][1] + '[$i] == 3>>
		<<if $location_var[$here][1] >= 3>>
			<<set exer_stam'+ARGS[1]+'['+i+'] = 15 * (10 - sport_clothes_exercise_bonus)>>
		<<else>>
			<<set exer_stam'+ARGS[1]+'['+i+'] = (45 * (10 - sport_clothes_exercise_bonus)) / 2>>
		<</if>>
		<!-- FAILED TO CONVERT
			*p '<TD>Selected</TD>'
		-----
			 * ERROR: FAILED TO CONVERT LITERAL: """p '<TD>Selected<""" / ERROR: FAILED TO CONVERT LITERAL: """TD>'"""

		-->
		<<warn "CONVERSION ERROR 79fa03dafe9b51c1e2e24cf60ffcd4ad">>
	<<else>>
		<!-- FAILED TO CONVERT
			*p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 3'' & gt ''exercise'', ''matrix''">Select</a></TD>'
		-----
			<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<TD><a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec:dynamic ''exer_rout<<ARGS[1]>>[$i] = 3''""">> <<gt 'exercise' 'matrix'">Select</a></TD>'>>

		-->
		<<warn "CONVERSION ERROR ed615211b1f57a3d003c368d72287fbc">>
	<</if>>
	<<if $exer_rout' + $location_var[$here][1] + '[$i] == 4>>
		<<if $location_var[$here][1] >= 3>>
			<<set exer_stam'+ARGS[1]+'['+i+'] = 20 * (10 - sport_clothes_exercise_bonus)>>
		<<else>>
			<<set exer_stam'+ARGS[1]+'['+i+'] = (60 * (10 - sport_clothes_exercise_bonus)) / 2>>
		<</if>>
		<!-- FAILED TO CONVERT
			*p '<TD>Selected</TD>'
		-----
			 * ERROR: FAILED TO CONVERT LITERAL: """p '<TD>Selected<""" / ERROR: FAILED TO CONVERT LITERAL: """TD>'"""

		-->
		<<warn "CONVERSION ERROR 79fa03dafe9b51c1e2e24cf60ffcd4ad">>
	<<else>>
		<!-- FAILED TO CONVERT
			*p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 4'' & gt ''exercise'', ''matrix''">Select</a></TD>'
		-----
			<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<TD><a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec:dynamic ''exer_rout<<ARGS[1]>>[$i] = 4''""">> <<gt 'exercise' 'matrix'">Select</a></TD>'>>

		-->
		<<warn "CONVERSION ERROR 3591c34ba30b3c52e89c1d9ad5f758e6">>
	<</if>>
	<<setinit $exer_stam[$i] = $exer_stam0[$i] + $exer_stam1[$i] + $exer_stam2[$i] + $exer_stam3[$i] + $exer_stam4[$i] + $exer_stam5[$i]>>
<</if>>
<<if $location_var[$here][0] == 'butt'>>
	 	<<gs 'exercise' 'tier2' (15*timemult) 'stren' 'butt_tr'>>
	<<set $timemult = 0>>
	<<if $wardrobe.clothingworntype != 'nude'>>
		<<image "pc/activities/exercises/butt_home_dressed.jpg">>
	<<elseif $wardrobe.isWearingPanties>>
		<<image "pc/activities/exercises/butt_home_underwear.jpg">>
	<<else>>
		<<image "pc/activities/exercises/butt_home_nude.jpg">>
	<</if>>
	<p>You do squats for $timestring minutes, strengthening your thighs and scupting your butt.</p>
	<<if getvar("$exer_auto") == 1>>
		<<act 'Continue'>>
			<<gt 'exercise' 'auto_end'>>
		<</act>>
	<<else>>
		<<act 'Continue'>>
			<<gt 'exercise' 'manual'>>
		<</act>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'hula'>>
	 	<<gs 'exercise' 'tier2' (timemult*15) 'agil' 'react'>>
	<<set $timemult = 0>>
	<<if $wardrobe.clothingworntype != 'nude'>>
		<<if $location_type == 'secluded'>>
			<<if $time.month >= 5 and $time.month <= 9>>
				<<image "pc/activities/exercises/hula_outdoor.jpg">>
			<<else>>
				<<video "pc/activities/exercises/hula_winter.mp4">>
			<</if>>
		<<else>>
			<<video "pc/activities/exercises/hula_dressed.mp4">>
		<</if>>
	<<elseif $wardrobe.isWearingPanties>>
		<<video "pc/activities/exercises/hula_underwear.mp4">>
	<<else>>
		<<video "pc/activities/exercises/hula_nude.mp4">>
	<</if>>
	<p>You improve your dexterity by using your hula hoop for $timestring minutes.</p>
	<<if getvar("$exer_auto") == 1>>
		<<act 'Continue'>>
			<<gt 'exercise' 'auto5'>>
		<</act>>
	<<else>>
		<<act 'Continue'>>
			<<gt 'exercise' 'manual'>>
		<</act>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'yoga'>>
	<<if $willday_yoga != $time.daystart>>
		<<set $willday_yoga = $time.daystart>>
		<<set $yoga_counter = 0>>
		<<warn 'JUMP MARKER ENCOUNTERED: :timeloopyoga'>>
		<<set $pc.willpower += rand(1,2)>>
		<<if $yoga_counter < Math.min(timemult - 1,4)>>
			<<setn $yoga_counter += 1>>

		<</if>>
	<</if>>
	<<gs 'exercise' 'tier2' (timemult*15) 'sprt' 'agil'>>
	<<set $timemult = 0>>
	<<if $wardrobe.clothingworntype != 'nude'>>
		<<if $location_type == 'secluded'>>
			<<image "pc/activities/exercises/yoga_dressed_outdoor.jpg">>
		<<else>>
			<<video "pc/activities/exercises/yoga_dressed.mp4">>
		<</if>>
	<<elseif $wardrobe.isWearingPanties>>
		<<video "pc/activities/exercises/yoga_underwear.mp4">>
	<<else>>
		<<image "pc/activities/exercises/yoga_nude.jpg">>
	<</if>>
	<p>You spend $timestring minutes stretching and straining your muscles in various poses, improving your will and flexibility.</p>
	<<if getvar("$exer_auto") == 1>>
		<<act 'Continue'>>
			<<gt 'exercise' 'auto4'>>
		<</act>>
	<<else>>
		<<act 'Continue'>>
			<<gt 'exercise' 'manual'>>
		<</act>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'rope'>>
	 	<<gs 'exercise' 'tier3' (15*timemult) 'agil' 'react'>>
	<<set $timemult = 0>>
	<<if $wardrobe.clothingworntype != 'nude'>>
		<<video "pc/activities/exercises/rope_dressed.mp4">>
	<<elseif $wardrobe.isWearingPanties>>
		<<image "pc/activities/exercises/rope_underwear.jpg">>
	<<else>>
		<<video "pc/activities/exercises/rope_nude.mp4">>
	<</if>>
	<p>You jump rope for $timestring minutes, improving your speed.</p>
	<<if getvar("$exer_auto") == 1>>
		<<act 'Continue'>>
			<<gt 'exercise' 'auto3'>>
		<</act>>
	<<else>>
		<<act 'Continue'>>
			<<gt 'exercise' 'manual'>>
		<</act>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'press'>>
	 	<<gs 'exercise' 'tier3' (15*timemult) 'vital'>>
	<<set $timemult = 0>>
	<<if $wardrobe.clothingworntype != 'nude'>>
		<<video "pc/activities/exercises/abdominal_dressed.mp4">>
	<<elseif $wardrobe.isWearingPanties>>
		<<video "pc/activities/exercises/abdominal_underwear.mp4">>
	<<else>>
		<<video "pc/activities/exercises/abdominal_nude.mp4">>
	<</if>>
	<p>You do a series of abdominal exercises for $timestring minutes, improving your endurance.</p>
	<<if getvar("$exer_auto") == 1>>
		<<act 'Continue'>>
			<<gt 'exercise' 'auto2'>>
		<</act>>
	<<else>>
		<<act 'Continue'>>
			<<gt 'exercise' 'manual'>>
		<</act>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'push'>>
	 	<<gs 'exercise' 'tier3' (15*timemult) 'stren'>>
	<<set $timemult = 0>>
	<<if $wardrobe.clothingworntype != 'nude'>>
		<<video "pc/activities/exercises/push_dressed.mp4">>
	<<elseif $wardrobe.isWearingPanties>>
		<<video "pc/activities/exercises/push_underwear.mp4">>
	<<else>>
		<<video "pc/activities/exercises/push_nude.mp4">>
	<</if>>
	<p>You do push-ups for $timestring minutes, improving your strength.</p>
	<<set $randpushfact = rand(-5,5)>>
	<<if $pc.pcs_energy < 40>>
		<<set $randpushfact -= RAND(1,10)>>

	<</if>>
	<<set $pushnum = ($pc.skillLevel("strength") * $pc.pcs_sleep * $pc.pcs_health) / (1 * 67 * $pc.healthmax) + $randpushfact>>
	<<if getvar("$pushnum") < 1>>
		<<set $pushnum = rand(1,5)>>

	<</if>>
	<<set $randpushfact to null>>
	<p><br>You managed to do pushnum push-ups. Your previous record is pushrecord.</p>
	<<if $pushrecord < $pushnum>>
		<<set $pushrecord = $pushnum>>

	<</if>>
	<<if getvar("$exer_auto") == 1>>
		<<act 'Continue'>>
			<<gt 'exercise' 'auto1'>>
		<</act>>
	<<else>>
		<<act 'Continue'>>
			<<gt 'exercise' 'manual'>>
		<</act>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'tier1'>>
	<<if $location_var[$here][1] == 0>>
		<<set $time.minutes += 15>>
		<<set $mult = 1>>
	<<else>>
		<<set $time.minutes += $larg(1)>>
		<<set $mult = ($larg(1) - 1) / 15 + 1>>
	<</if>>
	<<gs 'exercise' 'get_sport_clothes_exercise_bonus'>>
	<<set $pc.pcs_stam -= (5 * $mult * (10 - $sport_clothes_exercise_bonus)) / 2>>
	<<gs 'sweat' 'add' `(3*$mult)`>>
	<<set $pc.fat -= (4 + $mult / 2)>>
	<<set $pc.pcs_energy -= 1 * $mult>>
	<<set $pc.pcs_hydra -= 2 * $mult>>
	<<set $pc.mood += (3 + $mult)>>
	<<set $mcnt = 0>>
	<<warn 'JUMP MARKER ENCOUNTERED: :timeexploop1'>>
	<<if $location_var[$here][3] == ''>>
		<<gs 'exp_gain' $location_var[$here][2] 1 $steroid_dose>>
		<<if $location_var[$here][2] == 'vital' or $location_var[$here][2] == 'stren'>>
			<<gs 'exp_gain' $location_var[$here][2] `rand(0,steroid_dose)`>>
			<<if getvar("$steroid_dose") > 0 and rand(1,5) <= $steroid_dose>>
				<<set $pc.clit_size += rand(0,1)>>

			<</if>>
		<</if>>
	<<else>>
		<<set $i = 2>>
		<<warn 'JUMP MARKER ENCOUNTERED: :exploop1'>>
		<<if $location_var[$here][$i] != ''>>
			<<gs 'exp_gain' $location_var[$here][$i] `rand(0,1)` $steroid_dose>>
			<<if $location_var[$here][$i] == 'vital' or $location_var[$here][$i] == 'stren'>>
				<<gs 'exp_gain' $location_var[$here][$i] `rand(0,steroid_dose)`>>
				<<set $steroidcheck = 1>>
			<</if>>
			<<set $i += 1>>
			<<warn 'JUMP COMMAND ENCOUNTERED: jump exploop1'>>
		<<else>>
			<<if getvar("$steroidcheck") == 1 and getvar("$steroid_dose") > 0 and rand(1,5) <= $steroid_dose>>
				<<set $pc.clit_size += rand(0,1)>>

			<</if>>
			<<set $steroidcheck to null>>
			<<set $i to null>>
		<</if>>
	<</if>>
	<<set $mcnt += 1>>
	<<if $mcnt < $mult>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump timeexploop1'>>

	<</if>>
	<<set $mcnt to null>>
	<<set $mult to null>>
<</if>>
<<if $location_var[$here][0] == 'tier2'>>
	<<if $location_var[$here][1] == 0>>
		<<set $time.minutes += 15>>
		<<set $mult = 1>>
	<<else>>
		<<set $time.minutes += $larg(1)>>
		<<set $mult = ($larg(1) - 1) / 15 + 1>>
	<</if>>
	<<gs 'exercise' 'get_sport_clothes_exercise_bonus'>>
	<<set $pc.pcs_stam -= 5 * $mult * (10 - $sport_clothes_exercise_bonus)>>
	<<gs 'sweat' 'add' `(10*$mult)`>>
	<<set $pc.fat -= (3 + $mult / 2)>>
	<<set $pc.pcs_energy -= 2 * $mult>>
	<<set $pc.pcs_hydra -= 4 * $mult>>
	<<set $pc.mood += (5 + $mult)>>
	<<set $mcnt = 0>>
	<<warn 'JUMP MARKER ENCOUNTERED: :timeexploop2'>>
	<<if $location_var[$here][3] == ''>>
		<<gs 'exp_gain' $location_var[$here][2] `rand(2,3)` $steroid_dose>>
		<<if $location_var[$here][2] == 'vital' or $location_var[$here][2] == 'stren'>>
			<<gs 'exp_gain' $location_var[$here][2] `rand(0,steroid_dose)`>>
			<<if getvar("$steroid_dose") > 0 and rand(1,5) <= $steroid_dose>>
				<<set $pc.clit_size += rand(0,1)>>

			<</if>>
		<</if>>
	<<else>>
		<<set $i = 2>>
		<<warn 'JUMP MARKER ENCOUNTERED: :exploop2'>>
		<<if $location_var[$here][$i] != ''>>
			<<gs 'exp_gain' $location_var[$here][$i] `rand(1,2)` $steroid_dose>>
			<<if $location_var[$here][$i] == 'vital' or $location_var[$here][$i] == 'stren'>>
				<<gs 'exp_gain' $location_var[$here][$i] `rand(0,steroid_dose)`>>
				<<set $steroidcheck = 1>>
			<</if>>
			<<set $i += 1>>
			<<warn 'JUMP COMMAND ENCOUNTERED: jump exploop2'>>
		<<else>>
			<<if getvar("$steroidcheck") == 1 and getvar("$steroid_dose") > 0 and rand(1,5) <= $steroid_dose>>
				<<set $pc.clit_size += rand(0,1)>>

			<</if>>
			<<set $steroidcheck to null>>
			<<set $i to null>>
		<</if>>
	<</if>>
	<<set $mcnt += 1>>
	<<if $mcnt < $mult>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump timeexploop2'>>

	<</if>>
	<<set $mcnt to null>>
	<<set $mult to null>>
<</if>>
<<if $location_var[$here][0] == 'tier3'>>
	<<if $location_var[$here][1] == 0>>
		<<set $time.minutes += 15>>
		<<set $mult = 1>>
	<<else>>
		<<set $time.minutes += $larg(1)>>
		<<set $mult = ($larg(1) - 1) / 15 + 1>>
	<</if>>
	<<gs 'exercise' 'get_sport_clothes_exercise_bonus'>>
	<<set $pc.pcs_stam -= (15 * $mult * (10 - $sport_clothes_exercise_bonus)) / 2>>
	<<gs 'sweat' 'add' `(15*$mult)`>>
	<<set $pc.fat -= (2 + $mult / 2)>>
	<<set $pc.pcs_energy -= 3 * $mult>>
	<<set $pc.pcs_hydra -= 6 * $mult>>
	<<set $pc.mood += (5 + $mult)>>
	<<set $mcnt = 0>>
	<<warn 'JUMP MARKER ENCOUNTERED: :timeexploop3'>>
	<<if $location_var[$here][3] == ''>>
		<<gs 'exp_gain' $location_var[$here][2] `rand(3,5)` $steroid_dose>>
		<<if $location_var[$here][2] == 'vital' or $location_var[$here][2] == 'stren'>>
			<<gs 'exp_gain' $location_var[$here][2] `rand(0,steroid_dose)`>>
			<<if getvar("$steroid_dose") > 0 and rand(1,5) <= $steroid_dose>>
				<<set $pc.clit_size += rand(0,1)>>

			<</if>>
		<</if>>
	<<else>>
		<<set $i = 2>>
		<<warn 'JUMP MARKER ENCOUNTERED: :exploop3'>>
		<<if $location_var[$here][$i] != ''>>
			<<gs 'exp_gain' $location_var[$here][$i] `rand(2,3)` $steroid_dose>>
			<<if $location_var[$here][$i] == 'vital' or $location_var[$here][$i] == 'stren'>>
				<<gs 'exp_gain' $location_var[$here][$i] `rand(0,steroid_dose)`>>
				<<set $steroidcheck = 1>>
			<</if>>
			<<set $i += 1>>
			<<warn 'JUMP COMMAND ENCOUNTERED: jump exploop3'>>
		<<else>>
			<<if getvar("$steroidcheck") == 1 and getvar("$steroid_dose") > 0 and rand(1,5) <= $steroid_dose>>
				<<set $pc.clit_size += rand(0,1)>>

			<</if>>
			<<set $steroidcheck to null>>
			<<set $i to null>>
		<</if>>
	<</if>>
	<<set $mcnt += 1>>
	<<if $mcnt < $mult>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump timeexploop3'>>

	<</if>>
	<<set $mcnt to null>>
	<<set $mult to null>>
<</if>>
<<if $location_var[$here][0] == 'tier4'>>
	<<if $location_var[$here][1] == 0>>
		<<set $time.minutes += 15>>
		<<set $mult = 1>>
	<<else>>
		<<set $time.minutes += $larg(1)>>
		<<set $mult = ($larg(1) - 1) / 15 + 1>>
	<</if>>
	<<gs 'exercise' 'get_sport_clothes_exercise_bonus'>>
	<<set $pc.pcs_stam -= (25 * $mult * (10 - $sport_clothes_exercise_bonus)) / 2>>
	<<gs 'sweat' 'add' `(25*$mult)`>>
	<<set $pc.fat -= (1 + $mult / 2)>>
	<<set $pc.pcs_energy -= 4 * $mult>>
	<<set $pc.pcs_hydra -= 12 * $mult>>
	<<set $pc.mood += (5 + $mult)>>
	<<set $mcnt = 0>>
	<<warn 'JUMP MARKER ENCOUNTERED: :timeexploop4'>>
	<<if $location_var[$here][3] == ''>>
		<<gs 'exp_gain' $location_var[$here][2] `rand(7,10)` $steroid_dose>>
		<<if $location_var[$here][2] == 'vital' or $location_var[$here][2] == 'stren'>>
			<<gs 'exp_gain' $location_var[$here][2] `rand(0,steroid_dose)`>>
			<<if getvar("$steroid_dose") > 0 and rand(1,5) <= $steroid_dose>>
				<<set $pc.clit_size += rand(0,1)>>

			<</if>>
		<</if>>
	<<else>>
		<<set $i = 2>>
		<<warn 'JUMP MARKER ENCOUNTERED: :exploop4'>>
		<<if $location_var[$here][$i] != ''>>
			<<gs 'exp_gain' $location_var[$here][$i] `rand(3,5)` $steroid_dose>>
			<<if $location_var[$here][$i] == 'vital' or $location_var[$here][$i] == 'stren'>>
				<<gs 'exp_gain' $location_var[$here][$i] `rand(0,steroid_dose)`>>
				<<set $steroidcheck = 1>>
			<</if>>
			<<set $i += 1>>
			<<warn 'JUMP COMMAND ENCOUNTERED: jump exploop4'>>
		<<else>>
			<<if getvar("$steroidcheck") == 1 and getvar("$steroid_dose") > 0 and rand(1,5) <= $steroid_dose>>
				<<set $pc.clit_size += rand(0,1)>>

			<</if>>
			<<set $steroidcheck to null>>
			<<set $i to null>>
		<</if>>
	<</if>>
	<<set $mcnt += 1>>
	<<if $mcnt < $mult>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump timeexploop4'>>

	<</if>>
	<<set $mcnt to null>>
	<<set $mult to null>>
<</if>>
<<if $location_var[$here][0] == 'timestring'>>
	<<if getvar("$timemult") == 1>>
		<<set $timestring = 'fifteen'>>

	<</if>>
	<<if getvar("$timemult") == 2>>
		<<set $timestring = 'thirty'>>

	<</if>>
	<<if getvar("$timemult") == 3>>
		<<set $timestring = 'forty-five'>>

	<</if>>
	<<if getvar("$timemult") == 4>>
		<<set $timestring = 'sixty'>>

	<</if>>
<</if>>
<<if $location_var[$here][0] == 'get_sport_clothes_exercise_bonus'>>
	<<set $sport_clothes_exercise_bonus = 0>>
	<<if $wardrobe.braworntype == 'sport' or $wardrobe.braworntype == 'danilovich'>>
		<<set $sport_clothes_exercise_bonus += 1>>
	<<elseif $wardrobe.PCloBra == 1 and $wardrobe.clothingworntype == 'danilovich_outfits'>>
		<<set $sport_clothes_exercise_bonus += 1>>
	<</if>>
	<<if $wardrobe.pantyworntype == 'sport' or $wardrobe.pantyworntype == 'danilovich'>>
		<<set $sport_clothes_exercise_bonus += 1>>
	<<elseif getvar("$PCLoPanties") == 1 and $wardrobe.clothingworntype == 'danilovich_outfits'>>
		<<set $sport_clothes_exercise_bonus += 1>>
	<</if>>
	<<if $wardrobe.clothingworntype == 'danilovich_outfits'>>
		<<set $sport_clothes_exercise_bonus += 1>>
	<</if>>
	<<if $wardrobe.shoeworntype == 'danilovich'>>
		<<set $sport_clothes_exercise_bonus += 1>>
	<</if>>
<</if>>
