code:
:: Widgets Combat Tentacle Adv [widget]
<<widget "tentacleadv">>

<<set _tentacle to $args[0] >>
<<if _tentacle.type is "vine" and $abomination is 1 or ["vine","root","shoot"].includes(_tentacle.type)>>
	<<set _fluid to "nectar">>
<<else>>
	<<set _fluid to "fluid">>
<</if>>

<<if $abomination is 1 and $ejaculating is 1>>
	<<statetentacles>>
	<<if (_tentacle.head is "anus" or _tentacle.head is "anusdeep") and _tentacle.baby isnot 0>>
		<<impregnate _tentacle.baby _tentacle.babychance>>
		<<fertilise>>
		<<set _tentacleAnus to $tentacleAnus>>
	<</if>>
	<<if _tentacle.shaft isnot "finished" and _tentacle.head isnot "finished">>
		<<if _the isnot 1>><<set _the to 1>>The<</if>>
		<<if $tentacles.active is 1>>
			<<if _retract isnot 3 and _retract isnot 2>><<set _retract to 1>><</if>>
			<<if _retract is 1>>
				_tentacle.fullDesc retracts
			<<elseif _retract is 2>>
				and <<print _tentacle.fullDesc>>s both retract
			<<else>>
				and <<print _tentacle.fullDesc>>s all retract
			<</if>>
			<<if _tentacleAnus>>
				away from you,<<if _retract isnot 1>> the _tentacleAnus<</if>> pumping something into your anus before leaving.
			<<else>>
				away from you.
			<</if>>

		<<elseif $tentacles.active is 2>>
			<<if _retract isnot 3>><<set _retract to 2>><</if>>
			_tentacle.desc
		<<else>>
			<<set _retract to 3>>
			_tentacle.desc,
		<</if>>
		<<tentacleadvdisable _tentacle>>
		<<set _tentacle.shaft to "finished">><<set _tentacle.head to "finished">>
	<</if>>
<</if>>

<<if _tentacle.tentaclehealth lte 0 and _tentacle.shaft isnot "finished">>
	Worn out, the _tentacle.fullDesc retracts from you.

	<<tentacleadvdisable _tentacle>>
	<<set _tentacle.shaft to "finished">><<set _tentacle.head to "finished">>
<</if>>

<<if $novaginal is 1 and (_tentacle.head is "vaginaentrance" or _tentacle.head is "vaginaimminent" or _tentacle.head is "vagina" or _tentacle.head is "vaginadeep")>>
	The <<personsimple>> clicks <<his>> tongue, and the _tentacle.fullDesc retracts from your <<pussy>>.
	<<tentacleadvdisable _tentacle>>
<</if>>

<<if $noanal is 1 and (_tentacle.head is "anusentrance" or _tentacle.head is "anusimminent" or _tentacle.head is "anus" or _tentacle.head is "anusdeep")>>
	The <<personsimple>> clicks <<his>> tongue, and the _tentacle.fullDesc retracts from your <<bottom>>.
	<<tentacleadvdisable _tentacle>>
<</if>>

<<if $nopenile is 1 and (_tentacle.head is "penisentrance" or _tentacle.head is "penisimminent" or _tentacle.head is "penis" or _tentacle.head is "penisdeep")>>
	The <<personsimple>> clicks <<his>> tongue, and the _tentacle.fullDesc retracts from your <<penis>>.
	<<tentacleadvdisable _tentacle>>
<</if>>

<<if $nochoke is 1 and _tentacle.shaft is "neck">>
	The <<personsimple>> clicks <<his>> tongue, and the _tentacle.fullDesc retracts from your neck.
	<<tentacleadvdisable _tentacle>>
<</if>>

<<if $tentacleMouth is "removed" and (_tentacle.head is "mouthentrance" or _tentacle.head is "mouthimminent" or _tentacle.head is "mouth" or _tentacle.head is "mouthdeep")>>
	<<tentacleadvdisable _tentacle>>
<</if>>
<<if $tentacleAnus is "removed" and (_tentacle.head is "anusentrance" or _tentacle.head is "anusimminent" or _tentacle.head is "anus" or _tentacle.head is "anusdeep")>>
	<<tentacleadvdisable _tentacle>>
<</if>>
<<if $tentacleVagina is "removed" and (_tentacle.head is "vaginaentrance" or _tentacle.head is "vaginaimminent" or _tentacle.head is "vagina" or _tentacle.head is "vaginadeep")>>
	<<tentacleadvdisable _tentacle>>
<</if>>
<<if $tentaclePenis is "removed" and (_tentacle.head is "penisentrance" or _tentacle.head is "penisimminent" or _tentacle.head is "penis" or _tentacle.head is "penisdeep")>>
	<<tentacleadvdisable _tentacle>>
<</if>>

<<if _tentacle.shaft is "tummy">>The _tentacle.fullDesc <<slithers>> around your tummy,<</if>>
<<if _tentacle.shaft is "thighs">>The _tentacle.fullDesc <<slithers>> between your thighs,<</if>>
<<if _tentacle.shaft is "breasts">>The _tentacle.fullDesc squeezes your breasts together,<</if>>
<<if _tentacle.shaft is "chest">>The _tentacle.fullDesc <<slithers>> around your chest,<</if>>
<<if _tentacle.shaft is "waist">>The _tentacle.fullDesc <<slithers>> around your waist,<</if>>
<<if _tentacle.shaft is "neck">>The _tentacle.fullDesc <<slithers>> around your neck,<</if>>
<<if _tentacle.shaft is "shoulders">>The _tentacle.fullDesc <<slithers>> around your shoulders,<</if>>
<<if _tentacle.shaft is "leftleg">>The _tentacle.fullDesc <<slithers>> around your left leg,<</if>>
<<if _tentacle.shaft is "rightleg">>The _tentacle.fullDesc <<slithers>> around your right leg,<</if>>
<<if _tentacle.shaft is "leftarm">>The _tentacle.fullDesc <<slithers>> around your left arm,<</if>>
<<if _tentacle.shaft is "rightarm">>The _tentacle.fullDesc <<slithers>> around your right arm,<</if>>

<<if _tentacle.head is "leftarm">>
The _tentacle.fullDesc writhes in your left hand.
<<neutral 5>>

<</if>>
<<if _tentacle.head is "rightarm">>
The _tentacle.fullDesc writhes in your right hand.
<<neutral 5>>

<</if>>
<<if _tentacle.head is "feet">>
The _tentacle.fullDesc writhes between your feet.
<<neutral 5>>

<</if>>

<<if _tentacle.head is "leftnipplesuck">>
	and<<if _tentacle.shaft is "breasts">> <<slithers>><</if>> up to your <<breasts>>, where it suckles your left nipple.

	<<playWithBreasts>><<neutralbreast 3>>
<</if>>

<<if _tentacle.head is "rightnipplesuck">>
	and<<if _tentacle.shaft is "breasts">> <<slithers>><</if>> up to your <<breasts>>, where it suckles your right nipple.

	<<playWithBreasts>><<neutralbreast 3>>
<</if>>

<<if _tentacle.head is "leftnipple">>
	and continues teasing your left nipple. The tip of the tentacle opens up, latches on, then begins sucking.

	<<set _tentacle.head to "leftnipplesuck">><<set $leftnipple to "tentaclesuck">>
	<<playWithBreasts>><<neutralbreast 3>>
<</if>>

<<if _tentacle.head is "rightnipple">>
	and continues teasing your right nipple. The tip of the tentacle opens up, latches on, then begins sucking.

	<<set _tentacle.head to "rightnipplesuck">><<set $rightnipple to "tentaclesuck">>
	<<playWithBreasts>><<neutralbreast 3>>
<</if>>

<<if _tentacle.head is "chest">>
	<<if $chestuse is 0>>
		moves away from your <<breasts>>
		<<set _tentacle.head to 0>>
		<<else>>
	then<<if _tentacle.shaft is "breasts">> <<slithers>><</if>> up between your <<breasts>>, rubbing itself between them.
		<<neutralbreast 2>>
	<</if>>

<</if>>

<<if _tentacle.head is "mouthdeep">>
	and<<if _tentacle.shaft is "breasts">> <<slithers>><</if>> up into your mouth where it spurts a sweet _fluid down your throat at the apex of each thrust.

	<<purity -1>><<internalejac>><<sex 5>>
	<<if _fluid is "nectar">><<nectarfed 5>><<else>><<drugs 3>><</if>><<set $player.bodyliquid.mouth.goo += 1>>
	<<set _tentacle.tentaclehealth -= 1>>
	<<if _tentacle.desc.includes("pale")>>
		<<set $hallucinogen += 5>>
	<</if>>
	<<if $abomination is 1>>
		<<set $enemyarousal += 3>>
	<</if>>
<</if>>

<<if _tentacle.head is "mouth">>
	and continues thrusting into your mouth. The tip opens and begins oozing a sweet _fluid.

	<<purity -1>><<internalejac>><<sex 5>>
	<<set $mouthstate to "tentacledeep">><<set _tentacle.head to "mouthdeep">>
	<<oralejacstat>><<ejacstat>>
<</if>>

<<if _tentacle.head is "mouthimminent">>
	<<if $player.virginity.oral is true>>
		<<switch _tentacle.size>>
		<<case 3>>
			 and thrusts between your lips forcing your mouth wide open, penetrating your mouth for the first time.
			<<violence 25>>
		<<default>>
			 and thrusts between your lips, penetrating your mouth for the first time.
		<</switch>>
		<<takeVirginity `$abomination is 1 ? $NPCList[0].fullDescription + "'s " + _tentacle.fullDesc : _tentacle.fullDesc` "oral">><<violence 5>>
		<<if $abomination is 1 and $NPCList[0].type is "plant">>
			<<set $speechmouthvirgin to 2>>
		<</if>>
	<<else>>
		<<switch _tentacle.size>>
		<<case 3>>
			 and thrusts between your lips forcing your mouth wide open.
			<<violence 25>>
		<<default>>
			 and thrusts between your lips.
		<</switch>>
	<</if>>

	<<set $mouthstate to "tentacle">><<set _tentacle.head to "mouth">><<sex 5>><<raped>><<oralstat>>
<</if>>

<<if _tentacle.head is "mouthentrance">>
	 and presses against your lips.
	<<set $mouthstate to "tentacleimminent">><<set _tentacle.head to "mouthimminent">>
	<<neutral 4>>

	<<set $tentacleMouth to _tentacle.fullDesc>>
<</if>>

<<if _tentacle.head is "vaginadeep">>
	and <<slithers>> into your <<pussy>> where it pumps a viscous _fluid at the apex of each thrust.

	<<purity -1>><<internalejac>><<sex 5>>
	<<drugs 3>><<set $player.bodyliquid.vagina.goo += 1>><<pain $vaginalPain>>
	<<set _tentacle.tentaclehealth -= 1>>
	<<if _tentacle.desc.includes("pale")>>
		<<set $hallucinogen += 5>>
	<</if>>
	<<if $abomination is 1>>
		<<set $enemyarousal += 3>>
	<</if>>
<</if>>

<<if _tentacle.head is "vagina">>
	and continues thrusting into your <<pussy>>. The tip opens and begins oozing a viscous _fluid.

	<<purity -1>><<internalejac>>
	<<set $vaginastate to "tentacledeep">><<set _tentacle.head to "vaginadeep">><<pain $vaginalPain>>
	<<sex 5>><<vaginalejacstat>><<ejacstat>>
<</if>>

<<if _tentacle.head is "vaginaimminent">>
	<<if $player.virginity.vaginal is true>>
		<<if $sexStats.vagina.pregnancy.totalBirthEvents gt 0>>
			and thrusts into your <<pussy>>. Despite your lack of a hymen, you feel something inside you change as your virginity and purity are taken.
			<<violence 10>>
		<<else>>
			<<switch _tentacle.size>>
				<<case 3>>
					and thrusts into your <<pussy>>, tearing your hymen and forever robbing you of your purity. You whimper as your <<pussy>> stretches to accommodate the _tentacle.fullDesc.
					<<violence 100>>
				<<default>>
					 and thrusts into your <<pussy>>, tearing your hymen and forever robbing you of your purity.
			<</switch>>
			<<violence 100>>
			<<if $abomination is 1 and $NPCList[0].type is "plant">>
				<<set $speechvaginavirgin to 2>>
			<</if>>
		<</if>>
	<<else>>
		<<switch _tentacle.size>>
		<<case 3>>
			and thrusts into your <<pussy>>. You whimper as your <<pussy>> stretches to accommodate the _tentacle.fullDesc.
		<<default>>
			 and thrusts into your <<pussy>>.
		<</switch>>
	<</if>>

	<<takeVirginity `$abomination is 1 ? $NPCList[0].fullDescription + "'s " + _tentacle.fullDesc : _tentacle.fullDesc` "vaginal">>
	<<set $vaginastate to "tentacle">><<set _tentacle.head to "vagina">><<sex 5>><<raped>><<vaginaraped>><<vaginalstat>><<violence 1>><<pain $vaginalPain>>
