:: UnitAppearance
<<set $here = 'UnitAppearance'>>
<<set $ARGS = $location_var[$here]>>
<<if !$location_var[$here][0]>>
	<<set $unitDisplayType = $larg(1)>>
	<<set $unitRowType = $larg(2)>>
	 	Hotcat
	<table>
	<<gs 'UnitAppearance' 'GenerateSvetas'>>
	</table>
<</if>>
<<if $location_var[$here][0] == 'gashtest'>>
<</if>>
<<if $location_var[$here][0] == 'GenRow'>>
	<<if getvar("$unitDisplayType") == 0>>
		<<if getvar("$unitRowType") == 0>>
			<tr><td align="left"><<$larg(1)>></td><td align="right"><<unitHotcat>></td></td><td align="right"><<unitpcs_apprnc>></td><td align="right"><<unitbmi_calc>></td><td align="right"><<unitbodykoef>></td><td align="right"><<unitHeadBonus>></td><td align="right"><<unitAttributeBonus>></td><td align="right"><<unitclothingbonus>></td><td align="right"><<unitAccessoriesBonus>></td><td align="right"><<unitGroomingBonus>></td><td align="right"><<unitGroomingPenalty>></td><td align="right"><<unitpcs_apprncbase>></tr>
		<<else>>
			<tr><td align="left"><<$larg(1)>></td><td align="right"><<unitclothingbonus1>></td><td align="right"><<unitclothingbonus2>></td><td align="right"><<unitclothingbonus3>></td><td align="right"><<unitclothingbonus4>></td><td align="right"><<unitclothingbonus5>></td><td align="right"><<unitclothingbonus6>></td><td align="right"><<unitclothingbonus7>></td><td align="right"><<unitclothingbonusnude>></td></tr>
		<</if>>
	<<else>>
		<<$larg(1)>>,<<unitHotcat>>,<<unitpcs_apprnc>>,<<unitbmi_calc>>,<<unitbodykoef>>,<<unitHeadBonus>>,<<unitAttributeBonus>>,<<unitclothingbonus>>,<<unitAccessoriesBonus>>,<<unitGroomingBonus>>,<<unitGroomingPenalty>>,<<unitpcs_apprncbase>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'GenRowBreak'>>
	<<if getvar("$unitDisplayType") == 0>>
		<<if getvar("$unitRowType") == 0>>
			<tr><th align="left"><<$larg(1)>></th><th align="right">hotcat</th><th align="right">pcs_apprnc</th><th align="right">bmi</th><th>bodykoef</th><th align="right">HeadBonus</th><th align="right">AttributeBonus</th><th align="right">clothingbonus</th><th align="right">AccessoriesBonus</th><th align="right">GroomingBonus</th><th align="right">GroomingPenalty</th><th align="right">pcs_apprncbase</th></tr>
		<<else>>
			<tr><th align="left"><<$larg(1)>></th><th align="right">clothingbonus Q1</th></th><th align="right">clothingbonus Q2</th></th><th align="right">clothingbonus Q3</th></th><th align="right">clothingbonus Q4</th></th><th align="right">clothingbonus Q5</th></th><th align="right">clothingbonus Q6</th></th><th align="right">clothingbonus Q7</th><th align="right">clothingbonus Nude</th></tr>
		<</if>>
	<<else>>
		<p>$larg(1),hotcat,pcs_apprnc,bmi,bodykoef,HeadBonus,AttributeBonus,clothingbonus,AccessoriesBonus,GroomingBonus,GroomingPenalty,pcs_apprncbase</p>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'calcHotcat'>>
	<<set $unitbmi_calc = setup.func('body', 'bmicalc', unitsalo, unitpcs_hgt)>>
	<<set $unitbodykoef = setup.func('body', 'setbodykoef', unitbmi_calc, unitmuscularity, unitsalocatnow, unitvofat)>>
	<<set $unitHeadBonus = setup.func('body', 'calcHeadBonus', unitpcs_lashes, unitpcs_eyesize, unitpcs_lip, unitpcs_teeth, unitbmi_calc)>>
	<<set $unitAttributeBonus = setup.func('body', 'calcAttributeBonus', unitpcs_agil, unitpcs_vital, unitbmi_calc)>>
	<<set $unitpcs_apprncbase = setup.func('body', 'basebeautycalc2', unitResetBase, unitvidage, unitpcs_skin, unitbodykoef, unitHeadBonus, unitAttributeBonus, unitpcs_apprncbase)>>
	<<set $unitclothingbonus = setup.func('body', 'calcClothesBonus', unitPXCloThinness, unitPXCloTopCut, unitPXCloBottomShortness, unitPCloQuality, $unitclothingworntype, unitbmi_calc)>>
	<<set $unitAccessoriesBonus = setup.func('body', 'calcAccessoriesBonus', unitbonusZ, unitPShoQuality, $unitpantyworntype, $unitbraworntype)>>
	<<set $unitGroomingBonus = setup.func('body', 'calcGroomingBonus', unitpcs_lipbalm, unitmopkoef, unitpcs_hairbsh, unitpcs_breath, unitdeodorant_on, unitbmi_calc)>>
	<<set $unitGroomingPenalty = setup.func('body', 'calcGroomingPenalty', unitpcs_hairlng, unitpcs_sweat, unitglassvnesh, unitdyevmod, unitlegkoef)>>
	<<set $unitHotcat = setup.func('body', 'calcHotcat', unitpcs_apprncbase, unitsupnatvnesh, unitclothingbonus, unitAccessoriesBonus, unitGroomingBonus, unitGroomingPenalty)>>
	<!-- !!use value without the cap as what gets returned in temppcs_apprnc is capped at 200-->
	<<set $unitpcs_apprnc = $temppcs_maxapprnc>>  
	<<if getvar("$unitRowType") == 0>>
		<<gs 'UnitAppearance' 'GenRow' $location_var[$here][1]>>

	<</if>>