<</if>>

<<if _tentacle.head is "vaginaentrance">>
	<<if !$worn.genitals.type.includes("chastity")>>
		<<if $vaginaWetness gte (_tentacle.size * 20) + random(1, 40) or random(1, 2) is 2>>
			and presses into your <<pussy>>. <<vagina_lube_text>> the tip presses into you, a thrust away from penetrating.
			<<set $vaginastate to "tentacleimminent">><<set _tentacle.head to "vaginaimminent">><<sex 10>>
		<<else>>
			and presses against your <<pussy>>, but fails to gain purchase.
			<<sex 5>>
				<<if random(1, 3) gte 3>>
					Slimy _fluid squirts from the tip, lubricating you.
					<<set $player.bodyliquid.vaginaoutside.goo += 1>>
				<</if>>
		<</if>>
	<<else>>
	and tries to find a way inside. Failing, it lashes at the metal.
	<<set $worn.genitals.integrity -= 10>><<violence 1>>
	<</if>>
	<<set $tentacleVagina to _tentacle.fullDesc>>

<</if>>

<<if _tentacle.head is "penisdeep">>
	and continues thrusting against your <<penis>>, caressing and kneading your length.
	<<sex 5>><<set _tentacle.tentaclehealth -= 1>>
	<<if $abomination is 1>>
		<<set $enemyarousal += 3>>
	<</if>>

<</if>>

<<if _tentacle.head is "penis">>
	and continues thrusting against your <<penis>>. It sucks and kneads your length, trying to milk you of your cum.

	<<set $penisstate to "tentacledeep">><<set _tentacle.head to "penisdeep">><<sex 5>>
<</if>>

<<if _tentacle.head is "penisimminent">>
	<<if $player.virginity.penile is true>>
		 and thrusts against your <<penis>>, swallowing you to the base and  tearing the membrane between your glans and foreskin, forever robbing you of your purity.
		<<violence 100>>
		<<if $abomination is 1 and $NPCList[0].type is "plant">>
			<<set $speechpenisvirgin to 2>>
		<</if>>
	<<else>>
		 and thrusts against your <<penis>>, swallowing you to the base.
	<</if>>

	<<takeVirginity `$abomination is 1 ? $NPCList[0].fullDescription + "'s " + _tentacle.fullDesc : _tentacle.fullDesc` "penile">>
	<<set $penisstate to "tentacle">><<set _tentacle.head to "penis">><<sex 5>><<raped>><<penisraped>><<penilestat>><<violence 1>>
<</if>>

<<if _tentacle.head is "penisentrance">>
	<<if !$worn.genitals.type.includes("chastity")>>
		<<if $penisWetness + (_tentacle.size * 10) gte ($penissize * 15) + random(1, 40) or random(1, 2) is 2>>
			and <<slithers>> over to your <<penis>>. <<penis_lube_text>> the tip opens and presses against your glans, a thrust away from enveloping.
			<<set $penisstate to "tentacleimminent">><<set _tentacle.head to "penisimminent">><<neutralgenitals 4>>
		<<else>>
			and <<slithers>> over to your <<penis>>. The tip opens and presses against your glans, but it fails to gain purchase.
			<<sex 5>>
			<<if random(1, 3) gte 3>>
				Slimy _fluid squirts from the tip, lubricating you.
				<<set $player.bodyliquid.penis.goo += 1>>
			<</if>>
		<</if>>
	<<else>>
	and tries to find a way inside. Failing, it lashes at the metal.
	<<set $worn.genitals.integrity -= 10>><<violence 1>>
	<</if>>

	<<set $tentaclePenis to _tentacle.fullDesc>>
<</if>>

<<if _tentacle.head is "anusdeep">>
	<<if _tentacle.baby isnot 0>>
		and <<slithers>> into your <<bottom>> where it pumps a viscous _fluid alongside something else at the apex of each thrust.
		<<impregnate _tentacle.baby _tentacle.babychance>>
		<<fertilise>>
		<<set _tentacle.baby to 0>><<set $tentacleAnusBaby to _tentacle.baby>>
	<<else>>
		and <<slithers>> into your <<bottom>> where it pumps a viscous _fluid at the apex of each thrust.
	<</if>>
	<<purity -1>><<internalejac>><<sex 5>>
	<<drugs 3>><<set $player.bodyliquid.anus.goo += 1>>
	<<set _tentacle.tentaclehealth -= 1>><<pain $analPain>>
	<<if _tentacle.desc.includes("pale")>>
		<<set $hallucinogen += 5>>
	<</if>>
	<<if $abomination is 1>>
		<<set $enemyarousal += 3>>
	<</if>>

<</if>>

<<if _tentacle.head is "anus">>
	<<if _tentacle.baby isnot 0>>
		and continues thrusting into your <<bottom>>. The tip opens and begins oozing a viscous _fluid alongside something else.
		 Something about it scares you.
	<<else>>
		and continues thrusting into your <<bottom>>. The tip opens and begins oozing a viscous _fluid.
	<</if>>
	<<purity -1>><<internalejac>><<sex 5>>
	<<set $anusstate to "tentacledeep">><<set _tentacle.head to "anusdeep">>
	<<analejacstat>><<ejacstat>><<pain $analPain>>

<</if>>

<<if _tentacle.head is "anusimminent">>
	<<if $player.virginity.anal is true>>
		<<switch _tentacle.size>>
		<<case 3>>
			and thrusts into your <<bottom>>, violating you in a way you hadn't conceived of. You shudder as your <<bottom>> stretches to accommodate the _tentacle.fullDesc.
			<<violence 100>>
		<<default>>
			 and thrusts into your <<bottom>>, violating you in a way you hadn't conceived of.
		<</switch>>
		<<takeVirginity `$abomination is 1 ? $NPCList[0].fullDescription + "'s " + _tentacle.fullDesc : _tentacle.fullDesc` "anal">><<violence 100>>
		<<if $abomination is 1 and $NPCList[0].type is "plant">>
			<<set $speechanusvirgin to 2>>
		<</if>>
	<<else>>
		<<switch _tentacle.size>>
		<<case 3>>
			and thrusts into your <<bottom>>. You shudder as your <<bottom>> stretches to accommodate the _tentacle.fullDesc.
		<<default>>
			 and thrusts into your <<bottom>>.
		<</switch>>
	<</if>>
	<<set $anusstate to "tentacle">><<set _tentacle.head to "anus">>
	<<sex 5>><<raped>><<anusraped>><<analstat>><<violence 1>><<pain $analPain>>

<</if>>

<<if _tentacle.head is "anusentrance">>
	<<if $worn.genitals.anal_shield isnot 1>>
		<<if $anusWetness gte (_tentacle.size * 20) + random(1, 40) or random(1, 2) is 2>>
			and presses against your <<bottom>>. <<anus_lube_text>> the tip presses into you, a thrust away from penetrating.
			<<set $anusstate to "tentacleimminent">><<set _tentacle.head to "anusimminent">><<neutral 4>>
		<<else>>
			and presses against your <<bottom>>. It fails to gain purchase.
			<<sex 5>>
			<<if random(1, 3) gte 3>>
				Slimy _fluid squirts from the tip, lubricating you.
				<<set $player.bodyliquid.bottom.goo += 1>>
			<</if>>
		<</if>>
	<<else>>
		and tries to find a way inside. Failing, it lashes at the device.
		<<set $worn.genitals.integrity -= 10>><<violence 1>>
	<</if>>

	<<set $tentacleAnus to _tentacle.fullDesc>><<set $tentacleAnusBaby to _tentacle.baby>>
<</if>>

<<set $rng to random(1, 100)>>
<<if _tentacle.head is "vaginarub">>
	<<if $rng gte 21>>
		<<if _tentacle.shaft is "thighs">>
			where it <<slithers>> against your <<pussy>>, pressing against your clit.
		<<else>>
			and<<if _tentacle.shaft is "breasts">> <<slithers>><</if>> between your thighs where it <<slithers>> against your <<pussy>>, pressing against your clit.
		<</if>>
		<<sex 3>>
	<<elseif $novaginal is 1>>
		<<if _tentacle.shaft is "thighs">>
			where it <<slithers>> toward your <<pussy>>.
		<<else>>
			and<<if _tentacle.shaft is "breasts">> <<slithers>><</if>> between your thighs where it <<slithers>> toward your <<pussy>>.
		<</if>>
		The <<personsimple>> clicks <<his>> tongue, and it retracts, pressing against your clit instead.
		<<sex 3>>
	<<else>>
		<<if _tentacle.shaft is "thighs">>
			where it <<slithers>> toward your <<pussy>>.
		<<else>>
			and<<if _tentacle.shaft is "breasts">> <<slithers>><</if>> between your thighs where it <<slithers>> toward your <<pussy>>.
		<</if>>
		<<set $vaginause to "tentacle">><<set $vaginastate to "tentacleentrance">><<set _tentacle.head to "vaginaentrance">><<set $thighuse to 0>><<set $vaginatarget to "tentacles">>
	<</if>>

<</if>>

<<set $rng to random(1, 100)>>
<<if _tentacle.head is "penisrub">>
	<<if $rng gte 21>>
		<<if _tentacle.shaft is "thighs">>
			where it <<slithers>> against your <<penis>>, coiling around it.
		<<else>>
			and<<if _tentacle.shaft is "breasts">> <<slithers>><</if>> between your thighs where it <<slithers>> against your <<penis>>, coiling around it.
		<</if>>
		<<sex 3>>
	<<elseif $nopenile is 1>>
		<<if _tentacle.shaft is "thighs">>
			where the tip opens as it <<slithers>> toward your <<penis>>.
		<<else>>
			and<<if _tentacle.shaft is "breasts">> <<slithers>><</if>> between your thighs where the tip opens as it <<slithers>> toward your <<penis>>.
		<</if>>
		The <<personsimple>> clicks <<his>> tongue, and it retracts, coiling around your <<penis>> instead.
		<<sex 3>>
	<<else>>
		<<if _tentacle.shaft is "thighs">>
			where the tip opens as it <<slithers>> toward your <<penis>>.
		<<else>>
			and<<if _tentacle.shaft is "breasts">> <<slithers>><</if>> between your thighs where the tip opens as it <<slithers>> toward your <<penis>>.
		<</if>>
		<<set $penisuse to "tentacle">><<set $penisstate to "tentacleentrance">><<set _tentacle.head to "penisentrance">><<set $thighuse to 0>><<set $penistarget to "tentacles">><<set $tentaclePenis to _tentacle.fullDesc>>
	<</if>>

<</if>>

<<set $rng to random(1, 100)>>
<<if _tentacle.head is "anusrub">>
	<<if $rng gte 21>>
		and<<if _tentacle.shaft is "breasts">> <<slithers>><</if>> between your <<bottom>> cheeks where it <<slithers>> against your back.
		<<sex 3>>
	<<elseif $noanal is 1>>
		and <<slithers>> toward your <<bottom>>. The <<personsimple>> clicks <<his>> tongue, and it retracts, <<slithering>> between your <<bottom>> cheeks instead.
	<<else>>
		<<if _tentacle.baby isnot 0>>
			and <<slithers>> toward your <<bottom>>.
			 Something about it scares you.
		<<else>>
			and<<if _tentacle.shaft is "breasts">> <<slithers>><</if>> between your <<bottom>> cheeks,  toward your anus.
			<<neutral 3>>
		<</if>>
		<<set $anususe to "tentacle">>
		<<set $anusstate to "tentacleentrance">><<set _tentacle.head to "anusentrance">><<set $anustarget to "tentacles">>
	<</if>>

<</if>>

<<set $rng to random(1, 100)>>
<<if _tentacle.head is 0 and _tentacle.shaft isnot 0>>
	<<if $rng lte 10>>
		<<if $chestuse is "squeezed">>
			<<upperslither>>and<<if _tentacle.shaft is "breasts">> <<slithers>><</if>> up between your squeezed <<breasts>>.
			<<set _tentacle.head to "chest">><<neutralbreast 2>><<set $chestuse to "tentaclerub">><<cheststat>><<set $chesttarget to "tentacles">>
		<<else>>
			<<tentacleadvdefault _tentacle>>
		<</if>>

	<<elseif $rng lte 20>>
		<<if $leftnipple is 0>>
			<<upperslither>> <<playWithBreasts>>and teases your left nipple.
			<<neutralbreast 2>>
			<<set _tentacle.head to "leftnipple">><<set $leftnipple to "tentacle">>
		<<else>>
			<<tentacleadvdefault _tentacle>>
		<</if>>

	<<elseif $rng lte 30>>
		<<if $rightnipple is 0>>
			<<upperslither>> <<playWithBreasts>>and teases your right nipple.
			<<neutralbreast 2>>
			<<set _tentacle.head to "rightnipple">><<set $rightnipple to "tentacle">>
		<<else>>
			<<tentacleadvdefault _tentacle>>
		<</if>>

	<<elseif $rng lte 40>>
		<<if $mouthuse is 0>>
			<<upperslither>> and<<if _tentacle.shaft is "breasts">> <<slithers>><</if>> up toward your mouth.
			<<neutral 2>>
			<<set $mouthuse to "tentacle">><<set $mouthstate to "tentacleentrance">><<set _tentacle.head to "mouthentrance">><<set $mouthtarget to "tentacles">>
		<<else>>
			<<tentacleadvdefault _tentacle>>
		<</if>>

	<<elseif $rng lte 50>>
		<<if $anususe is 0 and $analdisable is "f" and $noanal is 0>>
			<<underslither>> and <<slithers>> toward your <<bottom>>.
			<<if _tentacle.baby isnot 0>>
				 Something about it scares you.
			<</if>>
			<<neutral 2>>
			<<set $anususe to "tentacle">><<set $anusstate to "tentacleentrance">><<set _tentacle.head to "anusentrance">><<set $anustarget to "tentacles">>
		<<else>>
			<<tentacleadvdefault _tentacle>>
		<</if>>

	<<elseif $rng lte 60>>
		<<if $player.vaginaExist and $vaginause is 0 and $novaginal is 0>>
			<<underslither>> and <<slithers>> toward your <<pussy>>.
			<<neutralgenitals 2>>
			<<set $vaginause to "tentacle">><<set $vaginastate to "tentacleentrance">><<set _tentacle.head to "vaginaentrance">><<set $vaginatarget to "tentacles">>
		<<else>>
			<<tentacleadvdefault _tentacle>>
		<</if>>

	<<elseif $rng lte 70>>
		<<if $player.penisExist and $penisuse is 0 and $nopenile is 0>>
			<<underslither>> and <<slithers>> toward your <<penis>>.
			<<neutralgenitals 2>>
			<<set $penisuse to "tentacle">><<set $penisstate to "tentacleentrance">><<set _tentacle.head to "penisentrance">><<set $penistarget to "tentacles">><<set $tentaclePenis to _tentacle.fullDesc>>
		<<else>>
			<<tentacleadvdefault _tentacle>>
		<</if>>

	<<elseif $rng lte 80>>
		<<if $player.penisExist and $penisuse is 0 and random(0,100) gte 50>>
			<<if _tentacle.shaft is "thighs">>
				<<underslither>> where it <<slithers>> against your tummy and <<penis>>.
			<<else>>
				<<underslither>> where it <<slithers>> between your thighs and against your tummy and <<penis>>.
			<</if>>
			<<set $penisuse to "tentaclerub">><<set $thighuse to "tentaclerub">><<set _tentacle.head to "penisrub">><<sex 3>><<thighstat>><<set $penistarget to "tentacles">><<set $tentaclePenis to _tentacle.fullDesc>>
		<<elseif $player.vaginaExist and $vaginause is 0 and random(0,100) gte 50>>
			<<if _tentacle.shaft is "thighs">>
				<<underslither>> where it <<slithers>> against your tummy and <<pussy>>.
			<<else>>
				<<underslither>> where it <<slithers>> between your thighs and against your tummy and <<pussy>>.
			<</if>>
			<<set $vaginause to "tentaclerub">><<set $thighuse to "tentaclerub">><<set _tentacle.head to "vaginarub">><<sex 3>><<thighstat>><<set $vaginatarget to "tentacles">>
		<<else>>
			<<tentacleadvdefault _tentacle>>
		<</if>>

	<<elseif $rng lte 90>>
		<<if $anusstate is 0 and $anususe is 0 and $analdisable is "f">>
			<<underslither>> and <<slithers>> between your <<bottom>> cheeks and against your back.
			<<set $anusstate to "tentaclerub">><<set $anususe to "tentaclerub">><<set _tentacle.head to "anusrub">><<sex 1>><<bottomstat>><<set $anustarget to "tentacles">>
		<<else>>
			<<tentacleadvdefault _tentacle>>
		<</if>>

	<<else>>
		<<tentacleadvdefault _tentacle>>

	<</if>>
<<elseif _tentacle.head is 0 and _tentacle.shaft is 0>>
	<<if $rng lte 10>>
		<<if $position isnot "wall">>
			The _tentacle.fullDesc winds around your tummy.
			<<neutral 1>>
			<<set _tentacle.shaft to "tummy">>
		<<else>>
			The _tentacle.fullDesc gently slaps your <<bottom>>.
			<<violence 1>><<hitstat>>
		<</if>>

	<<elseif $rng lte 20>>
		The _tentacle.fullDesc <<slithers>> between your thighs.
		<<neutral 1>>

		<<set _tentacle.shaft to "thighs">>
	<<elseif $rng lte 30>>
		<<if $position isnot "wall">>
			<<if $breastsize gte 2 and $chestuse is 0>>
				The _tentacle.fullDesc <<slithers>> around your <<breasts>>, squeezing them together.
				<<neutralbreast 1>><<set _tentacle.shaft to "breasts">><<set $chestuse to "squeezed">>
			<<else>>
				The _tentacle.fullDesc gently slaps your <<bottom>>.
				<<violence 1>><<hitstat>>
			<</if>>
		<<else>>
			The _tentacle.fullDesc gently slaps your <<bottom>>.
			<<violence 1>><<hitstat>>
		<</if>>

	<<elseif $rng lte 40>>
		<<if $position isnot "wall">>
			The _tentacle.fullDesc winds its way around your chest, beneath your <<breasts>>.
			<<neutralbreast 1>><<set _tentacle.shaft to "chest">>
		<<else>>
			The _tentacle.fullDesc gently slaps your <<bottom>>.
			<<violence 1>><<hitstat>>
		<</if>>

	<<elseif $rng lte 50>>
		The _tentacle.fullDesc winds its way around your waist.

		<<neutral 1>><<set _tentacle.shaft to "waist">>
	<<elseif $rng lte 60>>
		<<if $position isnot "wall">>
			<<if $head is 0 and $nochoke isnot 1 and $asphyxiaLvl gte 1>>
				The _tentacle.fullDesc winds its way around your neck, restraining your head.
				<<neutral 1>><<set _tentacle.shaft to "neck">><<set $head to "grappled">>
			<<else>>
				The _tentacle.fullDesc winds its way around your shoulders.
				<<neutral 1>><<set _tentacle.shaft to "shoulders">>
			<</if>>

		<<else>>
			The _tentacle.fullDesc gently slaps your <<bottom>>.

			<<violence 1>><<hitstat>>
		<</if>>
	<<elseif $rng lte 70>>
		The _tentacle.fullDesc gently slaps your <<bottom>>.

		<<violence 1>><<hitstat>>
	<<elseif $rng lte 80>>
		<<if $leftleg is 0>>
			The _tentacle.fullDesc winds its way around your left leg, restraining it.
			<<neutral 1>><<feettentacledisable>><<set _tentacle.shaft to "leftleg">><<set $leftleg to "grappled">><<set $feettarget to "tentacles">>
		<<else>>
			The _tentacle.fullDesc tickles your feet.
			<<neutral 1>>
		<</if>>

	<<elseif $rng lte 85>>
		<<if $rightleg is 0>>
			The _tentacle.fullDesc winds its way around your right leg, restraining it.
			<<neutral 1>><<feettentacledisable>><<set _tentacle.shaft to "rightleg">><<set $rightleg to "grappled">><<set $feettarget to "tentacles">>
		<<else>>
			The _tentacle.fullDesc tickles your feet.
			<<neutral 1>>
		<</if>>

	<<elseif $rng lte 90>>
		<<if $leftarm is 0>>
			The _tentacle.fullDesc winds its way around your left arm, restraining it.
			<<neutral 1>><<leftarmtentacledisable>><<set _tentacle.shaft to "leftarm">><<set $leftarm to "tentgrappled">><<set $leftarmstate to 0>><<set $lefttarget to "tentacles">>
		<<else>>
			The _tentacle.fullDesc tickles your armpit.
			<<neutral 1>>
		<</if>>

	<<elseif $rng lte 95>>
		<<if $rightarm is 0>>
			The _tentacle.fullDesc winds its way around your right arm, restraining it.
			<<rightarmtentacledisable>><<neutral 1>><<set _tentacle.shaft to "rightarm">><<set $rightarm to "tentgrappled">><<set $rightarmstate to 0>><<set $righttarget to "tentacles">>
		<<else>>
			The _tentacle.fullDesc tickles your armpit.
			<<neutral 1>>
		<</if>>

	<<elseif $rng lte 100>>
		The _tentacle.fullDesc <<slithers>> against your <<bottom>>.

		<<neutral 1>>
	<</if>>
<</if>>
<</widget>>

<<widget "tentacleadvdefault">>
	<<set _tentacle to $args[0] >>
	<<set $rng to random(1, 100)>>
	<<if $rng gte 90>>
		then squirts a warm _fluid over your neck.
		<<set $player.bodyliquid.neck.goo += 1>><<neckejacstat>>
	<<elseif $rng gte 80>>
		then squirts a warm _fluid over your right arm.
		<<set $player.bodyliquid.rightarm.goo += 1>><<handejacstat>>
	<<elseif $rng gte 70>>
		then squirts a warm _fluid over your left arm.
		<<set $player.bodyliquid.leftarm.goo += 1>><<handejacstat>>
	<<elseif $rng gte 60>>
		then squirts a warm _fluid over your thighs.
		<<set $player.bodyliquid.thigh.goo += 1>><<thighejacstat>>
	<<elseif $rng gte 50>>
		then squirts a warm _fluid over your <<bottom>>.
		<<set $player.bodyliquid.bottom.goo += 1>><<bottomejacstat>>
	<<elseif $rng gte 40>>
		then squirts a warm _fluid over your tummy.
		<<set $player.bodyliquid.tummy.goo += 1>><<tummyejacstat>>
	<<elseif $rng gte 30>>
		then squirts a warm _fluid over your chest.
		<<set $player.bodyliquid.chest.goo += 1>><<chestejacstat>>
	<<elseif $rng gte 20>>
		then squirts a warm _fluid over your face.
		<<set $player.bodyliquid.face.goo += 1>><<faceejacstat>>
	<<elseif $rng gte 10>>
		then squirts a warm _fluid over your hair.
		<<set $player.bodyliquid.hair.goo += 1>><<hairejacstat>>
	<<else>>
		then squirts a warm _fluid over your feet.
		<<set $player.bodyliquid.feet.goo += 1>><<feetejacstat>>
	<</if>>
	<<neutral 1>><<set _tentacle.tentaclehealth -= 1>><<ejacstat>>
	<<if $abomination is 1>>
		<<set $enemyarousal += 3>>
	<</if>>
<</widget>>