<</if>>
<<if $location_var[$here][0] == 'headbonus'>>
	 	HeadBonus
	<table>
	<!-- FAILED TO CONVERT
		'<tr>
	-----
		ERROR: FAILED TO CONVERT LITERAL: """'<tr>"""

	-->
	<<warn "CONVERSION ERROR b5abaf6429f6bbc0fa39be2a36c4ef55">>
	<th>headbonus</th>
	<th>pcs_lashes</th>
	<th>pcs_eyesize</th>
	<th>pcs_lip</th>
	<th>pcs_teeth</th>
	<!-- FAILED TO CONVERT
		</tr>'
	-----
		ERROR: FAILED TO CONVERT LITERAL: """<""" / ERROR: FAILED TO CONVERT LITERAL: """tr>'"""

	-->
	<<warn "CONVERSION ERROR 1fd83a3e6ce5edd7d7a0d8bf05ea889b">>
	<<gs 'UnitAppearance' 'HeadBonusCalc'>>
	</table>
<</if>>
<<if $location_var[$here][0] == 'HeadBonusCalc'>>
	<<gs 'UnitAppearance' 'GenHeadRow' 5 3 3 -1>>
	<<gs 'UnitAppearance' 'GenHeadRow' 4 3 4 -1>>
	<<gs 'UnitAppearance' 'GenHeadRow' 3 2 2 0>>
	<<gs 'UnitAppearance' 'GenHeadRow' 2 2 2 0>>
	<<gs 'UnitAppearance' 'GenHeadRow' 1 1 1 1>>
	<<gs 'UnitAppearance' 'GenHeadRow' 0 0 0 3>>
<</if>>
<<if $location_var[$here][0] == 'GenHeadRow'>>
	<<set $unitHeadBonus = setup.func('body', 'calcHeadBonus', ARGS[1], ARGS[2], ARGS[3], ARGS[4])>>
	<tr>
	<td><<unitHeadBonus>></td>
	<td><<ARGS[1]>></td>
	<td><<ARGS[2]>></td>
	<td><<ARGS[3]>></td>
	<td><<ARGS[4]>></td>
	</tr>
<</if>>
<<if $location_var[$here][0] == 'attributebonus'>>
	 	AttributeBonus
	<table>
	<!-- FAILED TO CONVERT
		'<tr>
	-----
		ERROR: FAILED TO CONVERT LITERAL: """'<tr>"""

	-->
	<<warn "CONVERSION ERROR b5abaf6429f6bbc0fa39be2a36c4ef55">>
	<th>attributebonus</th>
	<th>pcs_agil</th>
	<th>pcs_vital</th>
	<!-- FAILED TO CONVERT
		</tr>'
	-----
		ERROR: FAILED TO CONVERT LITERAL: """<""" / ERROR: FAILED TO CONVERT LITERAL: """tr>'"""

	-->
	<<warn "CONVERSION ERROR 1fd83a3e6ce5edd7d7a0d8bf05ea889b">>
	<<gs 'UnitAppearance' 'AttribBonusCalc'>>
	</table>
<</if>>
<<if $location_var[$here][0] == 'AttribBonusCalc'>>
	<<gs 'UnitAppearance' 'GenAttribRow' 100 100>>
	<<gs 'UnitAppearance' 'GenAttribRow' 80 80>>
	<<gs 'UnitAppearance' 'GenAttribRow' 60 60>>
	<<gs 'UnitAppearance' 'GenAttribRow' 40 40>>
	<<gs 'UnitAppearance' 'GenAttribRow' 20 20>>
	<<gs 'UnitAppearance' 'GenAttribRow' 0 0>>
<</if>>
<<if $location_var[$here][0] == 'GenAttribRow'>>
	<<set $unitAttribBonus = setup.func('body', 'calcAttributeBonus', ARGS[1], ARGS[2])>>
	<tr>
	<td><<unitAttribBonus>></td>
	<td><<ARGS[1]>></td>
	<td><<ARGS[2]>></td>
	</tr>