<<widget "tentacleadvdisable">>
	<<set _tentacle to $args[0] >>

	<<if _tentacle.head is "feet">><<set $leftleg to 0>><<set $rightleg to 0>><<set $feetstate to 0>><</if>>
	<<if _tentacle.head is "leftarm">><<set $leftarm to 0>><<set $leftarmstate to 0>><</if>>
	<<if _tentacle.head is "rightarm">><<set $rightarm to 0>><<set $rightarmstate to 0>><</if>>

	<<if _tentacle.head is "leftnipple" or _tentacle.head is "leftnipplesuck">>
		<<set $leftnipple to 0>>
	<</if>>

	<<if _tentacle.head is "rightnipple" or _tentacle.head is "rightnipplesuck">>
		<<set $rightnipple to 0>>
	<</if>>

	<<if _tentacle.head is "mouthentrance" or _tentacle.head is "mouthimminent" or _tentacle.head is "mouth" or _tentacle.head is "mouthdeep">>
		<<if $mouthuse is "tentacle">><<set $mouthuse to 0>><<set $mouthstate to 0>><</if>>
		<<unset $tentacleMouth>>
	<</if>>

	<<if _tentacle.head is "anusentrance" or _tentacle.head is "anusimminent" or _tentacle.head is "anus" or _tentacle.head is "anusdeep">>
		<<if $anususe is "tentacle" or $anususe is "tentaclerub">><<set $anususe to 0>><<set $anusstate to 0>><</if>>
		<<unset $tentacleAnus>><<unset $tentacleAnusBaby>>
	<</if>>

	<<if _tentacle.head is "vaginaentrance" or _tentacle.head is "vaginaimminent" or _tentacle.head is "vagina" or _tentacle.head is "vaginadeep">>
		<<if $vaginause is "tentacle" or $vaginause is "tentaclerub">><<set $vaginause to 0>><<set $vaginastate to 0>><</if>>
		<<unset $tentacleVagina>>
	<</if>>

	<<if _tentacle.head is "penisentrance" or _tentacle.head is "penisimminent" or _tentacle.head is "penis" or _tentacle.head is "penisdeep">>
		<<if $penisuse is "tentacle" or $penisuse is "tentaclerub">><<set $penisuse to 0>><<set $penisstate to 0>><</if>>
		<<unset $tentaclePenis>>
	<</if>>

	<<if _tentacle.head is "chest">><<set $chestuse to "squeezed">><</if>>

	<<if _tentacle.shaft is "breasts">><<set $chestuse to 0>><</if>>

	<<if _tentacle.head is "vaginarub">><<set $vaginause to 0>><<set $thighuse to 0>><</if>>
	<<if _tentacle.head is "penisrub">><<set $penisuse to 0>><<set $thighuse to 0>><</if>>
	<<if _tentacle.head is "bottomrub">><<set $anususe to 0>><<set $bottomuse to 0>><</if>>
	<<if _tentacle.head is "anusrub">><<set $anususe to 0>><<set $anususe to 0>><</if>>

	<<if _tentacle.shaft is "neck" and $head isnot "bound">><<set $head to 0>><</if>>
	<<if _tentacle.shaft is "leftleg" and $leftleg isnot "bound">><<set $leftleg to 0>><</if>>
	<<if _tentacle.shaft is "rightleg" and $rightleg isnot "bound">><<set $rightleg to 0>><</if>>
	<<if _tentacle.shaft is "leftarm" and $leftarm isnot "bound">><<set $leftarm to 0>><</if>>
	<<if _tentacle.shaft is "rightarm" and $rightarm isnot "bound">><<set $rightarm to 0>><</if>>

	<<set _tentacle.shaft to 0>>
	<<set _tentacle.head to 0>>

<</widget>>

<<widget "actionstentacleadvcheckbox">> /* Dunno what im doing honestly ~Ludsoe */
	<<if $args[3] is $args[4]>><<set _checked to "checked">><<else>><<set _checked to "">><</if>>

	/* Originally i was just passing $args[0] along to the label, but for some reason that didnt work.... but this does*/
	<<if $args[0] is "def" >>
		| $args[1] <<radiobutton $args[2] $args[3] _checked>>
	<<elseif $args[0] is "sub">>
		| $args[1] <<radiobutton $args[2] $args[3] _checked>>
	<<elseif $args[0] is "neutral">>
		| $args[1] <<radiobutton $args[2] $args[3] _checked>>
	<<elseif $args[0] is "brat">>
		| $args[1] <<radiobutton $args[2] $args[3] _checked>>
	<</if>>
<</widget>>

<<widget "actionstentacleadvlefthand">>
	<<set _tentacle to $args[0] >>

	<<if $leftarm is 0 and _tentacle.shaft isnot "finished">>
		<<set _action to "lefthittentacle"+_tentacle.id >>
		<<actionstentacleadvcheckbox "def" "Strike the _tentacle.fullDesc" "$leftaction" _action $leftactiondefault>>

		<<set _action to "leftgrabtentacle"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Grab the _tentacle.fullDesc" "$leftaction" _action $leftactiondefault>>

		<<if $angel gte 4 and $angelBanish gte 1>>
			<<set _action to "leftbanish"+_tentacle.id >>
			<<actionstentacleadvcheckbox "def" "Banish the _tentacle.fullDesc" "$leftaction" _action $leftactiondefault>>
		<</if>>

	<<elseif $leftarm is _tentacle.id>>
		You hold the _tentacle.fullDesc in your left hand.

		<<set _action to "leftrub"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Milk it" "$leftaction" _action $leftactiondefault>>

		<<set _action to "leftstop"+_tentacle.id >>
		<<actionstentacleadvcheckbox "neutral" "Let go" "$leftaction" _action $leftactiondefault>>

		<<if $deviancy gte 75>> /* Should i lock this behind consentacles? */
			<<if ($anususe is 0 and $analdisable is "f") or ($player.vaginaExist and $vaginause is 0 or $player.penisExist and $penisuse is 0) or $mouthuse is 0>>

--<<deviant5>>| --

				<<if $anususe is 0 and $analdisable is "f">>
					<<set _action to "showbottom"+_tentacle.id >>
					<<actionstentacleadvcheckbox "sub" "Guide to your <<bottom>>." "$leftaction" _action $leftactiondefault>>
				<</if>>

				<<if ($player.vaginaExist and $vaginause is 0) or ($player.penisExist and $penisuse is 0)>>
					<<set _action to "showthighs"+_tentacle.id >>
					<<actionstentacleadvcheckbox "sub" "Guide to your thighs." "$leftaction" _action $leftactiondefault>>
				<</if>>

				<<if $mouthuse is 0>>
					<<set _action to "showmouth"+_tentacle.id >>
					<<actionstentacleadvcheckbox "sub" "Guide to your mouth." "$leftaction" _action $leftactiondefault>>
				<</if>>
			<</if>>
		<</if>>

	<</if>>
<</widget>>

<<widget "actionstentacleadvrighthand">>
	<<set _tentacle to $args[0] >>

	<<if $rightarm is 0 and _tentacle.shaft isnot "finished">>
		<<set _action to "righthittentacle"+_tentacle.id >>
		<<actionstentacleadvcheckbox "def" "Strike the _tentacle.fullDesc" "$rightaction" _action $rightactiondefault>>

		<<set _action to "rightgrabtentacle"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Grab the _tentacle.fullDesc" "$rightaction" _action $rightactiondefault>>

		<<if $angel gte 4 and $angelBanish gte 1>>
			<<set _action to "rightbanish"+_tentacle.id >>
			<<actionstentacleadvcheckbox "def" "Banish the _tentacle.fullDesc" "$rightaction" _action $rightactiondefault>>
		<</if>>

	<<elseif $rightarm is _tentacle.id>>
		You hold the _tentacle.fullDesc in your right hand.

		<<set _action to "rightrub"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Milk it" "$rightaction" _action $rightactiondefault>>

		<<set _action to "rightstop"+_tentacle.id >>
		<<actionstentacleadvcheckbox "neutral" "Let go" "$rightaction" _action $rightactiondefault>>

		<<if $deviancy gte 75>> /* Should i lock this behind consentacles? */
			<<if ($anususe is 0 and $analdisable is "f") or ($player.vaginaExist and $vaginause is 0 or $player.penisExist and $penisuse is 0) or $mouthuse is 0>>

--<<deviant5>>| --

				<<if $anususe is 0 and $analdisable is "f">>
					<<set _action to "showbottom"+_tentacle.id >>
					<<actionstentacleadvcheckbox "sub" "Guide to your <<bottom>>." "$rightaction" _action $rightactiondefault>>
				<</if>>

				<<if ($player.vaginaExist and $vaginause is 0) or ($player.penisExist and $penisuse is 0)>>
					<<set _action to "showthighs"+_tentacle.id >>
					<<actionstentacleadvcheckbox "sub" "Guide to your thighs." "$rightaction" _action $rightactiondefault>>
				<</if>>

				<<if $mouthuse is 0>>
					<<set _action to "showmouth"+_tentacle.id >>
					<<actionstentacleadvcheckbox "sub" "Guide to your mouth." "$rightaction" _action $rightactiondefault>>
				<</if>>
			<</if>>
		<</if>>

	<</if>>
<</widget>>

<<widget "actionstentacleadvlegs">>
	<<set _tentacle to $args[0] >>

	<<if $leftleg is 0 and $rightleg is 0 and _tentacle.shaft isnot "finished">>
		<<set _action to "feethit"+_tentacle.id >>
		<<actionstentacleadvcheckbox "def" "Kick the _tentacle.fullDesc" "$feetaction" _action $feetactiondefault>>

		<<set _action to "feetgrab"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Grab the _tentacle.fullDesc" "$feetaction" _action $feetactiondefault>>

	<<elseif ($rightleg is 0 or $leftleg is 0) and _tentacle.shaft isnot "finished">>
		<<set _action to "feethit"+_tentacle.id >>
		<<actionstentacleadvcheckbox "def" "Kick the _tentacle.fullDesc" "$feetaction" _action $feetactiondefault>>

	<<elseif $leftleg is _tentacle.id>>
		You hold the _tentacle.fullDesc between your feet.

		<<set _action to "feetrub"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Milk it" "$feetaction" _action $feetactiondefault>>

		<<set _action to "feetstop"+_tentacle.id >>
		<<actionstentacleadvcheckbox "neutral" "Let go" "$feetaction" _action $feetactiondefault>>

		<<if $deviancy gte 75>> /* Should i lock this behind consentacles? */
			<<if ($anususe is 0 and $analdisable is "f") or ($player.vaginaExist and $vaginause is 0 or $player.penisExist and $penisuse is 0)>>

--<<deviant5>>| --

				<<if $anususe is 0 and $analdisable is "f">>
					<<set _action to "showbottom"+_tentacle.id >>
					<<actionstentacleadvcheckbox "sub" "Guide to your <<bottom>>." "$feetaction" _action $feetactiondefault>>
				<</if>>

				<<if ($player.vaginaExist and $vaginause is 0) or ($player.penisExist and $penisuse is 0)>>
					<<set _action to "showthighs"+_tentacle.id >>
					<<actionstentacleadvcheckbox "sub" "Guide to your thighs." "$feetaction" _action $feetactiondefault>>
				<</if>>

			<</if>>
		<</if>>

	<</if>>
<</widget>>

<<widget "actionstentacleadvmouth">>
	<<set _tentacle to $args[0] >>

	<<if _tentacle.head is "mouthentrance">>
		<<set _action to "mouthlick"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Lick it" "$mouthaction" _action $mouthactiondefault>>

		<<if $head is "grappled">>
		<<else>>
			<<set _action to "mouthpullaway"+_tentacle.id >>
			<<actionstentacleadvcheckbox "brat" "Pull away" "$mouthaction" _action $mouthactiondefault>>
		<</if>>

	<<elseif _tentacle.head is "mouthimminent">>
		<<set _action to "mouthkiss"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Kiss it" "$mouthaction" _action $mouthactiondefault>>

		<<if $head is "grappled">>
		<<else>>
			<<set _action to "mouthpullaway"+_tentacle.id >>
			<<actionstentacleadvcheckbox "brat" "Pull away" "$mouthaction" _action $mouthactiondefault>>
		<</if>>

	<<elseif _tentacle.head is "mouth" or _tentacle.head is "mouthdeep">>
		<<set _action to "mouthcooperate"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Cooperate" "$mouthaction" _action $mouthactiondefault>>

		<<set _action to "mouthbite"+_tentacle.id >>
		<<actionstentacleadvcheckbox "def" "Bite" "$mouthaction" _action $mouthactiondefault>>
	<</if>>

<</widget>>

<<widget "actionstentacleadvvagina">>
	<<set _tentacle to $args[0] >>

	<<if _tentacle.head is "vaginaentrance" or _tentacle.head is "vaginaimminent">>
		<<set _action to "vaginarub"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Rub" "$vaginaaction" _action $vaginaactiondefault>>

		<<if $leftleg is "grappled" and $rightleg is "grappled">>
		<<else>>
			<<set _action to "vaginapullaway"+_tentacle.id >>
			<<actionstentacleadvcheckbox "brat" "Pull away" "$vaginaaction" _action $vaginaactiondefault>>
		<</if>>

	<<elseif _tentacle.head is "vagina" or _tentacle.head is "vaginadeep">>
		<<set _action to "vaginacooperate"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Cooperate" "$vaginaaction" _action $vaginaactiondefault>>

	<</if>>

<</widget>>