<</if>>
<<if $location_var[$here][0] == 'GenerateSvetas'>>
	<<set $svetadesc = 'Current Sveta'>>
	<<set $unitsalo = $pc.salo>>
	<<set $unitpcs_hgt = $pc.pcs_hgt>>
	<<set $unitmuscularity = $pc.muscularity>>
	<<set $unitsalocatnow = $pc.salocatnow>>
	<<set $unitvofat = $vofat>>
	<<set $unitpcs_lashes = $pc.eyelashes>>
	<<set $unitpcs_eyesize = $pc.eyesize>>
	<<set $unitpcs_lip = $pc.lip_size>>
	<<set $unitpcs_teeth = $pc.pcs_teeth>>
	<<set $unitpcs_agil = $pc.skillLevel("agility")>>
	<<set $unitpcs_vital = $pc.vitality>>
	<<set $unitvidage = $pc.visualAge>>
	<<set $unitpcs_skin = $pc.pcs_skin>>
	<<set $unitPXCloThinness = $wardrobe.PXCloThinness>>
	<<set $unitPXCloTopCut = $wardrobe.PXCloTopCut>>
	<<set $unitPXCloBottomShortness = $wardrobe.PXCloBottomShortness>>
	<<set $unitPCloQuality = $wardrobe.PCloQuality>>
	<<set $unitclothingworntype = $wardrobe.clothingworntype>>
	<<set $unitbonusZ = $bonusZ>>
	<<set $unitPShoQuality = $PShoQuality>>
	<<set $unitpantyworntype = $wardrobe.pantyworntype>>
	<<set $unitbraworntype = $wardrobe.braworntype>>
	<<set $unitpcs_lipbalm = $pc.pcs_lipbalm>>
	<<set $unitmopkoef = $mopkoef>>
	<<set $unitpcs_hairbsh = $pc.pcs_hairbsh>>
	<<set $unitpcs_breath = $pc.pcs_breath>>
	<<set $unitdeodorant_on = $pc.deodorant_on>>
	<<set $unitpcs_hairlng = $pc.pcs_hairlng>>
	<<set $unitpcs_sweat = $pc.pcs_sweat>>
	<<set $unitglassvnesh = $pc.glassvnesh>>
	<<set $unitdyevmod = $dyevmod>>
	<<set $unitlegkoef = $legkoef>>
	<<set $unitsupnatvnesh = $supnatvnesh>>
	<<set $unitpcs_apprncbase = $pc.pcs_apprncbase>>
	<<set $unitResetBase = 0>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Queen Nerd Start'>>
	<<set $unitsalo = 103>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 30>>
	<<set $unitsalocatnow = 5>>
	<<set $unitvofat = 0>>
	<<set $unitpcs_lashes = 1>>
	<<set $unitpcs_eyesize = 3>>
	<<set $unitpcs_lip = 2>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 30>>
	<<set $unitpcs_vital = 30>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 50>>
	<<set $unitPXCloThinness = 300>>
	<<set $unitPXCloTopCut = 200>>
	<<set $unitPXCloBottomShortness = 250>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 300>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Good Student Start'>>
	<<set $unitsalo = 161>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 30>>
	<<set $unitsalocatnow = 8>>
	<<set $unitvofat = 10>>
	<<set $unitpcs_lashes = 0>>
	<<set $unitpcs_eyesize = 1>>
	<<set $unitpcs_lip = 1>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 30>>
	<<set $unitpcs_vital = 30>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 20>>
	<<set $unitPXCloThinness = 200>>
	<<set $unitPXCloTopCut = 100>>
	<<set $unitPXCloBottomShortness = 100>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 200>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 10>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Computer Geek Start'>>
	<<set $unitsalo = 132>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 30>>
	<<set $unitsalocatnow = 7>>
	<<set $unitvofat = 3>>
	<<set $unitpcs_lashes = 0>>
	<<set $unitpcs_eyesize = 1>>
	<<set $unitpcs_lip = 1>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 30>>
	<<set $unitpcs_vital = 30>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 30>>
	<<set $unitPXCloThinness = 300>>
	<<set $unitPXCloTopCut = 200>>
	<<set $unitPXCloBottomShortness = 250>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 120>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 10>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Chess Player Start'>>
	<<set $unitsalo = 40>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 30>>
	<<set $unitsalocatnow = 2>>
	<<set $unitvofat = 0>>
	<<set $unitpcs_lashes = 0>>
	<<set $unitpcs_eyesize = 1>>
	<<set $unitpcs_lip = 1>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 30>>
	<<set $unitpcs_vital = 30>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 35>>
	<<set $unitPXCloThinness = 250>>
	<<set $unitPXCloTopCut = 300>>
	<<set $unitPXCloBottomShortness = 100>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 200>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Volleyball Start'>>
	<<set $unitsalo = 75>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 45>>
	<<set $unitsalocatnow = 4>>
	<<set $unitvofat = 0>>
	<<set $unitpcs_lashes = 1>>
	<<set $unitpcs_eyesize = 3>>
	<<set $unitpcs_lip = 2>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 50>>
	<<set $unitpcs_vital = 50>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 50>>
	<<set $unitPXCloThinness = 300>>
	<<set $unitPXCloTopCut = 200>>
	<<set $unitPXCloBottomShortness = 250>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 55>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Dancer Start'>>
	<<set $unitsalo = 55>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 40>>
	<<set $unitsalocatnow = 3>>
	<<set $unitvofat = 0>>
	<<set $unitpcs_lashes = 1>>
	<<set $unitpcs_eyesize = 2>>
	<<set $unitpcs_lip = 2>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 55>>
	<<set $unitpcs_vital = 50>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 60>>
	<<set $unitPXCloThinness = 350>>
	<<set $unitPXCloTopCut = 200>>
	<<set $unitPXCloBottomShortness = 250>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 0>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 200>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Runner Start'>>
	<<set $unitsalo = 51>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 45>>
	<<set $unitsalocatnow = 3>>
	<<set $unitvofat = 0>>
	<<set $unitpcs_lashes = 1>>
	<<set $unitpcs_eyesize = 3>>
	<<set $unitpcs_lip = 2>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 50>>
	<<set $unitpcs_vital = 60>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 40>>
	<<set $unitPXCloThinness = 350>>
	<<set $unitPXCloTopCut = 200>>
	<<set $unitPXCloBottomShortness = 250>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 55>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Football Start'>>
	<<set $unitsalo = 80>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 50>>
	<<set $unitsalocatnow = 4>>
	<<set $unitvofat = 0>>
	<<set $unitpcs_lashes = 1>>
	<<set $unitpcs_eyesize = 3>>
	<<set $unitpcs_lip = 2>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 40>>
	<<set $unitpcs_vital = 50>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 50>>
	<<set $unitPXCloThinness = 300>>
	<<set $unitPXCloTopCut = 200>>
	<<set $unitPXCloBottomShortness = 250>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 55>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Popular Friends Start'>>
	<<set $unitsalo = 80>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 30>>
	<<set $unitsalocatnow = 4>>
	<<set $unitvofat = 0>>
	<<set $unitpcs_lashes = 1>>
	<<set $unitpcs_eyesize = 2>>
	<<set $unitpcs_lip = 2>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 30>>
	<<set $unitpcs_vital = 30>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 50>>
	<<set $unitPXCloThinness = 300>>
	<<set $unitPXCloTopCut = 300>>
	<<set $unitPXCloBottomShortness = 250>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 200>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Popular Beautiful Start'>>
	<<set $unitsalo = 65>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 30>>
	<<set $unitsalocatnow = 3>>
	<<set $unitvofat = 0>>
	<<set $unitpcs_lashes = 2>>
	<<set $unitpcs_eyesize = 2>>
	<<set $unitpcs_lip = 3>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 30>>
	<<set $unitpcs_vital = 30>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 70>>
	<<set $unitPXCloThinness = 350>>
	<<set $unitPXCloTopCut = 300>>
	<<set $unitPXCloBottomShortness = 250>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 300>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Gopnik Start'>>
	<<set $unitsalo = 80>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 40>>
	<<set $unitsalocatnow = 4>>
	<<set $unitvofat = 0>>
	<<set $unitpcs_lashes = 1>>
	<<set $unitpcs_eyesize = 3>>
	<<set $unitpcs_lip = 2>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 35>>
	<<set $unitpcs_vital = 40>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 40>>
	<<set $unitPXCloThinness = 350>>
	<<set $unitPXCloTopCut = 250>>
	<<set $unitPXCloBottomShortness = 250>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 120>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Punk Start'>>
	<<set $unitsalo = 80>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 40>>
	<<set $unitsalocatnow = 4>>
	<<set $unitvofat = 0>>
	<<set $unitpcs_lashes = 1>>
	<<set $unitpcs_eyesize = 3>>
	<<set $unitpcs_lip = 2>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 35>>
	<<set $unitpcs_vital = 35>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 40>>
	<<set $unitPXCloThinness = 350>>
	<<set $unitPXCloTopCut = 250>>
	<<set $unitPXCloBottomShortness = 250>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 55>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Viteks Girlfriend Start'>>
	<<set $unitsalo = 60>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 30>>
	<<set $unitsalocatnow = 3>>
	<<set $unitvofat = 0>>
	<<set $unitpcs_lashes = 1>>
	<<set $unitpcs_eyesize = 2>>
	<<set $unitpcs_lip = 2>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 30>>
	<<set $unitpcs_vital = 30>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 50>>
	<<set $unitPXCloThinness = 350>>
	<<set $unitPXCloTopCut = 300>>
	<<set $unitPXCloBottomShortness = 250>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 200>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Alt Party Girl Start'>>
	<<set $unitsalo = 60>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 35>>
	<<set $unitsalocatnow = 3>>
	<<set $unitvofat = 0>>
	<<set $unitpcs_lashes = 1>>
	<<set $unitpcs_eyesize = 2>>
	<<set $unitpcs_lip = 2>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 40>>
	<<set $unitpcs_vital = 40>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 60>>
	<<set $unitPXCloThinness = 300>>
	<<set $unitPXCloTopCut = 250>>
	<<set $unitPXCloBottomShortness = 300>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 120>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Outcast No Friends Start'>>
	<<set $unitsalo = 104>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 30>>
	<<set $unitsalocatnow = 5>>
	<<set $unitvofat = 0>>
	<<set $unitpcs_lashes = 0>>
	<<set $unitpcs_eyesize = 1>>
	<<set $unitpcs_lip = 1>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 30>>
	<<set $unitpcs_vital = 30>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 10>>
	<<set $unitPXCloThinness = 200>>
	<<set $unitPXCloTopCut = 100>>
	<<set $unitPXCloBottomShortness = 100>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 200>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Ugly Duckling Start'>>
	<<set $unitsalo = 220>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 30>>
	<<set $unitsalocatnow = 11>>
	<<set $unitvofat = 25>>
	<<set $unitpcs_lashes = 2>>
	<<set $unitpcs_eyesize = 0>>
	<<set $unitpcs_lip = 0>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 30>>
	<<set $unitpcs_vital = 30>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 1>>
	<<set $unitPXCloThinness = 150>>
	<<set $unitPXCloTopCut = 100>>
	<<set $unitPXCloBottomShortness = 100>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 200>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 10>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Good Girl Start'>>
	<<set $unitsalo = 104>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 30>>
	<<set $unitsalocatnow = 5>>
	<<set $unitvofat = 0>>
	<<set $unitpcs_lashes = 1>>
	<<set $unitpcs_eyesize = 3>>
	<<set $unitpcs_lip = 2>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 30>>
	<<set $unitpcs_vital = 30>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 30>>
	<<set $unitPXCloThinness = 150>>
	<<set $unitPXCloTopCut = 100>>
	<<set $unitPXCloBottomShortness = 100>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 300>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Slut Start'>>
	<<set $unitsalo = 60>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 30>>
	<<set $unitsalocatnow = 3>>
	<<set $unitvofat = 0>>
	<<set $unitpcs_lashes = 1>>
	<<set $unitpcs_eyesize = 2>>
	<<set $unitpcs_lip = 2>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 30>>
	<<set $unitpcs_vital = 30>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 60>>
	<<set $unitPXCloThinness = 350>>
	<<set $unitPXCloTopCut = 400>>
	<<set $unitPXCloBottomShortness = 300>>
	<<set $unitPCloQuality = 2>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'none'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 120>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<set $svetadesc = 'Goth Start'>>
	<<set $unitsalo = 45>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitmuscularity = 30>>
	<<set $unitsalocatnow = 2>>
	<<set $unitvofat = 0>>
	<<set $unitpcs_lashes = 1>>
	<<set $unitpcs_eyesize = 3>>
	<<set $unitpcs_lip = 1>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 30>>
	<<set $unitpcs_vital = 30>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 50>>
	<<set $unitPXCloThinness = 350>>
	<<set $unitPXCloTopCut = 200>>
	<<set $unitPXCloBottomShortness = 250>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $unitpcs_lipbalm = 0>>
	<<set $unitmopkoef = 0>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 0>>
	<<set $unitpcs_hairlng = 265>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<gs 'UnitAppearance' 'GenerateSvetaOptions' $svetadesc>>
	<<gs 'UnitAppearance' 'GenRowBreak' 'BMI Maximums'>>
	<<set $unitmuscularity = 100>>
	<<set $unitpcs_lashes = 5>>
	<<set $unitpcs_eyesize = 3>>
	<<set $unitpcs_lip = 3>>
	<<set $unitpcs_teeth = -1>>
	<<set $unitpcs_agil = 100>>
	<<set $unitpcs_vital = 100>>
	<<set $unitvidage = 20>>
	<<set $unitpcs_skin = 100>>
	<<set $unitpcs_lipbalm = 1>>
	<<set $unitmopkoef = 30>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 1>>
	<<set $unitdeodorant_on = 1>>
	<<set $unitpcs_hairlng = 200>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 0>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitclothingworntype = ''>>
	<<set $unitPCloQuality = 7>>
	<<set $unitbonusZ = 5>>
	<<set $unitPShoQuality = 7>>
	<<set $unitpantyworntype = 'lusso'>>
	<<set $unitbraworntype = 'lusso'>>
	<<set $svetadesc = 'Max morbidly obese'>>
	<<set $unitsalo = 220>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'Max very severely obese'>>
	<<set $unitsalo = 190>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'Max severely obese'>>
	<<set $unitsalo = 160>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'Max moderately obese'>>
	<<set $unitsalo = 135>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'Max overweight'>>
	<<set $unitsalo = 105>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'Max normal'>>
	<<set $unitsalo = 75>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'Max underweight'>>
	<<set $unitsalo = 40>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'Max severely underweight'>>
	<<set $unitsalo = 25>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<gs 'UnitAppearance' 'GenRowBreak' 'BMI Average Apperance cheap clothes'>>
	<<set $unitmuscularity = 30>>
	<<set $unitpcs_lashes = 1>>
	<<set $unitpcs_eyesize = 3>>
	<<set $unitpcs_lip = 1>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 30>>
	<<set $unitpcs_vital = 30>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 50>>
	<<set $unitpcs_lipbalm = 1>>
	<<set $unitmopkoef = 19>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 1>>
	<<set $unitpcs_hairlng = 200>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 0>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitclothingworntype = 'gm_outfits'>>
	<<set $unitPCloQuality = 1>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 1>>
	<<set $unitpantyworntype = 'gm'>>
	<<set $unitbraworntype = 'gm'>>
	<<set $svetadesc = 'morbidly obese'>>
	<<set $unitsalo = 220>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'very severely obese'>>
	<<set $unitsalo = 190>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'severely obese'>>
	<<set $unitsalo = 160>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'moderately obese'>>
	<<set $unitsalo = 135>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'overweight'>>
	<<set $unitsalo = 105>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'normal'>>
	<<set $unitsalo = 75>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'underweight'>>
	<<set $unitsalo = 40>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'severely underweight'>>
	<<set $unitsalo = 25>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<gs 'UnitAppearance' 'GenRowBreak' 'BMI Average Apperance expensive clothes'>>
	<<set $unitmuscularity = 30>>
	<<set $unitpcs_lashes = 1>>
	<<set $unitpcs_eyesize = 3>>
	<<set $unitpcs_lip = 1>>
	<<set $unitpcs_teeth = 0>>
	<<set $unitpcs_agil = 30>>
	<<set $unitpcs_vital = 30>>
	<<set $unitvidage = 16>>
	<<set $unitpcs_skin = 50>>
	<<set $unitpcs_lipbalm = 1>>
	<<set $unitmopkoef = 19>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 0>>
	<<set $unitdeodorant_on = 1>>
	<<set $unitpcs_hairlng = 200>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 0>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 0>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitclothingworntype = ''>>
	<<set $unitPCloQuality = 7>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 7>>
	<<set $unitpantyworntype = 'lusso'>>
	<<set $unitbraworntype = 'lusso'>>
	<<set $svetadesc = 'morbidly obese'>>
	<<set $unitsalo = 220>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'very severely obese'>>
	<<set $unitsalo = 190>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'severely obese'>>
	<<set $unitsalo = 160>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'moderately obese'>>
	<<set $unitsalo = 135>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'overweight'>>
	<<set $unitsalo = 105>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'normal'>>
	<<set $unitsalo = 75>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'underweight'>>
	<<set $unitsalo = 40>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'severely underweight'>>
	<<set $unitsalo = 25>>
	<<gs 'UnitAppearance' 'CalcSaloVars'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
<</if>>
<<if $location_var[$here][0] == 'CalcSaloVars'>>
	<<set $unitvhips = ($unitsalo - 80) / 2>>
	<<set $unithrtemp = (2 * $unitpcs_agil + $unitpcs_vital + $unitmuscularity) / 4>>
	<<if getvar("$unithrtemp") < 35>>
		<<set $unithratio = 60>>
	<<elseif getvar("$unithrtemp") < 45>>
		<<set $unithratio = 59>>
	<<elseif getvar("$unithrtemp") < 60>>
		<<set $unithratio = 58>>
	<<elseif getvar("$unithrtemp") < 80>>
		<<set $unithratio = 57>>
	<<else>>
		<<set $unithratio = 56>>
	<</if>>
	<<set $unitvofat = (($unitpcs_hgt * $unithratio) / 100 + $unitvhips - ($unitpcs_hgt * 72) / 100) / 2>>
	<<set $unitsalocatnow = 1 + ($unitsalo - 10) / 20>>
	<<set $unitbmi_calc = setup.func('body', 'bmicalc', unitsalo, unitpcs_hgt)>>
	<<gs 'UnitAppearance' 'GetClothThick' $unitbmi_calc>>
<</if>>
<<if $location_var[$here][0] == 'GenerateSvetaOptions'>>
	<<gs 'UnitAppearance' 'SaveBase'>>
	<<gs 'UnitAppearance' 'GenRowBreak' $location_var[$here][1]>>
	<<set $unitbmi_calc = setup.func('body', 'bmicalc', unitsalo, unitpcs_hgt)>>
	<<set $svetadesc = 'Current Clothes'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<set $svetadesc = 'Naked'>>
	<<set $unitPXCloThinness = 0>>
	<<set $unitPXCloTopCut = 0>>
	<<set $unitPXCloBottomShortness = 0>>
	<<set $unitPCloQuality = 0>>
	<<set $unitclothingworntype = 'nude'>>
	<<set $unitbonusZ = 0>>
	<<set $unitPShoQuality = 0>>
	<<set $unitpantyworntype = ''>>
	<<set $unitbraworntype = ''>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<gs 'UnitAppearance' 'RestoreBase'>>
	<<set $svetadesc = 'Max Bonus'>>
	<<set $unitpcs_teeth = -1>>
	<<set $unitpcs_skin = 100>>
	<<set $unitpcs_lashes = 5>>
	<<set $unitmopkoef = 30>>
	<<set $unitpcs_lipbalm = 1>>
	<<set $unitlegkoef = 0>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<gs 'UnitAppearance' 'RestoreBase'>>
	<<set $svetadesc = 'Low Clothes'>>
	<<gs 'UnitAppearance' 'GetClothThick' $unitbmi_calc>>
	<<set $unitPCloQuality = 1>>
	<<set $unitclothingworntype = ''>>
	<<set $unitbonusZ = 1>>
	<<set $unitPShoQuality = 1>>
	<<set $unitpantyworntype = ''>>
	<<set $unitbraworntype = ''>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<gs 'UnitAppearance' 'RestoreBase'>>
	<<set $svetadesc = 'Med Clothes'>>
	<<gs 'UnitAppearance' 'GetClothThick' $unitbmi_calc>>
	<<set $unitPCloQuality = 4>>
	<<set $unitclothingworntype = ''>>
	<<set $unitbonusZ = 3>>
	<<set $unitPShoQuality = 4>>
	<<set $unitpantyworntype = 'fashionista'>>
	<<set $unitbraworntype = 'fashionista'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<gs 'UnitAppearance' 'RestoreBase'>>
	<<set $svetadesc = 'High Clothes'>>
	<<gs 'UnitAppearance' 'GetClothThick' $unitbmi_calc>>
	<<set $unitPCloQuality = 7>>
	<<set $unitclothingworntype = ''>>
	<<set $unitbonusZ = 5>>
	<<set $unitPShoQuality = 7>>
	<<set $unitpantyworntype = 'lusso'>>
	<<set $unitbraworntype = 'lusso'>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
	<<gs 'UnitAppearance' 'RestoreBase'>>
	<<set $svetadesc = 'High Clothes Max Bonus'>>
	<<gs 'UnitAppearance' 'GetClothThick' $unitbmi_calc>>
	<<set $unitPCloQuality = 7>>
	<<set $unitclothingworntype = ''>>
	<<set $unitbonusZ = 5>>
	<<set $unitPShoQuality = 7>>
	<<set $unitpantyworntype = 'lusso'>>
	<<set $unitbraworntype = 'lusso'>>
	<<set $unitpcs_teeth = -1>>
	<<set $unitpcs_skin = 100>>
	<<set $unitpcs_lashes = 5>>
	<<set $unitmopkoef = 30>>
	<<set $unitpcs_lipbalm = 1>>
	<<set $unitlegkoef = 0>>
	<<gs 'UnitAppearance' 'calcHotcat' $svetadesc>>