<<widget "actionstentacleadvpenis">>
	<<set _tentacle to $args[0] >>

	<<if _tentacle.head is "penisentrance" or _tentacle.head is "penisimminent">>
		<<set _action to "penisrub"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Rub" "$penisaction" _action $penisactiondefault>>

		<<if $leftleg is "grappled" and $rightleg is "grappled">>
		<<else>>
			<<set _action to "penispullaway"+_tentacle.id >>
			<<actionstentacleadvcheckbox "brat" "Pull away" "$penisaction" _action $penisactiondefault>>

		<</if>>

	<<elseif _tentacle.head is "penis" or _tentacle.head is "penisdeep">>
		<<set _action to "peniscooperate"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Cooperate" "$penisaction" _action $penisactiondefault>>

	<</if>>

<</widget>>

<<widget "actionstentacleadvanus">>
	<<set _tentacle to $args[0] >>

	<<if _tentacle.head is "anusentrance" or _tentacle.head is "anusimminent">>
		<<set _action to "anusrub"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Rub" "$anusaction" _action $anusactiondefault>>

		<<if $leftleg is "grappled" and $rightleg is "grappled">>
		<<else>>
			<<set _action to "anuspullaway"+_tentacle.id >>
			<<actionstentacleadvcheckbox "brat" "Pull away" "$anusaction" _action $anusactiondefault>>

		<</if>>

	<<elseif _tentacle.head is "anus" or _tentacle.head is "anusdeep">>
		<<set _action to "anuscooperate"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Cooperate" "$anusaction" _action $anusactiondefault>>

	<</if>>

<</widget>>

<<widget "actionstentacleadvthighs">>
	<<set _tentacle to $args[0] >>

	<<if _tentacle.head is "penisrub">>
		<<set _action to "penisrub"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Rub" "$thighaction" _action $thighactiondefault>>

	<<elseif _tentacle.head is "vaginarub">>
		<<set _action to "vaginarub"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Rub" "$thighaction" _action $thighactiondefault>>

	<</if>>

<</widget>>

<<widget "actionstentacleadvbottom">>
	<<set _tentacle to $args[0] >>

	<<set _action to "bottomrub"+_tentacle.id >>
	<<actionstentacleadvcheckbox "sub" "Rub" "$bottomaction" _action $bottomactiondefault>>

<</widget>>

<<widget "actionstentacleadvchest">>
	<<set _tentacle to $args[0] >>

	<<set _action to "chestrub"+_tentacle.id >>
	<<actionstentacleadvcheckbox "sub" "Rub" "$chestaction" _action $chestactiondefault>>

<</widget>>