<</if>>
<<if $location_var[$here][0] == 'GetClothThick'>>
	<<if $location_var[$here][1] < 16>>
		<!-- !!severely underweight-->
		<<set $unitPXCloThinness = 150>>
		<<set $unitPXCloTopCut = 100>>
		<<set $unitPXCloBottomShortness = 100>>
	<<elseif $location_var[$here][1] >= 16 and $location_var[$here][1] < 19>>
		<!-- !!underweight-->
		<<set $unitPXCloThinness = 150>>
		<<set $unitPXCloTopCut = 100>>
		<<set $unitPXCloBottomShortness = 100>>
	<<elseif $location_var[$here][1] >= 19 and $location_var[$here][1] < 25>>
		<!-- !!normal, healthy weight-->
		<<set $unitPXCloThinness = 400>>
		<<set $unitPXCloTopCut = 500>>
		<<set $unitPXCloBottomShortness = 400>>
	<<elseif $location_var[$here][1] >= 25 and $location_var[$here][1] < 30>>
		<!-- !!overweight-->
		<<set $unitPXCloThinness = 400>>
		<<set $unitPXCloTopCut = 500>>
		<<set $unitPXCloBottomShortness = 400>>
	<<elseif $location_var[$here][1] >= 30 and $location_var[$here][1] < 35>>
		<!-- !!moderately obese-->
		<<set $unitPXCloThinness = 150>>
		<<set $unitPXCloTopCut = 100>>
		<<set $unitPXCloBottomShortness = 100>>
	<<elseif $location_var[$here][1] >= 35 and $location_var[$here][1] < 40>>
		<!-- !!severely obese-->
		<<set $unitPXCloThinness = 150>>
		<<set $unitPXCloTopCut = 100>>
		<<set $unitPXCloBottomShortness = 100>>
	<<elseif $location_var[$here][1] >= 40 and $location_var[$here][1] < 45>>
		<!-- !!very severely obese-->
		<<set $unitPXCloThinness = 150>>
		<<set $unitPXCloTopCut = 100>>
		<<set $unitPXCloBottomShortness = 100>>
	<<elseif $location_var[$here][1] >= 45>>
		<!-- !!morbidly obese-->
		<<set $unitPXCloThinness = 150>>
		<<set $unitPXCloTopCut = 100>>
		<<set $unitPXCloBottomShortness = 100>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'SaloTest'>>
	<<set $unitDisplayType = $larg(1)>>
	<<set $unitRowType = $larg(2)>>
	 	Hotcat
	<table>
	<<set $unitmuscularity = 19>>
	<<set $unitvofat = 0>>
	<<set $unitpcs_lashes = 5>>
	<<set $unitpcs_eyesize = 3>>
	<<set $unitpcs_lip = 3>>
	<<set $unitpcs_teeth = -1>>
	<<set $unitpcs_agil = 100>>
	<<set $unitpcs_vital = 100>>
	<<set $unitvidage = 20>>
	<<set $unitpcs_skin = 1>>
	<<set $unitpcs_lipbalm = 1>>
	<<set $unitmopkoef = 5>>
	<<set $unitpcs_hairbsh = 1>>
	<<set $unitpcs_breath = 1>>
	<<set $unitdeodorant_on = 1>>
	<<set $unitpcs_hairlng = 200>>
	<<set $unitpcs_sweat = 0>>
	<<set $unitglassvnesh = 10>>
	<<set $unitdyevmod = 0>>
	<<set $unitlegkoef = 9>>
	<<set $unitsupnatvnesh = 0>>
	<<set $unitpcs_apprncbase = 0>>
	<<set $unitResetBase = 1>>
	<<set $unitpcs_hgt = 170>>
	<<set $unitclothingworntype = ''>>
	<<set $unitbonusZ = 1>>
	<<set $unitPShoQuality = 1>>
	<<set $unitpantyworntype = ''>>
	<<set $unitbraworntype = ''>>
	<<set $unitsalo = 220>>
	<<set $unitsalocatnow = 1 + ($unitsalo - 10) / 20>>
	<<gs 'UnitAppearance' 'SaloGenerateTest' 'morbidly obese'>>
	<<set $unitsalo = 190>>
	<<set $unitsalocatnow = 1 + ($unitsalo - 10) / 20>>
	<<gs 'UnitAppearance' 'SaloGenerateTest' 'very severely obese'>>
	<<set $unitsalo = 160>>
	<<set $unitsalocatnow = 1 + ($unitsalo - 10) / 20>>
	<<gs 'UnitAppearance' 'SaloGenerateTest' 'severely obese'>>
	<<set $unitsalo = 135>>
	<<set $unitsalocatnow = 1 + ($unitsalo - 10) / 20>>
	<<gs 'UnitAppearance' 'SaloGenerateTest' 'moderately obese'>>
	<<set $unitsalo = 105>>
	<<set $unitsalocatnow = 1 + ($unitsalo - 10) / 20>>
	<<gs 'UnitAppearance' 'SaloGenerateTest' 'overweight'>>
	<<set $unitsalo = 75>>
	<<set $unitsalocatnow = 1 + ($unitsalo - 10) / 20>>
	<<gs 'UnitAppearance' 'SaloGenerateTest' 'normal'>>
	<<set $unitsalo = 40>>
	<<set $unitsalocatnow = 1 + ($unitsalo - 10) / 20>>
	<<gs 'UnitAppearance' 'SaloGenerateTest' 'underweight'>>
	<<set $unitsalo = 25>>
	<<set $unitsalocatnow = 1 + ($unitsalo - 10) / 20>>
	<<gs 'UnitAppearance' 'SaloGenerateTest' 'severely underweight'>>
	</table>
<</if>>
<<if $location_var[$here][0] == 'SaloGenerateTest'>>
	<<gs 'UnitAppearance' 'GenRowBreak' $location_var[$here][1]>>
	<<set $unitPXCloThinness = 400>>
	<<set $unitPXCloTopCut = 500>>
	<<set $unitPXCloBottomShortness = 400>>
	<<gs 'UnitAppearance' 'SaloGenerateRows' $location_var[$here][1] 'Most Revealing'>>
	<<set $unitPXCloThinness = 350>>
	<<set $unitPXCloTopCut = 400>>
	<<set $unitPXCloBottomShortness = 350>>
	<<gs 'UnitAppearance' 'SaloGenerateRows' $location_var[$here][1] ''>>
	<<set $unitPXCloThinness = 300>>
	<<set $unitPXCloTopCut = 350>>
	<<set $unitPXCloBottomShortness = 300>>
	<<gs 'UnitAppearance' 'SaloGenerateRows' $location_var[$here][1] ''>>
	<<set $unitPXCloThinness = 250>>
	<<set $unitPXCloTopCut = 300>>
	<<set $unitPXCloBottomShortness = 250>>
	<<gs 'UnitAppearance' 'SaloGenerateRows' $location_var[$here][1] ''>>
	<<set $unitPXCloThinness = 200>>
	<<set $unitPXCloTopCut = 250>>
	<<set $unitPXCloBottomShortness = 200>>
	<<gs 'UnitAppearance' 'SaloGenerateRows' $location_var[$here][1] ''>>
	<<set $unitPXCloThinness = 150>>
	<<set $unitPXCloTopCut = 200>>
	<<set $unitPXCloBottomShortness = 150>>
	<<gs 'UnitAppearance' 'SaloGenerateRows' $location_var[$here][1] ''>>
	<<set $unitPXCloThinness = 150>>
	<<set $unitPXCloTopCut = 150>>
	<<set $unitPXCloBottomShortness = 100>>
	<<gs 'UnitAppearance' 'SaloGenerateRows' $location_var[$here][1] ''>>
	<<set $unitPXCloThinness = 150>>
	<<set $unitPXCloTopCut = 100>>
	<<set $unitPXCloBottomShortness = 100>>
	<<gs 'UnitAppearance' 'SaloGenerateRows' $location_var[$here][1] 'Least Revealing'>>