<<widget "effectstentacleadv">>
	<<set _tentacle to $args[0] >>
	<<if _tentacle.type is "vine">>
		<<set _fluid to "nectar">>
	<<else>>
		<<set _fluid to "fluid">>
	<</if>>
	<<set $rng to random(1, 100)>>

	/*New Controls*/
	<<if ($leftaction is "lefthittentacle" and $leftactionTarget is _tentacle.id)
	or ($rightaction is "righthittentacle" and $rightactionTarget is _tentacle.id)>>
		<<if $leftaction is "lefthittentacle" and $rightaction is "righthittentacle" and $leftactionTarget is $rightactionTarget>>
			You strike the _tentacle.fullDesc with both hands and it reels away from you.
			<<set _multi to 2>>
			<<set $leftaction to 0>><<set $leftactiondefault to "lefthittentacle">>
			<<set $rightaction to 0>><<set $rightactiondefault to "righthittentacle">>
		<<elseif $leftaction is "lefthittentacle">>
			You strike the _tentacle.fullDesc with your left hand and it reels away from you.
			<<set _multi to 1>><<set $leftaction to 0>>
			<<set $leftactiondefault to "lefthittentacle">>
		<<else>>
			You strike the _tentacle.fullDesc with your right hand and it reels away from you.
			<<set _multi to 1>>
			<<set $rightaction to 0>><<set $rightactiondefault to "righthittentacle">>
		<</if>>
		<<defiance `2 * _multi`>>
		<<set $speechhit to 1 * _multi>><<set $attackstat += 1 * _multi>>
		<<if $rng lte ($physique / 200)>><<set _tentacle.tentaclehealth -= 1 * _multi>><</if>>
		<<set _tentacle.tentaclehealth -= 1 * _multi>>
		<<tentacleadvdisable _tentacle>>
		<<if $abomination is 1>>
			The <<person>> winces in pain.
		<</if>>
	<</if>>

	<<if ($leftaction is "leftbanish" and $leftactionTarget is _tentacle.id)
	or ($rightaction is "rightbanish" and $rightactionTarget is _tentacle.id)>>
		<<if $leftaction is "leftbanish" and $rightaction is "rightbanish" and $leftactionTarget is $rightactionTarget and $angelBanish gte 2>>
			<<set $angelBanish -= 2>>
			You clasp your hands together in prayer. The _tentacle.fullDesc shimmers brightly, and is blasted away from you.
			<<set _multi to 2>>
			<<set $leftaction to 0>><<set $leftactiondefault to "leftbanish">>
			<<set $rightaction to 0>><<set $rightactiondefault to "rightbanish">>
		<<elseif $leftaction is "leftbanish">>
			<<set $angelBanish -->>
			You make an intricate gesture with your left hand. The _tentacle.fullDesc shimmers and recoils violently.
			<<set _multi to 1>><<set $leftaction to 0>>
			<<set $leftactiondefault to "leftbanish">>
		<<else>>
			<<set $angelBanish -->>
			You make an intricate gesture with your right hand. The _tentacle.fullDesc shimmers and recoils violently.
			<<set _multi to 1>><<set $rightaction to 0>>
			<<set $rightactiondefault to "rightbanish">>
		<</if>>
		<<if $purity gte 1000>>
			<<set _multi ++>>
		<</if>>
		<<defiance `($purity / 100) * _multi`>>
		<<set $speechhit to 1 * _multi>><<set $attackstat += 1 * _multi>>
		<<if $rng lte ($purity / 20)>><<set _tentacle.tentaclehealth -= 10 * _multi>><</if>>
		<<set _tentacle.tentaclehealth -= 10 * _multi>>
		<<tentacleadvdisable _tentacle>>
		<<if $abomination is 1>>
			The <<person>> recoils from the light.
		<</if>>
	<</if>>

	<<if ($leftaction is "leftgrabtentacle" and $leftactionTarget is _tentacle.id)
	or ($rightaction is "rightgrabtentacle" and $rightactionTarget is _tentacle.id)>>
		<<tentacleadvdisable _tentacle>> /* Make sure you call this before trying to set the tentacle info */
		<<if $leftaction is "leftgrabtentacle" and $leftactionTarget is _tentacle.id>>
			<<set _hand to "left">><<set $leftaction to 0>><<set $leftactiondefault to "leftrub">>
			<<set $leftarm to _tentacle.id>><<set _tentacle.head to "leftarm">><<set $leftarmstate to "tentacle">><<set $lefttarget to "tentacles">>
		<<else>>
			<<set _hand to "right">><<set $rightaction to 0>><<set $rightactiondefault to "rightrub">>
			<<set $rightarm to _tentacle.id>><<set _tentacle.head to "rightarm">><<set $rightarmstate to "tentacle">><<set $righttarget to "tentacles">>
		<</if>>
		You <<handtext>> grab the _tentacle.fullDesc with your _hand hand.
		<<submission 1>><<handstat>>
	<</if>>

	<<if $leftaction is "leftrub"+_tentacle.id or $rightaction is "rightrub"+_tentacle.id>>
		<<if $leftaction is "leftrub"+_tentacle.id>>
			<<set _hand to "left">><<set $leftaction to 0>>
			<<set $leftactiondefault to "leftrub"+_tentacle.id>>
		<<else>>
			<<set _hand to "right">><<set $rightaction to 0>>
			<<set $rightactiondefault to "rightrub"+_tentacle.id>>
		<</if>>

		<<handskilluse>><<submission 1>>
		You <<handtext>> squeeze the _tentacle.fullDesc in your _hand hand and rub up and down its length.

		<<if $handskill gte (800 - ($rng * 10))>>
			Slimy _fluid erupts from the tip.
			<<set _tentacle.tentaclehealth -= 3>>
			<<if $abomination is 1>>
				<<set $enemyarousal += 6>>
			<</if>>
			<<handejacstat>><<ejacstat>>
			<<if _hand is "left">><<set $player.bodyliquid.leftarm.goo += 1>><<else>><<set $player.bodyliquid.rightarm.goo += 1>><</if>>
		<</if>>
	<</if>>

	<<if $leftaction is "leftstruggle" or $rightaction is "rightstruggle">>
		<<if !_struggletext>>
			<<if $leftaction is "leftstruggle" and $rightaction is "rightstruggle">>
				You struggle with all your might.
			<<else>>
				You struggle.
			<</if>>
			<<set _struggletext to 1>>
		<</if>>
		<<if $abomination is 1 and ($NPCList[0].lefthand is "arms" or $NPCList[0].righthand is "arms")>>
			<<if $leftaction is "leftstruggle" and $rightaction is "rightstruggle">>
				<<set $leftaction to 0>><<set $rightaction to 0>><<set $leftactiondefault to "leftstruggle">><<set $rightactiondefault to "rightstruggle">>
				<<if $physique gte random(1, 32000)>>
					You manage to twist your arms free.
					<<defiance 5>>
					<<set $leftarm to 0>><<set $rightarm to 0>>
					<<set $NPCList[0].lefthand to 0>>
					<<set $NPCList[0].righthand to 0>>
				<<else>>
					Your arms remain grasped.
				<</if>>
			<<else>>
				<<if $physique gte random(1, 64000)>>
					You manage to twist your arms free.
					<<defiance 5>>
					<<set $leftarm to 0>><<set $rightarm to 0>>
					<<set $NPCList[0].lefthand to 0>>
					<<set $NPCList[0].righthand to 0>>
				<<else>>
					Your arms remain grasped.
				<</if>>
			<</if>>
		<</if>>
		<<if $leftaction is "leftstruggle" and _tentacle.shaft is "leftarm">>
			<<set $leftaction to 0>><<set $leftactiondefault to "leftstruggle">>
			<<set $speechstruggle to 1>><<defiance 1>>
			<<if $physique gte random(1, 64000)>>
				You manage to twist your left arm free.
				<<defiance 5>><<tentacleadvdisable _tentacle>>
				<<set $leftarm to 0>>
			<<else>>
				Your left arm remains grasped.
			<</if>>
		<</if>>
		<<if $rightaction is "rightstruggle" and _tentacle.shaft is "rightarm">>
			<<set $rightaction to 0>><<set $rightactiondefault to "rightstruggle">>
			<<defiance 1>><<set $speechstruggle to 1>>
			<<if $physique gte random(1, 64000)>>
				You manage to twist your right arm free.
				<<defiance 5>><<tentacleadvdisable _tentacle>>
				<<set $rightarm to 0>>
			<<else>>
				Your right arm remains grasped.
			<</if>>
		<</if>>
	<</if>>

	<<if $leftaction is "showbottom"+_tentacle.id or $rightaction is "showbottom"+_tentacle.id>>
		<<if $leftaction is "showbottom"+_tentacle.id>>
			<<set _hand to "left">><<set $leftaction to 0>>
			<<set $leftarm to 0>>
			<<set $leftarmstate to 0>>
		<<else>>
			<<set _hand to "right">><<set $rightaction to 0>>
			<<set $rightarm to 0>>
			<<set $rightarmstate to 0>>
		<</if>>

		<<submission 1>>

		<<combatdeviancy5>>

		You <<handtext>> guide the _tentacle.fullDesc with your _hand hand towards your <<bottom>>.

		<<if $rng lte 30>> /* How common will the tentacle wrap around the arm guiding it */
			<<if _hand is "left">>
				<<leftarmtentacledisable>>
				<<set _tentacle.shaft to "leftarm">>
				<<set $leftarm to "tentgrappled">><<set $leftarmstate to 0>><<set $lefttarget to "tentacles">>
			<<else>>
				<<rightarmtentacledisable>>
				<<set _tentacle.shaft to "rightarm">>
				<<set $rightarm to "tentgrappled">><<set $rightarmstate to 0>><<set $righttarget to "tentacles">>
			<</if>>
			The _tentacle.fullDesc winds its way around your _hand arm, restraining it.
			<<neutral 1>>
		<<else>>
			<<if _tentacle.shaft is 0>>
				<<set _tentacle.shaft to (either("tummy","waist","thighs"))>>
			<</if>>
		<</if>>

		<<set $anusstate to "tentaclerub">><<set $anususe to "tentaclerub">>
		<<set _tentacle.head to "anusrub">><<sex 1>><<bottomstat>><<set $anustarget to "tentacles">>
	<</if>>

	<<if $leftaction is "showmouth"+_tentacle.id or $rightaction is "showmouth"+_tentacle.id>>
		<<if $leftaction is "showmouth"+_tentacle.id>>
			<<set _hand to "left">><<set $leftaction to 0>>
			<<set $leftarm to 0>>
			<<set $leftarmstate to 0>>
		<<else>>
			<<set _hand to "right">><<set $rightaction to 0>>
			<<set $rightarm to 0>>
			<<set $rightarmstate to 0>>
		<</if>>

		<<submission 1>>

		<<combatdeviancy5>>

		You <<handtext>> guide the _tentacle.fullDesc with your _hand hand up towards your mouth.

		<<if $rng lte 30>> /* How common will the tentacle wrap around the arm guiding it */
			<<if _hand is "left">>
				<<leftarmtentacledisable>>
				<<set _tentacle.shaft to "leftarm">>
				<<set $leftarm to "tentgrappled">><<set $leftarmstate to 0>><<set $lefttarget to "tentacles">>
			<<else>>
				<<rightarmtentacledisable>>
				<<set _tentacle.shaft to "rightarm">>
				<<set $rightarm to "tentgrappled">><<set $rightarmstate to 0>><<set $righttarget to "tentacles">>
			<</if>>
			The _tentacle.fullDesc winds its way around your _hand arm, restraining it.
			<<neutral 1>>
		<<else>>
			<<if _tentacle.shaft is 0>>
				<<if $nochoke is 1>>
					<<set _tentacle.shaft to (either("tummy","chest","breasts"))>>
				<<else>>
					<<set _tentacle.shaft to (either("tummy","neck","chest","breasts"))>>
				<</if>>
			<</if>>
		<</if>>

		<<set $mouthuse to "tentacle">><<set $mouthstate to "tentacleentrance">><<set $mouthtarget to "tentacles">>
		<<set _tentacle.head to "mouthentrance">><<neutral 2>>
	<</if>>

	<<if $leftaction is "showthighs"+_tentacle.id or $rightaction is "showthighs"+_tentacle.id>>
		<<if $leftaction is "showthighs"+_tentacle.id>>
			<<set _hand to "left">><<set $leftaction to 0>>
			<<set $leftarm to 0>>
			<<set $leftarmstate to 0>>
		<<else>>
			<<set _hand to "right">><<set $rightaction to 0>>
			<<set $rightarm to 0>>
			<<set $rightarmstate to 0>>
		<</if>>

		<<submission 1>>

		<<combatdeviancy5>>

		You <<handtext>> guide the _tentacle.fullDesc with your _hand hand between your thighs.

		<<if $rng lte 30>> /* How common will the tentacle wrap around the arm guiding it */
			<<if _hand is "left">>
				<<leftarmtentacledisable>>
				<<set _tentacle.shaft to "leftarm">>
				<<set $leftarm to "tentgrappled">><<set $leftarmstate to 0>><<set $lefttarget to "tentacles">>
			<<else>>
				<<rightarmtentacledisable>>
				<<set _tentacle.shaft to "rightarm">>
				<<set $rightarm to "tentgrappled">><<set $rightarmstate to 0>><<set $righttarget to "tentacles">>
			<</if>>
			The _tentacle.fullDesc winds its way around your _hand arm, restraining it.
			<<neutral 1>>
		<<else>>
			<<if _tentacle.shaft is 0>>
				<<set _tentacle.shaft to (either("tummy","waist"))>>
			<</if>>
		<</if>>

		<<if $player.penisExist and $penisuse is 0>>
			<<set $penisuse to "tentaclerub">><<set _tentacle.head to "penisrub">><<set $penistarget to "tentacles">>
		<<elseif $player.vaginaExist and $vaginause is 0>>
			<<set $vaginause to "tentaclerub">><<set _tentacle.head to "vaginarub">><<set $vaginatarget to "tentacles">>
		<</if>>

		<<sex 3>><<thighstat>>
		<<set $thighuse to "tentaclerub">>
	<</if>>

	<<if $leftaction is "showpenis"+_tentacle.id or $rightaction is "showpenis"+_tentacle.id>>
		<<if $leftaction is "showpenis"+_tentacle.id>>
			<<set _hand to "left">><<set $leftaction to 0>>
			<<set $leftarm to 0>>
			<<set $leftarmstate to 0>>
		<<else>>
			<<set _hand to "right">><<set $rightaction to 0>>
			<<set $rightarm to 0>>
			<<set $rightarmstate to 0>>
		<</if>>
		<<if $player.penisExist>>
			<<submission 1>>

			<<combatdeviancy5>>

			You <<handtext>> guide the _tentacle.fullDesc with your _hand hand between your thighs close to your penis.

			<<if $rng lte 30>> /* How common will the tentacle wrap around the arm guiding it */
				<<if _hand is "left">>
					<<leftarmtentacledisable>>
					<<set _tentacle.shaft to "leftarm">>
					<<set $leftarm to "tentgrappled">><<set $leftarmstate to 0>><<set $lefttarget to "tentacles">>
				<<else>>
					<<rightarmtentacledisable>>
					<<set _tentacle.shaft to "rightarm">>
					<<set $rightarm to "tentgrappled">><<set $rightarmstate to 0>><<set $righttarget to "tentacles">>
				<</if>>
				The _tentacle.fullDesc winds its way around your _hand arm, restraining it.
				<<neutral 1>>
			<<else>>
				<<if _tentacle.shaft is 0>>
					<<set _tentacle.shaft to (either("tummy","waist"))>>
				<</if>>
			<</if>>

			<<if $penisuse is 0>>
				<<set $penisuse to "tentaclerub">><<set _tentacle.head to "penisrub">><<set $penistarget to "tentacles">>
			<</if>>

			<<sex 3>><<thighstat>>
			<<set $thighuse to "tentaclerub">>
		<</if>>
	<</if>>

	<<if $leftaction is "showvagina"+_tentacle.id or $rightaction is "showvagina"+_tentacle.id>>
		<<if $leftaction is "showvagina"+_tentacle.id>>
			<<set _hand to "left">><<set $leftaction to 0>>
			<<set $leftarm to 0>>
			<<set $leftarmstate to 0>>
		<<else>>
			<<set _hand to "right">><<set $rightaction to 0>>
			<<set $rightarm to 0>>
			<<set $rightarmstate to 0>>
		<</if>>
		<<if $player.vaginaExist>>
			<<submission 1>>

			<<combatdeviancy5>>

			You <<handtext>> guide the _tentacle.fullDesc with your _hand hand between your thighs close to your pussy.

			<<if $rng lte 30>> /* How common will the tentacle wrap around the arm guiding it */
				<<if _hand is "left">>
					<<leftarmtentacledisable>>
					<<set _tentacle.shaft to "leftarm">>
					<<set $leftarm to "tentgrappled">><<set $leftarmstate to 0>><<set $lefttarget to "tentacles">>
				<<else>>
					<<rightarmtentacledisable>>
					<<set _tentacle.shaft to "rightarm">>
					<<set $rightarm to "tentgrappled">><<set $rightarmstate to 0>><<set $righttarget to "tentacles">>
				<</if>>
				The _tentacle.fullDesc winds its way around your _hand arm, restraining it.
				<<neutral 1>>
			<<else>>
				<<if _tentacle.shaft is 0>>
					<<set _tentacle.shaft to (either("tummy","waist"))>>
				<</if>>
			<</if>>

			<<if $vaginause is 0>>
				<<set $vaginause to "tentaclerub">><<set _tentacle.head to "vaginarub">><<set $vaginatarget to "tentacles">>
			<</if>>

			<<sex 3>><<thighstat>>
			<<set $thighuse to "tentaclerub">>
		<</if>>
	<</if>>

	<<if $leftaction is "leftstop"+_tentacle.id>>
		<<set $leftaction to 0>><<set $leftactiondefault to "leftstop"+_tentacle.id>>
		You release the _tentacle.fullDesc from your left hand.
		<<tentacleadvdisable _tentacle>>
	<</if>>

	<<if $rightaction is "rightstop"+_tentacle.id>>
		<<set $rightaction to 0>><<set $rightactiondefault to "rightstop"+_tentacle.id>>
		You release the _tentacle.fullDesc from your right hand.
		<<tentacleadvdisable _tentacle>>
	<</if>>

	<<if $leftaction is "leftstop"+_tentacle.id>>
		<<set $leftaction to 0>><<set $leftactiondefault to "leftstop"+_tentacle.id>>
		You release the _tentacle.fullDesc from your left hand.
		<<tentacleadvdisable _tentacle>>
	<</if>>

	<<if $feetaction is "feethit" and $feetactionTarget is _tentacle.id>>
		<<set $feetaction to 0>><<set $feetactiondefault to "feethit">>
		You kick the _tentacle.fullDesc and it reels away from you.
		<<defiance 2>><<set $speechhit to 1>><<tentacleadvdisable _tentacle>><<set $attackstat += 1>>
		<<set _tentacle.tentaclehealth -= 1>>
		<<if $rng lte ($physique / 200)>>
			<<set _tentacle.tentaclehealth -= 1>>
		<</if>>
		<<if $abomination is 1>>
			<<defiance 3>>
		<</if>>
	<</if>>
	<<if $feetaction is "feetgrab" and $feetactionTarget is _tentacle.id>>
		<<set $feetaction to 0>><<set $feetactiondefault to "feetrub">><<submission 1>><<feetstat>>
		You <<feettext>> grab the _tentacle.fullDesc between your feet.
		<<tentacleadvdisable _tentacle>><<set $leftleg to _tentacle.id>><<set $rightleg to _tentacle.id>><<set $feettarget to "tentacles">>
		<<set _tentacle.head to "feet">><<feetstat>><<set $feetstate to "tentacle">>
	<</if>>

	<<if $feetaction is "feetrub"+_tentacle.id>>
		<<set $feetaction to 0>><<set $feetactiondefault to "feetrub"+_tentacle.id>><<feetskilluse>><<submission 1>>
		You <<feettext>> squeeze the _tentacle.fullDesc between your feet and rub up and down its length.
		<<if $feetskill gte (800 - ($rng * 10))>>
			Slimy _fluid erupts from the tip.
			<<set $player.bodyliquid.feet.goo += 1>><<set _tentacle.tentaclehealth -= 3>><<feetejacstat>><<ejacstat>>
			<<if $abomination is 1>>
				<<set $enemyarousal += 6>>
			<</if>>
		<</if>>
	<</if>>

	<<if $feetaction is "showthighs"+_tentacle.id or $feetaction is "showbottom"+_tentacle.id>>
		<<set $feetaction to 0>><<set $feetstate to 0>>
		<<set $leftleg to 0>><<set $rightleg to 0>>

		<<submission 1>>

		<<combatdeviancy5>>

		<<if $feetaction is "showthighs"+_tentacle.id>>
			<<set _dir to "thighs">>
			You <<feettext>> guide the _tentacle.fullDesc with your feet between your thighs.
		<<else>>
			<<set _dir to "bottom">>
			You <<feettext>> guide the _tentacle.fullDesc with your feet towards your <<bottom>>.
		<</if>>

		<<if $rng lte 30>> /* Leg grapple? */
			<<if $rng gte 15>>
				<<set _leg to "left">><<set _tentacle.shaft to "leftleg">><<set $leftleg to "grappled">><<set $feettarget to "tentacles">>
			<<else>>
				<<set _leg to "right">><<set _tentacle.shaft to "rightleg">><<set $rightleg to "grappled">><<set $feettarget to "tentacles">>
			<</if>>
			<<neutral 1>><<feettentacledisable>>
			The _tentacle.fullDesc winds its way around your _leg leg, restraining it.
		<<else>>
			<<if _tentacle.shaft is 0>>
				<<if _dir is "thighs">>
					<<set _tentacle.shaft to (either("tummy","waist"))>>
				<<else>>
					<<set _tentacle.shaft to (either("tummy","waist","thighs"))>>
				<</if>>
			<</if>>
		<</if>>

		<<if _dir is "thighs">>
			<<if $player.penisExist and $penisuse is 0>>
				<<set $penisuse to "tentaclerub">><<set _tentacle.head to "penisrub">><<set $penistarget to "tentacles">>
			<<elseif $player.vaginaExist and $vaginause is 0>>
				<<set $vaginause to "tentaclerub">><<set _tentacle.head to "vaginarub">><<set $vaginatarget to "tentacles">>
			<</if>>

			<<sex 3>><<thighstat>>
			<<set $thighuse to "tentaclerub">>
		<<else>>
			<<set $anusstate to "tentaclerub">><<set $anususe to "tentaclerub">>
			<<set _tentacle.head to "anusrub">><<sex 1>><<bottomstat>><<set $anustarget to "tentacles">>
		<</if>>
	<</if>>

	<<if $feetaction is "showvagina"+_tentacle.id>>
		<<set $feetaction to 0>><<set $feetstate to 0>>
		<<set $leftleg to 0>><<set $rightleg to 0>>

		<<if $player.vaginaExist>>
			<<submission 1>>

			<<combatdeviancy5>>

			You <<feettext>> guide the _tentacle.fullDesc with your feet between your thighs close to your pussy.

			<<if $rng lte 30>>
				<<if $rng gte 15>>
					<<set _leg to "left">><<set _tentacle.shaft to "leftleg">><<set $leftleg to "grappled">><<set $feettarget to "tentacles">>
				<<else>>
					<<set _leg to "right">><<set _tentacle.shaft to "rightleg">><<set $rightleg to "grappled">><<set $feettarget to "tentacles">>
				<</if>>
				<<neutral 1>><<feettentacledisable>>
				The _tentacle.fullDesc winds its way around your _leg leg, restraining it.
			<<else>>
				<<if _tentacle.shaft is 0>>
					<<set _tentacle.shaft to (either("tummy","waist"))>>
				<</if>>
			<</if>>

			<<if $vaginause is 0>>
				<<set $vaginause to "tentaclerub">><<set _tentacle.head to "vaginarub">><<set $vaginatarget to "tentacles">>
			<</if>>

			<<sex 3>><<thighstat>>
			<<set $thighuse to "tentaclerub">>
		<</if>>
	<</if>>

	<<if $feetaction is "feetstop"+_tentacle.id>>
		<<set $feetaction to 0>><<set $feetactiondefault to "feetstop"+_tentacle.id>>
		You let go of the _tentacle.fullDesc between your feet.
		<<tentacleadvdisable _tentacle>>
	<</if>>

	<<if $mouthaction is "mouthlick"+_tentacle.id>>
		<<set $mouthaction to 0>><<set $mouthactiondefault to "mouthlick"+_tentacle.id>>
		<<submission 2>><<oralskilluse>>
		You <<oraltext>> lick the tip of the _tentacle.fullDesc.
		<<if $oralskill gte (800 - ($rng * 10))>>
			Slimy _fluid erupts from the tip, covering your face.
			<<set $player.bodyliquid.face.goo += 1>><<set _tentacle.tentaclehealth -= 3>><<faceejacstat>><<ejacstat>>
			<<if $abomination is 1>>
				<<set $enemyarousal += 6>>
			<</if>>
		<</if>>
	<</if>>

	<<if $mouthaction is "mouthkiss"+_tentacle.id>>
		<<set $mouthaction to 0>><<set $mouthactiondefault to "mouthkiss"+_tentacle.id>>
		<<submission 3>><<oralskilluse>>
		You <<oraltext>> kiss the tip of the _tentacle.fullDesc.
		<<if $oralskill gte (800 - ($rng * 10))>>
			Slimy _fluid erupts from the tip, covering your face.
			<<set $player.bodyliquid.face.goo += 1>><<set _tentacle.tentaclehealth -= 3>><<faceejacstat>><<ejacstat>>
			<<if $abomination is 1>>
				<<set $enemyarousal += 6>>
			<</if>>
		<</if>>
	<</if>>

	<<if $mouthaction is "take">>
		<<set $mouthaction to 0>><<set $mouthactiondefault to "take">>

	<</if>>

	<<if $mouthaction is "mouthcooperate"+_tentacle.id>>
		<<set $mouthaction to 0>><<set $mouthactiondefault to "mouthcooperate"+_tentacle.id>>
		<<sex 5>><<oralskilluse>>
		You <<oraltext>> suck the _tentacle.fullDesc invading your mouth.
		<<if $oralskill gte (800 - ($rng * 10))>>
			Slimy _fluid erupts from the tip and into your mouth.
			<<set _tentacle.tentaclehealth -= 3>><<if _fluid is "nectar">><<nectarfed 5>><<else>><<drugs 3>><</if>><<set $player.bodyliquid.mouth.goo += 1>><<oralejacstat>><<ejacstat>>
			<<if _tentacle.desc.includes("pale")>>
				<<set $hallucinogen += 5>>
			<</if>>
			<<if $abomination is 1>>
				<<set $enemyarousal += 6>>
			<</if>>
		<</if>>
	<</if>>

	<<if $mouthaction is "mouthpullaway"+_tentacle.id>>
		<<set _nectarDifficulty to Math.clamp($drugged, 0, 500) + Math.clamp($nectar_addiction, 0, 500)>>
		<<willpowerdifficulty _nectarDifficulty $willpowermax "silent">>
		<<if $NPCList[0].type is "plant" and _tentacle.head is "mouthdeep" and !$willpowerSuccess>>
			You attempt to pull away from the _tentacle.fullDesc threatening your mouth.
			However, you can't tear yourself from the sweet nectar,
			and desperately suck on the _tentacle.type.
			<<willpower 1>>
		<<else>>
			<<set $mouthaction to 0>><<set $mouthactiondefault to "mouthpullaway"+_tentacle.id>><<brat 1>>
			You pull away from the _tentacle.fullDesc threatening your mouth.
			<<tentacleadvdisable _tentacle>>
		<</if>>
	<</if>>

	<<if $mouthaction is "mouthbite"+_tentacle.id>>
		<<set $mouthaction to 0>><<set $mouthactiondefault to "mouthbite"+_tentacle.id>><<defiance 5>>
		You bite down on the _tentacle.fullDesc invading your mouth. It recoils immediately.
		<<tentacleadvdisable _tentacle>><<set $attackstat += 1>><<set _tentacle.tentaclehealth -= 1>>
		<<if $rng lte ($physique / 200)>>
			<<set _tentacle.tentaclehealth -= 1>>
		<</if>>
		<<if $abomination is 1>>
			The <<person>> grunts in pain. <<defiance 10>>
			<<if $wolfgirl gte 2 or $cat gte 2>>
				<<defiance 10>><<defiance 10>>
				You lick your fangs clean.
			<</if>>
		<</if>>
	<</if>>

	<<if $vaginaaction is "vaginarub"+_tentacle.id>>
		<<set $vaginaaction to 0>><<set $vaginaactiondefault to "vaginarub"+_tentacle.id>>
		<<submission 2>><<vaginalskilluse>>
		You <<vaginaltext>> rub the tip of the _tentacle.fullDesc with your <<pussy>>.
		<<if $vaginalskill gte (800 - ($rng * 10))>>
			Slimy _fluid erupts from the tip.
			<<set $player.bodyliquid.vaginaoutside.goo += 1>><<set _tentacle.tentaclehealth -= 3>><<vaginalentranceejacstat>><<ejacstat>>
			<<if $abomination is 1>>
				<<set $enemyarousal += 6>>
			<</if>>
		<</if>>
	<</if>>

	<<if $vaginaaction is "take">>
		<<set $vaginaaction to 0>><<set $vaginaactiondefault to "take">>

	<</if>>

	<<if $vaginaaction is "vaginacooperate"+_tentacle.id>>
		<<set $vaginaaction to 0>><<set $vaginaactiondefault to "vaginacooperate"+_tentacle.id>>
		<<sex 5>><<vaginalskilluse>>
		You <<vaginaltext>> push back against the _tentacle.fullDesc invading your <<pussy>>.
		<<if $vaginalskill gte (800 - ($rng * 10))>>
			Slimy _fluid erupts from the tip, flooding your womb with its warmth.
			<<set _tentacle.tentaclehealth -= 3>><<drugs 3>><<set $player.bodyliquid.vagina.goo += 1>><<vaginalejacstat>><<ejacstat>>
			<<if _tentacle.desc.includes("pale")>>
				<<set $hallucinogen += 5>>
			<</if>>
			<<if $abomination is 1>>
				<<set $enemyarousal += 6>>
			<</if>>
		<</if>>
	<</if>>

	<<if $vaginaaction is "vaginapullaway"+_tentacle.id>>
		<<set $vaginaaction to 0>><<set $vaginaactiondefault to "vaginapullaway"+_tentacle.id>><<brat 1>>
		You pull away from the _tentacle.fullDesc threatening your <<pussy>>.
		<<tentacleadvdisable _tentacle>>
	<</if>>

	<<if $penisaction is "penisrub"+_tentacle.id>>
		<<set $penisaction to 0>><<set $penisactiondefault to "penisrub"+_tentacle.id>>
		<<submission 2>><<penileskilluse>>
		You <<peniletext>> rub the tip of the _tentacle.fullDesc with your <<penis>>.
		<<if $penileskill gte (800 - ($rng * 10))>>
			Slimy _fluid erupts from the tip.
			<<set $player.bodyliquid.penis.goo += 1>><<set _tentacle.tentaclehealth -= 3>><<penileejacstat>><<ejacstat>>
			<<if $abomination is 1>>
				<<set $enemyarousal += 6>>
			<</if>>
		<</if>>
	<</if>>

	<<if $penisaction is "take">>
		<<set $penisaction to 0>><<set $penisactiondefault to "take">>

	<</if>>

	<<if $penisaction is "peniscooperate"+_tentacle.id>>
		<<set $penisaction to 0>><<set $penisactiondefault to "peniscooperate"+_tentacle.id>>
		<<sex 5>><<penileskilluse>>
		You <<peniletext>> push back against the _tentacle.fullDesc engulfing your <<penis>>.
		<<if $penileskill gte (800 - ($rng * 10))>>
			Slimy _fluid erupts from the tip, covering your groin.
			<<set _tentacle.tentaclehealth -= 3>><<set $player.bodyliquid.penis.goo += 1>><<penileejacstat>><<ejacstat>>
			<<if $abomination is 1>>
				<<set $enemyarousal += 6>>
			<</if>>
		<</if>>
	<</if>>

	<<if $penisaction is "penispullaway"+_tentacle.id>>
		<<set $penisaction to 0>><<set $penisactiondefault to "penispullaway"+_tentacle.id>><<brat 1>>
		You pull away from the _tentacle.fullDesc threatening your <<penis>>.
		<<tentacleadvdisable _tentacle>>
	<</if>>

	<<if $anusaction is "anusrub"+_tentacle.id>>
		<<set $anusaction to 0>><<set $anusactiondefault to "anusrub"+_tentacle.id>>
		<<submission 2>><<analskilluse>>
		You <<analtext>> rub the tip of the _tentacle.fullDesc with your <<bottom>>.
		<<if $analskill gte (800 - ($rng * 10))>>
			Slimy _fluid erupts from the tip, covering your <<bottom>>.
			<<set $player.bodyliquid.bottom.goo += 1>><<set _tentacle.tentaclehealth -= 3>><<bottomejacstat>><<ejacstat>>
			<<if $abomination is 1>>
				<<set $enemyarousal += 6>>
			<</if>>
		<</if>>
	<</if>>

	<<if $anusaction is "take">>
		<<set $anusaction to 0>><<set $anusactiondefault to "take">>

	<</if>>

	<<if $anusaction is "anuscooperate"+_tentacle.id>>
		<<set $anusaction to 0>><<set $anusactiondefault to "anuscooperate"+_tentacle.id>>
		<<sex 5>><<analskilluse>>
		You <<analtext>> push back against the _tentacle.fullDesc invading your <<bottom>>.
		<<if $analskill gte (800 - ($rng * 10))>>
			Slimy _fluid erupts from the tip, flooding your bowels with its warmth.
			<<set _tentacle.tentaclehealth -= 3>><<drugs 3>><<set $player.bodyliquid.anus.goo += 1>><<analejacstat>><<ejacstat>>
			<<if _tentacle.desc.includes("pale")>>
				<<set $hallucinogen += 5>>
			<</if>>
			<<if $abomination is 1>>
				<<set $enemyarousal += 6>>
			<</if>>
		<</if>>
	<</if>>

	<<if $anusaction is "anuspullaway"+_tentacle.id>>
		<<set $anusaction to 0>><<set $anusactiondefault to "anuspullaway"+_tentacle.id>><<brat 1>>
		You pull away from the _tentacle.fullDesc threatening your <<bottom>>.
		<<tentacleadvdisable _tentacle>>
	<</if>>

	<<if $thighaction is "penisrub"+_tentacle.id>>
		<<set $thighaction to 0>><<set $thighactiondefault to "penisrub"+_tentacle.id>>
		<<submission 3>><<thighskilluse>>
		You <<thightext>> rub the _tentacle.fullDesc between your thighs.
		<<if $thighskill gte (800 - ($rng * 10))>>
			Slimy _fluid erupts from the tip, covering your tummy.
			<<set _tentacle.tentaclehealth -= 3>><<set $player.bodyliquid.tummy.goo += 1>><<tummyejacstat>><<ejacstat>>
			<<if $abomination is 1>>
				<<set $enemyarousal += 6>>
			<</if>>
		<</if>>
	<</if>>

	<<if $thighaction is "vaginarub"+_tentacle.id>>
		<<set $thighaction to 0>><<set $thighactiondefault to "vaginarub"+_tentacle.id>>
		<<submission 3>><<thighskilluse>>You <<thightext>> rub the _tentacle.fullDesc between your thighs.
		<<if $thighskill gte (800 - ($rng * 10))>>
			Slimy _fluid erupts from the tip, covering your tummy.
			<<set _tentacle.tentaclehealth -= 3>><<set $player.bodyliquid.tummy.goo += 1>><<tummyejacstat>><<ejacstat>>
			<<if $abomination is 1>>
				<<set $enemyarousal += 6>>
			<</if>>
		<</if>>
	<</if>>

	<<if $anusaction is "anusrub"+_tentacle.id>>
		<<set $anusaction to 0>><<set $anusactiondefault to "anusrub"+_tentacle.id>>
		<<submission 3>><<bottomskilluse>>
		You <<bottomtext>> rub the _tentacle.fullDesc between your cheeks.
		<<if $bottomskill gte (800 - ($rng * 10))>>
			Slimy _fluid erupts from the tip, covering your <<bottom>>.
			<<set _tentacle.tentaclehealth -= 3>><<set $player.bodyliquid.bottom.goo += 1>><<bottomejacstat>><<ejacstat>>
			<<if $abomination is 1>>
				<<set $enemyarousal += 6>>
			<</if>>
		<</if>>
	<</if>>

	<<if $chestaction is "chestrub"+_tentacle.id>>
		<<set $chestaction to 0>><<set $chestactiondefault to "chestrub"+_tentacle.id>>
		<<submission 3>><<chestskilluse>>
		You <<chesttext>> rub the _tentacle.fullDesc between your <<breasts>>.
		<<if $chestskill gte (800 - ($rng * 10))>>
			Slimy _fluid erupts from the tip, covering your chest.
			<<set _tentacle.tentaclehealth -= 3>><<set $player.bodyliquid.chest.goo += 1>><<chestejacstat>><<ejacstat>>
			<<if $abomination is 1>>
				<<set $enemyarousal += 6>>
			<</if>>
		<</if>>
	<</if>>