<</if>>
<<if $location_var[$here][0] == 'SaloGenerateRows'>>
	<<set $unitclothingworntype = ''>>
	<<set $unitPCloQuality = 1>>
	<<set $svetadesc = '$larg(2) Q1'>>
	<<gs 'UnitAppearance' 'calcHotcat' '$larg(1) $svetadesc'>>
	<<set $unitclothingbonus1 = $unitclothingbonus>>
	<<set $unitPCloQuality = 2>>
	<<set $svetadesc = '$larg(2) Q2'>>
	<<gs 'UnitAppearance' 'calcHotcat' '$larg(1) $svetadesc'>>
	<<set $unitclothingbonus2 = $unitclothingbonus>>
	<<set $unitPCloQuality = 3>>
	<<set $svetadesc = '$larg(2) Q3'>>
	<<gs 'UnitAppearance' 'calcHotcat' '$larg(1) $svetadesc'>>
	<<set $unitclothingbonus3 = $unitclothingbonus>>
	<<set $unitPCloQuality = 4>>
	<<set $svetadesc = '$larg(2) Q4'>>
	<<gs 'UnitAppearance' 'calcHotcat' '$larg(1) $svetadesc'>>
	<<set $unitclothingbonus4 = $unitclothingbonus>>
	<<set $unitPCloQuality = 5>>
	<<set $svetadesc = '$larg(2) Q5'>>
	<<gs 'UnitAppearance' 'calcHotcat' '$larg(1) $svetadesc'>>
	<<set $unitclothingbonus5 = $unitclothingbonus>>
	<<set $unitPCloQuality = 6>>
	<<set $svetadesc = '$larg(2) Q6'>>
	<<gs 'UnitAppearance' 'calcHotcat' '$larg(1) $svetadesc'>>
	<<set $unitclothingbonus6 = $unitclothingbonus>>
	<<set $unitPCloQuality = 7>>
	<<set $svetadesc = '$larg(2) Q7'>>
	<<gs 'UnitAppearance' 'calcHotcat' '$larg(1) $svetadesc'>>
	<<set $unitclothingbonus7 = $unitclothingbonus>>
	<<set $unitclothingworntype = 'nude'>>
	<<set $svetadesc = '$larg(2) Nude'>>
	<<gs 'UnitAppearance' 'calcHotcat' '$larg(1) $svetadesc'>>
	<<set $unitclothingbonusnude = $unitclothingbonus>>
	<<if getvar("$unitRowType") == 1>>
		<<set $svetadesc = '$larg(2)'>> <<gs 'UnitAppearance' 'GenRow' $svetadesc $larg(1)>>

	<</if>>