<</widget>>


code:
:: Widgets Tentacle Img [widget]

<<widget "tentacleimg">>
	<<set _filters to $skinColor.current>>
	<<set _img to setup.tanImg.doggy[$skinColor.tanImgEnabled]>>
	<<getTentacleColour>>

	<<if $vaginastate is "tentacleentrance">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclevaginalentrance.png">
	<</if>>
	<<if $vaginastate is "tentacleimminent">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclevaginalimminent.png">
	<</if>>
	<<if $vaginastate is "tentacle">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclevaginal.png">
	<</if>>
	<<if $vaginastate is "tentacledeep">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclevaginal.png">
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/active/body/doggyactivevaginalcum.png">
	<</if>>
	<<if $vaginause is "tentaclerub">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclevaginalrub.png">
	<</if>>
	<<if $anusstate is "tentacleentrance">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleanalentrance.png">
	<</if>>
	<<if $anusstate is "tentacleimminent">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleanalimminent.png">
	<</if>>
	<<if $anusstate is "tentacle">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleanal.png">
	<</if>>
	<<if $anusstate is "tentacledeep">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleanal.png">
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/active/body/doggyactiveanalcum.png">
	<</if>>
	<<if $anususe is "tentaclerub">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleanalrub.png">
	<</if>>
	<<if $penisstate is "tentacleentrance">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclepenileentrance.png">
	<</if>>
	<<if $penisstate is "tentacleimminent">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclepenileimminent.png">
	<</if>>
	<<if $penisstate is "tentacle">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclepenile.png">
	<</if>>
	<<if $penisstate is "tentacledeep">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclepenile.png">
	<</if>>
	<<if $penisuse is "tentaclerub">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclevaginalrub.png">
	<</if>>
	<<if $mouthstate is "tentacleentrance">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleoralentrance.png">
	<</if>>
	<<if $mouthstate is "tentacleimminent">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleoralimminent.png">
	<</if>>
	<<if $mouthstate is "tentacle">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleoral.png">
	<</if>>
	<<if $mouthstate is "tentacledeep">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleoral.png">
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/active/body/doggyactiveoralcum.png">
	<</if>>
	<<if $leftarmstate is "tentacle">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclehandjobleft.png">
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" @src="_img.doggyactivelefthandjob" @style="'filter: '+_filters.body">
	<</if>>
	<<if $rightarmstate is "tentacle">>
		<img @class="'layer-sexbaseback '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclehandjobright.png">
		<img @class="'layer-sexbaseback anim-doggy-4f-'+_animspeed" @src="_img.doggyactiverighthandjob" @style="'filter: '+_filters.body">
	<</if>>
	<<if $feetstate is "tentacle">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclefootjob.png">
		<img @class="'layer-sexbase anim-doggy-4f-'+_animspeed" @src="_img.doggyactivefeetjob" @style="'filter: '+_filters.body">
	<</if>>
	<<if $chestuse is "tentacle">>
		<img @class="'layer-sexpenis '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclebreasts.png">
	<</if>>
<</widget>>

<<widget "tentacleimgmiss">>
	<<set _filters to $skinColor.current>>
	<<set _img to setup.tanImg.missionary[$skinColor.tanImgEnabled]>>
	<<getTentacleColour>>
	<<if $vaginastate is "tentacleentrance">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclevaginalentrance.png">
	<</if>>
	<<if $vaginastate is "tentacleimminent">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclevaginalimminent.png">
	<</if>>
	<<if $vaginastate is "tentacle">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclevaginal.png">
	<</if>>
	<<if $vaginastate is "tentacledeep">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclevaginal.png">
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/active/body/activevaginalcum.png">
	<</if>>
	<<if $vaginause is "tentaclerub">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclevaginalrub.png">
	<</if>>
	<<if $anusstate is "tentacleentrance">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleanalentrance.png">
	<</if>>
	<<if $anusstate is "tentacleimminent">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleanalimminent.png">
	<</if>>
	<<if $anusstate is "tentacle">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleanal.png">
	<</if>>
	<<if $anusstate is "tentacledeep">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleanal.png">
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/active/body/activeanalcum.png">
	<</if>>
	<<if $anususe is "tentaclerub">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleanalrub.png">
	<</if>>
	<<if $penisstate is "tentacleentrance">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclepenileentrance.png">
	<</if>>
	<<if $penisstate is "tentacleimminent">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclepenileimminent.png">
	<</if>>
	<<if $penisstate is "tentacle">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclepenile.png">
	<</if>>
	<<if $penisstate is "tentacledeep">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclepenile.png">
	<</if>>
	<<if $penisuse is "tentaclerub">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclevaginalrub.png">
	<</if>>
	<<if $mouthstate is "tentacleentrance">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleoralentrance.png">
	<</if>>
	<<if $mouthstate is "tentacleimminent">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleoralimminent.png">
	<</if>>
	<<if $mouthstate is "tentacle">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleoral.png">
	<</if>>
	<<if $mouthstate is "tentacledeep">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleoral.png">
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/active/body/activeoralcum.png">
	<</if>>
	<<if $leftarmstate is "tentacle">>
		<img @class="'layer-sexbaseback '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclehandjobleft.png">
		<img @class="'layer-sexbaseback anim-doggy-4f-'+_animspeed" @src="_img.activelefthandjob" @style="'filter: '+_filters.body">
	<</if>>
	<<if $rightarmstate is "tentacle">>
		<img @class="'layer-sexbasefront '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclehandjobright.png">
		<img @class="'layer-sexaboveclothes anim-doggy-4f-'+_animspeed" @src="_img.activerighthandjob" @style="'filter: '+_filters.body">
	<</if>>
	<<if $feetstate is "tentacle">>
		<img @class="'layer-sextears '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclefootjob.png">
		<img @class="'layer-sexbase anim-doggy-4f-'+_animspeed" @src="_img.activefeetjob" @style="'filter: '+_filters.body">
	<</if>>
	<<if $chestuse is "tentacle">>
		<img @class="'layer-sexpenis '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclebreasts.png">
	<</if>>
	<<if $leftarm is "tentgrappled" and $tentacles.max gte 1>>
		<img @class="'layer-sexpenis '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleleftarmbound.png">
	<</if>>
	<<if $rightarm is "tentgrappled" and $tentacles.max gte 1>>
		<img @class="'layer-sexpenis '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclerightarmbound.png">
	<</if>>
	<<if $leftleg is "grappled" and $tentacles.max gte 1>>
		<img @class="'layer-sexpenis '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleleftlegbound.png">
	<</if>>
	<<if $rightleg is "grappled" and $tentacles.max gte 1>>
		<img @class="'layer-sexbasefront '+_tentacleColour+' anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclerightlegbound.png">
	<</if>>
<</widget>>

<<widget "swarm_img">>
<<if Object.keys($swarm.amount).length gt 0>>
	<<if $swarm.amount.genital[0] gte 1>>
		<<if $player.vaginaExist or $worn.genitals.name is "chastity belt">>
			<<switch _swarmcreature>>
			<<case "fish">>
				<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/fish/fishvaginal.png">
			<<case "eels">>
				<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/eels/eelvaginal.png">
			<<case "spiders">>
				<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/spiders/spidervaginal.png">
			<<case "worms">>
				<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/worms/wormvaginal.png">
			<<case "maggots">>
				<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/maggots/maggotvaginal.png">
			<<default>>
				<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/slime/slimevaginal.png">
			<</switch>>
		<</if>>
		<<if $player.penisExist and $worn.genitals.name isnot "chastity belt">>
			<<switch _swarmcreature>>
			<<case "fish">>
				<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/fish/fishpenile.png">
			<<case "eels">>
				<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/eels/eelpenile.png">
			<<case "spiders">>
				<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/spiders/spiderpenile.png">
			<<case "worms">>
				<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/worms/wormpenile.png">
			<<case "maggots">>
				<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/maggots/maggotpenile.png">
			<<default>>
				<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/slime/slimepenile.png">
			<</switch>>
		<</if>>
	<</if>>
	<<if $swarm.amount.genital[1] gte 1>>
		<<if $player.vaginaExist or $worn.genitals.name is "chastity belt">>
			<<switch _swarmcreature>>
			<<case "fish">>
				<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/fish/fishvaginal.png">
			<<case "eels">>
				<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/eels/eelvaginal.png">
			<<case "spiders">>
				<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/spiders/spidervaginal.png">
			<<case "worms">>
				<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/worms/wormvaginal.png">
			<<case "maggots">>
				<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/maggots/maggotvaginal.png">
			<<default>>
				<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/slime/slimevaginal.png">
			<</switch>>
		<</if>>
		<<if $player.penisExist and $worn.genitals.name isnot "chastity belt">>
			<<switch _swarmcreature>>
			<<case "fish">>
				<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/fish/fishpenile.png">
			<<case "eels">>
				<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/eels/eelpenile.png">
			<<case "spiders">>
				<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/spiders/spiderpenile.png">
			<<case "worms">>
				<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/worms/wormpenile.png">
			<<case "maggots">>
				<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/maggots/maggotpenile.png">
			<<default>>
				<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/slime/slimepenile.png">
			<</switch>>
		<</if>>
	<</if>>
	<<if $swarm.amount.butt[1] gte 1>>
		<<switch _swarmcreature>>
		<<case "fish">>
			<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/fish/fishanal.png">
		<<case "eels">>
			<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/eels/eelanal.png">
		<<case "spiders">>
			<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/spiders/spideranal.png">
		<<case "worms">>
			<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/worms/wormanal.png">
		<<case "maggots">>
			<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/maggots/maggotanal.png">
		<<default>>
			<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/slime/slimeanal.png">
		<</switch>>
	<</if>>
<</if>>
<</widget>>

<<widget "getTentacleColour">>
<<if $tentacleColour>>
	<<set _tentacleColour to $tentacleColour>>
<</if>>
<</widget>>

repo_name: Area/degrees

license: mit