<</if>>
<<if $location_var[$here][0] == 'SaveBase'>>
	<<set $tunitsalo = $unitsalo>>
	<<set $tunitpcs_hgt = $unitpcs_hgt>>
	<<set $tunitmuscularity = $unitmuscularity>>
	<<set $tunitsalocatnow = $unitsalocatnow>>
	<<set $tunitvofat = $unitvofat>>
	<<set $tunitpcs_lashes = $unitpcs_lashes>>
	<<set $tunitpcs_eyesize = $unitpcs_eyesize>>
	<<set $tunitpcs_lip = $unitpcs_lip>>
	<<set $tunitpcs_teeth = $unitpcs_teeth>>
	<<set $tunitpcs_agil = $unitpcs_agil>>
	<<set $tunitpcs_vital = $unitpcs_vital>>
	<<set $tunitvidage = $unitvidage>>
	<<set $tunitpcs_skin = $unitpcs_skin>>
	<<set $tunitPXCloThinness = $unitPXCloThinness>>
	<<set $tunitPXCloTopCut = $unitPXCloTopCut>>
	<<set $tunitPXCloBottomShortness = $unitPXCloBottomShortness>>
	<<set $tunitPCloQuality = $unitPCloQuality>>
	<<set $tunitclothingworntype = $unitclothingworntype>>
	<<set $tunitbonusZ = $unitbonusZ>>
	<<set $tunitPShoQuality = $unitPShoQuality>>
	<<set $tunitpantyworntype = $unitpantyworntype>>
	<<set $tunitbraworntype = $unitbraworntype>>
	<<set $tunitpcs_lipbalm = $unitpcs_lipbalm>>
	<<set $tunitmopkoef = $unitmopkoef>>
	<<set $tunitpcs_hairbsh = $unitpcs_hairbsh>>
	<<set $tunitpcs_breath = $unitpcs_breath>>
	<<set $tunitdeodorant_on = $unitdeodorant_on>>
	<<set $tunitpcs_hairlng = $unitpcs_hairlng>>
	<<set $tunitpcs_sweat = $unitpcs_sweat>>
	<<set $tunitglassvnesh = $unitglassvnesh>>
	<<set $tunitdyevmod = $unitdyevmod>>
	<<set $tunitlegkoef = $unitlegkoef>>
	<<set $tunitsupnatvnesh = $unitsupnatvnesh>>
	<<set $tunitpcs_apprncbase = $unitpcs_apprncbase>>
	<<set $tunitResetBase = $unitResetBase>>
<</if>>
<<if $location_var[$here][0] == 'RestoreBase'>>
	<<set $unitsalo = $tunitsalo>>
	<<set $unitpcs_hgt = $tunitpcs_hgt>>
	<<set $unitmuscularity = $tunitmuscularity>>
	<<set $unitsalocatnow = $tunitsalocatnow>>
	<<set $unitvofat = $tunitvofat>>
	<<set $unitpcs_lashes = $tunitpcs_lashes>>
	<<set $unitpcs_eyesize = $tunitpcs_eyesize>>
	<<set $unitpcs_lip = $tunitpcs_lip>>
	<<set $unitpcs_teeth = $tunitpcs_teeth>>
	<<set $unitpcs_agil = $tunitpcs_agil>>
	<<set $unitpcs_vital = $tunitpcs_vital>>
	<<set $unitvidage = $tunitvidage>>
	<<set $unitpcs_skin = $tunitpcs_skin>>
	<<set $unitPXCloThinness = $tunitPXCloThinness>>
	<<set $unitPXCloTopCut = $tunitPXCloTopCut>>
	<<set $unitPXCloBottomShortness = $tunitPXCloBottomShortness>>
	<<set $unitPCloQuality = $tunitPCloQuality>>
	<<set $unitclothingworntype = $tunitclothingworntype>>
	<<set $unitbonusZ = $tunitbonusZ>>
	<<set $unitPShoQuality = $tunitPShoQuality>>
	<<set $unitpantyworntype = $tunitpantyworntype>>
	<<set $unitbraworntype = $tunitbraworntype>>
	<<set $unitpcs_lipbalm = $tunitpcs_lipbalm>>
	<<set $unitmopkoef = $tunitmopkoef>>
	<<set $unitpcs_hairbsh = $tunitpcs_hairbsh>>
	<<set $unitpcs_breath = $tunitpcs_breath>>
	<<set $unitdeodorant_on = $tunitdeodorant_on>>
	<<set $unitpcs_hairlng = $tunitpcs_hairlng>>
	<<set $unitpcs_sweat = $tunitpcs_sweat>>
	<<set $unitglassvnesh = $tunitglassvnesh>>
	<<set $unitdyevmod = $tunitdyevmod>>
	<<set $unitlegkoef = $tunitlegkoef>>
	<<set $unitsupnatvnesh = $tunitsupnatvnesh>>
	<<set $unitpcs_apprncbase = $tunitpcs_apprncbase>>
	<<set $unitResetBase = $tunitResetBase>>
<</if>>
<<if $location_var[$here][0] == 'CurVal'>>
	<<set $SvetaDesc = input("Enter a description for Sveta")>>
	 	<p></p>
	<<set '    $svetadesc = '$SvetaDesc''>>
	    unitsalo = <<salo>>
	    unitpcs_hgt = <<pcs_hgt>>
	    unitmuscularity = <<muscularity>>
	    unitsalocatnow = <<salocatnow>>
	    unitvofat = <<vofat>>
	    unitpcs_lashes = <<pcs_lashes>>
	    unitpcs_eyesize = <<pcs_eyesize>>
	    unitpcs_lip = <<pcs_lip>>
	    unitpcs_teeth = <<pcs_teeth>>
	    unitpcs_agil = <<pcs_agil>>
	    unitpcs_vital = <<pcs_vital>>
	    unitvidage = <<$pc.vidage>>
	    unitpcs_skin = <<pcs_skin>>
	    unitPXCloThinness = <<PXCloThinness>>
	    unitPXCloTopCut = <<PXCloTopCut>>
	    unitPXCloBottomShortness = <<PXCloBottomShortness>>
	    unitPCloQuality = <<PCloQuality>>
	<<set '    $unitclothingworntype = '$wardrobe.clothingworntype''>>
	    unitbonusZ = <<bonusZ>>
	    unitPShoQuality = <<PShoQuality>>
	<<set '    $unitpantyworntype = '$wardrobe.pantyworntype''>>
	<<set '    $unitbraworntype = '$wardrobe.braworntype''>>
	    unitpcs_lipbalm = <<pcs_lipbalm>>
	    unitmopkoef = <<mopkoef>>
	    unitpcs_hairbsh = <<pcs_hairbsh>>
	    unitpcs_breath = <<pcs_breath>>
	    unitdeodorant_on = <<deodorant_on>>
	    unitpcs_hairlng = <<pcs_hairlng>>
	    unitpcs_sweat = <<pcs_sweat>>
	    unitglassvnesh = <<glassvnesh>>
	    unitdyevmod = <<dyevmod>>
	    unitlegkoef = <<legkoef>>
	    unitsupnatvnesh = <<supnatvnesh>>
	    unitpcs_apprncbase = 0
	    unitResetBase = 1
	<p>    gs 'UnitAppearance', 'GenerateSvetaOptions', $svetadesc</p>
	<p></p>
<</if>>
