code:
:: Widgets Combat Tentacle Test [widget]
<<widget "tentacleact">><<nobr>>

<<if $tentacles[$tentacleindex].health lte 0 and $tentacles[$tentacleindex].shaft isnot "finished">>
Worn out, the $tentacles[$tentacleindex].name tentacle retracts from you.
<<tentacledisable>>
<<set $tentacles[$tentacleindex].shaft to "finished">>
<<set $tentacles[$tentacleindex].head to "finished">>
<</if>>

<<if $tentacles[$tentacleindex].shaft is "tummy">>

The $tentacles[$tentacleindex].name tentacle <<slithers>> around your tummy,

<</if>>

<<if $tentacles[$tentacleindex].shaft is "thighs">>

The $tentacles[$tentacleindex].name tentacle <<slithers>> between your thighs,

<</if>>

<<if $tentacles[$tentacleindex].shaft is "breasts">>

The $tentacles[$tentacleindex].name tentacle squeezes your breasts together,

<</if>>

<<if $tentacles[$tentacleindex].shaft is "chest">>

The $tentacles[$tentacleindex].name tentacle <<slithers>> around your chest,

<</if>>

<<if $tentacles[$tentacleindex].shaft is "waist">>

The $tentacles[$tentacleindex].name tentacle <<slithers>> around your waist,

<</if>>

<<if $tentacles[$tentacleindex].shaft is "neck">>

The $tentacles[$tentacleindex].name tentacle <<slithers>> around your neck,

<</if>>

<<if $tentacles[$tentacleindex].shaft is "shoulders">>

The $tentacles[$tentacleindex].name tentacle <<slithers>> around your shoulders,

<</if>>

<<if $tentacles[$tentacleindex].shaft is "leftleg">>

The $tentacles[$tentacleindex].name tentacle <<slithers>> around your left leg,

<</if>>

<<if $tentacles[$tentacleindex].shaft is "rightleg">>

The $tentacles[$tentacleindex].name tentacle <<slithers>> around your right leg,

<</if>>

<<if $tentacles[$tentacleindex].shaft is "leftarm">>

The $tentacles[$tentacleindex].name tentacle <<slithers>> around your left arm,

<</if>>

<<if $tentacles[$tentacleindex].shaft is "rightarm">>

The $tentacles[$tentacleindex].name tentacle <<slithers>> around your right arm,

<</if>>

<<if $tentacles[$tentacleindex].head is "leftarm">>
The $tentacles[$tentacleindex].name tentacle writhes in your left hand.<<neutral 5>>
<</if>>

<<if $tentacles[$tentacleindex].head is "rightarm">>
The $tentacles[$tentacleindex].name tentacle writhes in your right hand.<<neutral 5>>
<</if>>

<<if $tentacles[$tentacleindex].head is "feet">>
The $tentacles[$tentacleindex].name tentacle writhes between your feet.<<neutral 5>>
<</if>>

<<if $tentacles[$tentacleindex].head is "leftnipplesuck">>
and up to your <<breastscomma>> where it suckles your left nipple.<<neutral 3>><<playWithBreasts>>
<</if>>

<<if $tentacles[$tentacleindex].head is "rightnipplesuck">>
and up to your <<breastscomma>> where it suckles your right nipple.<<neutral 3>><<playWithBreasts>>
<</if>>

<<if $tentacles[$tentacleindex].head is "leftnipple">>

and continues teasing your left nipple. The tip of the tentacle opens up, latches on, then begins sucking.<<neutral 3>><<set $tentacles[$tentacleindex].head to "leftnipplesuck">><<set $leftnipple to "tentaclesuck">><<playWithBreasts>>

<</if>>

<<if $tentacles[$tentacleindex].head is "rightnipple">>

and continues teasing your right nipple. The tip of the tentacle opens up, latches on, then begins sucking.<<neutral 3>><<set $tentacles[$tentacleindex].head to "rightnipplesuck">><<set $rightnipple to "tentaclesuck">><<playWithBreasts>>

<</if>>

<<if $tentacles[$tentacleindex].head is "chest">>
	<<if $chestuse is "squeezed">>
	then up between your <<breastscomma>> rubbing itself between them.<<neutral 2>>
	<<else>>
	moves away from your <<breasts>><<set $tentacles[$tentacleindex].head to 0>><<set $breastuse to 0>>
	<</if>>
<</if>>

<<if $tentacles[$tentacleindex].head is "mouthdeep">>
and up into your mouth where it spurts a sweet fluid down your throat at the apex of each thrust.
<<set $purity -= 1>><<internalejac>><<sex 5>><<set $drugged += 3>><<set $mouthgoo += 1>><<set $tentacles[$tentacleindex].health -= 1>>
<</if>>

<<if $tentacles[$tentacleindex].head is "mouth">>
and continues thrusting into your mouth. The tip opens and begins oozing a sweet liquid.
<<set $purity -= 1>><<internalejac>><<set $mouthstate to "tentacledeep">><<set $tentacles[$tentacleindex].head to "mouthdeep">><<sex 5>><<oralejacstat>><<ejacstat>>
<</if>>

<<if $tentacles[$tentacleindex].head is "mouthimminent">>
	<<if $oralvirginity is 1>>
	 and thrusts between your lips, penetrating your mouth for the first time.
	<<set $oralvirginity to 0>><<violence 5>>
	<<else>>
	 and thrusts between your lips.
	<</if>>
<<set $mouthstate to "tentacle">><<set $tentacles[$tentacleindex].head to "mouth">><<sex 5>><<raped>><<oralstat>>
<</if>>

<<if $tentacles[$tentacleindex].head is "mouthentrance">>
 and presses against your lips.
<<set $mouthstate to "tentacleimminent">><<set $tentacles[$tentacleindex].head to "mouthimminent">><<neutral 4>>
<</if>>

<<if $tentacles[$tentacleindex].head is "vaginadeep">>
and <<slithers>> into your <<pussy>> where it pumps a viscous fluid at the apex of each thrust.
<<set $purity -= 1>><<internalejac>><<sex 5>><<set $drugged += 3>><<set $vaginagoo += 1>><<set $tentacles[$tentacleindex].health -= 1>>
<</if>>

<<if $tentacles[$tentacleindex].head is "vagina">>
and continues thrusting into your <<pussystop>> The tip opens and begins oozing a viscous liquid.<<set $purity -= 1>><<internalejac>><<set $vaginastate to "tentacledeep">><<set $tentacles[$tentacleindex].head to "vaginadeep">><<sex 5>><<vaginalejacstat>><<ejacstat>>
<</if>>

<<if $tentacles[$tentacleindex].head is "vaginaimminent">>
	<<if $vaginalvirginity is 1>>
	 and thrusts into your <<pussycomma>> tearing your hymen and forever robbing you of your purity.
	<<set $vaginalvirginity to 0>><<violence 100>>
	<<else>>
	 and thrusts into your <<pussystop>>
	<</if>>
<<set $vaginastate to "tentacle">><<set $tentacles[$tentacleindex].head to "vagina">><<sex 5>><<raped>><<vaginaraped>><<vaginalstat>><<violence 1>>
<</if>>

<<if $tentacles[$tentacleindex].head is "vaginaentrance">>
	<<if !$worn.under_lower.type.includes("chastity")>>
	 and presses against your <<pussycomma>> about to penetrate.<<set $vaginastate to "tentacleimminent">><<set $tentacles[$tentacleindex].head to "vaginaimminent">><<neutral 4>>
	<<else>>
	and tries to find a way inside. Failing, it lashes at the metal.
	<<set $worn.under_lower.integrity -= 10>><<violence 1>>
	<</if>>
<</if>>

<<if $tentacles[$tentacleindex].head is "penisdeep">>
and continues thrusting against your <<peniscomma>> caressing and kneading your length.<<sex 5>>
<</if>>

<<if $tentacles[$tentacleindex].head is "penis">>
and continues thrusting against your <<penisstop>> It sucks and kneads your length, trying to milk you of your cum.
<<set $penisstate to "tentacledeep">><<set $tentacles[$tentacleindex].head to "penisdeep">><<sex 5>>
<</if>>

<<if $tentacles[$tentacleindex].head is "penisimminent">>
	<<if $penilevirginity is 1>>
	 and thrusts against your <<peniscomma>> swallowing you to the base and  tearing the membrane between your glans and foreskin, forever robbing you of your purity.
	<<set $penilevirginity to 0>><<violence 100>>
	<<else>>
	 and thrusts against your <<peniscomma>> swallowing you to the base.
	<</if>>
<<set $penisstate to "tentacle">><<set $tentacles[$tentacleindex].head to "penis">><<sex 5>><<raped>><<penisraped>><<penilestat>><<violence 1>>
<</if>>

<<if $tentacles[$tentacleindex].head is "penisentrance">>
	<<if !$worn.under_lower.type.includes("chastity")>>
	 and <<slithers>> over to your <<penisstop>> The tip opens and presses against your glans, about to envelop you.<<set $penisstate to "tentacleimminent">><<set $tentacles[$tentacleindex].head to "penisimminent">><<neutral 4>>
	<<else>>
	and tries to find a way inside. Failing, it lashes at the metal.
	<<set $worn.under_lower.integrity -= 10>><<violence 1>>
	<</if>>
<</if>>

<<if $tentacles[$tentacleindex].head is "anusdeep">>
and <<slithers>> into your <<bottom>> where it pumps a viscous fluid at the apex of each thrust.
<<set $purity -= 1>><<internalejac>><<sex 5>><<set $drugged += 3>><<set $anusgoo += 1>><<set $tentacles[$tentacleindex].health -= 1>>
<</if>>

<<if $tentacles[$tentacleindex].head is "anus">>
and continues thrusting into your <<bottomstop>> The tip opens and begins oozing a viscous liquid.<<set $purity -= 1>><<internalejac>><<set $anusstate to "tentacledeep">><<set $tentacles[$tentacleindex].head to "anusdeep">><<sex 5>><<analejacstat>><<ejacstat>>
<</if>>

<<if $tentacles[$tentacleindex].head is "anusimminent">>
	<<if $analvirginity is 1>>
	 and thrusts into your <<bottomcomma>> violating you in a way you hadn't conceived of.<<set $analvirginity to 0>><<violence 100>>
	<<else>>
	 and thrusts into your <<bottomstop>>
	<</if>>
<<set $anusstate to "tentacle">><<set $tentacles[$tentacleindex].head to "anus">><<sex 5>><<raped>><<analstat>><<violence 1>>
<</if>>

<<if $tentacles[$tentacleindex].head is "anusentrance">>
	<<if $worn.under_lower.anal_shield is 0>>
	 and presses against your <<bottomcomma>> about to penetrate.
	<<set $anusstate to "tentacleimminent">><<set $tentacles[$tentacleindex].head to "anusimminent">><<neutral 4>>
	<<else>>
	and tries to find a way inside. Failing, it lashes at the device.
	<<set $worn.under_lower.integrity -= 10>><<violence 1>>
	<</if>>
<</if>>

<<set $rng to random(1, 100)>>
<<if $tentacles[$tentacleindex].head is "vaginarub">>
	<<if $rng gte 21>>
	and between your thighs where it <<slithers>> against your <<pussycomma>> pressing against your clit.<<sex 3>>
	<<else>>
	and between your thighs where it <<slithers>> toward your <<pussystop>>
	<<neutral 3>><<set $vaginause to "tentacle">><<set $vaginastate to "tentacleentrance">><<set $tentacles[$tentacleindex].head to "vaginaentrance">><<set $thighuse to 0>>
	<</if>>
<</if>>

<<set $rng to random(1, 100)>>
<<if $tentacles[$tentacleindex].head is "penisrub">>
	<<if $rng gte 21>>
	and between your thighs where it <<slithers>> against your <<peniscomma>> coiling around it.<<sex 3>>
	<<else>>
	and between your thighs where the tip opens and it <<slithers>> toward your <<penisstop>><<neutral 3>><<set $penisuse to "tentacle">><<set $penisstate to "tentacleentrance">><<set $tentacles[$tentacleindex].head to "penisentrance">><<set $thighuse to 0>>
	<</if>>
<</if>>

<<set $rng to random(1, 100)>>
<<if $tentacles[$tentacleindex].head is "bottomrub">>
	<<if $rng gte 21>>
	and between your <<bottom>> cheeks where it <<slithers>> against your back.<<sex 3>>
	<<else>>
	and between your <<bottom>> cheeks,  toward your anus.<<neutral 3>><<set $anususe to "tentacle">><<set $anusstate to "tentacleentrance">><<set $tentacles[$tentacleindex].head to "anusentrance">><<set $bottomuse to 0>>
	<</if>>
<</if>>

<<set $rng to random(1, 100)>>
<<if $tentacles[$tentacleindex].head is 0 and $tentacles[$tentacleindex].shaft isnot 0>>

	<<if $rng lte 10>>
		<<if $chestuse is "squeezed" and $breastuse is 0>>
		<<upperslither>>and up between your squeezed <<breastsstop>><<set $tentacles[$tentacleindex].head to "chest">><<neutral 2>><<set $breastuse to "tentacle">><<cheststat>>
		<<else>>
		<<tentacledefault>>
		<</if>>
	<<elseif $rng lte 20>>
		<<if $leftnipple is 0>>
		<<upperslither>> <<playWithBreasts>>and teases your left nipple.<<neutral 2>><<set $tentacles[$tentacleindex].head to "leftnipple">><<set $leftnipple to "tentacle">>
		<<else>>
		<<tentacledefault>>
		<</if>>
	<<elseif $rng lte 30>>
		<<if $rightnipple is 0>>
		<<upperslither>> <<playWithBreasts>>and teases your right nipple.<<neutral 2>><<set $tentacles[$tentacleindex].head to "rightnipple">><<set $rightnipple to "tentacle">>
		<<else>>
		<<tentacledefault>>
		<</if>>
	<<elseif $rng lte 40>>
		<<if $mouthuse is 0>>
		<<upperslither>> and up toward your mouth.<<neutral 2>><<set $mouthuse to "tentacle">><<set $mouthstate to "tentacleentrance">><<set $tentacles[$tentacleindex].head to "mouthentrance">>
		<<else>>
		<<tentacledefault>>
		<</if>>
	<<elseif $rng lte 50>>
		<<if $anususe is 0 and $analdisable is "f">>
		<<underslither>> and <<slithers>> toward your <<bottomstop>><<neutral 2>><<set $anususe to "tentacle">><<set $anusstate to "tentacleentrance">><<set $tentacles[$tentacleindex].head to "anusentrance">>
		<<else>>
		<<tentacledefault>>
		<</if>>
	<<elseif $rng lte 60>>
		<<if $vaginaexist is 1 and $vaginause is 0>>
		<<underslither>> and <<slithers>> toward your <<pussystop>><<neutral 2>><<set $vaginause to "tentacle">><<set $vaginastate to "tentacleentrance">><<set $tentacles[$tentacleindex].head to "vaginaentrance">>
		<<else>>
		<<tentacledefault>>
		<</if>>
	<<elseif $rng lte 70>>
		<<if $penisexist is 1 and $penisuse is 0>>
		<<underslither>> and <<slithers>> toward your <<penisstop>><<neutral 2>><<set $penisuse to "tentacle">><<set $penisstate to "tentacleentrance">><<set $tentacles[$tentacleindex].head to "penisentrance">>
		<<else>>
		<<tentacledefault>>
		<</if>>
	<<elseif $rng lte 80>>
		<<if $thighuse is 0>>
			<<if $penisexist is 1 and $penisuse is 0>>
			<<underslither>> and <<slithers>> between your thighs and against your tummy and <<penisstop>><<set $penisuse to "tentaclerub">><<set $thighuse to "tentaclerub">><<set $tentacles[$tentacleindex].head to "penisrub">><<sex 3>><<thighstat>>
			<<elseif $vaginaexist is 1 and $vaginause is 0>>
			<<underslither>> and <<slithers>> between your thighs and against your tummy and <<pussystop>><<set $vaginause to "tentaclerub">><<set $thighuse to "tentaclerub">><<set $tentacles[$tentacleindex].head to "vaginarub">><<sex 3>><<thighstat>>
			<<else>>
			<<tentacledefault>>
			<</if>>
		<<else>>
		<<tentacledefault>>
		<</if>>
	<<elseif $rng lte 90>>
		<<if $bottomuse is 0 and $anususe is 0 and $analdisable is "f">>
		<<underslither>> and <<slithers>> between your <<bottom>> cheeks and against your back.<<set $bottomuse to "tentaclerub">><<set $anususe to "tentaclerub">><<set $tentacles[$tentacleindex].head to "bottomrub">><<sex 1>><<bottomstat>>
		<<else>>
		<<tentacledefault>>
		<</if>>
	<<elseif $rng lte 95>>

	<<else>>
	<<tentacledefault>>
	<</if>>
<<elseif $tentacles[$tentacleindex].head is 0 and $tentacles[$tentacleindex].shaft is 0>>

	<<if $rng lte 10>>
		<<if $position isnot "wall">>
		The $tentacles[$tentacleindex].name tentacle winds around your tummy.<<neutral 1>><<set $tentacles[$tentacleindex].shaft to "tummy">>
		<<else>>
		The $tentacles[$tentacleindex].name tentacle gently slaps your <<bottomstop>><<violence 1>><<hitstat>>
		<</if>>
	<<elseif $rng lte 20>>
	The $tentacles[$tentacleindex].name tentacle <<slithers>> between your thighs.<<neutral 1>><<set $tentacles[$tentacleindex].shaft to "thighs">>
	<<elseif $rng lte 30>>
		<<if $position isnot "wall">>
			<<if $breastsize gte 2 and $chestuse is 0>>
		The $tentacles[$tentacleindex].name tentacle <<slithers>> around your <<breastscomma>> squeezing them together.<<neutral 1>><<set $tentacles[$tentacleindex].shaft to "breasts">><<set $chestuse to "squeezed">>
			<<else>>
			The $tentacles[$tentacleindex].name tentacle gently slaps your <<bottomstop>><<violence 1>><<hitstat>>
			<</if>>
		<<else>>
		The $tentacles[$tentacleindex].name tentacle gently slaps your <<bottomstop>><<violence 1>><<hitstat>>
		<</if>>
	<<elseif $rng lte 40>>
		<<if $position isnot "wall">>
		The $tentacles[$tentacleindex].name tentacle winds its way around your chest, beneath your <<breastsstop>><<neutral 1>><<set $tentacles[$tentacleindex].shaft to "chest">>
		<<else>>
		The $tentacles[$tentacleindex].name tentacle gently slaps your <<bottomstop>><<violence 1>><<hitstat>>
		<</if>>
	<<elseif $rng lte 50>>
	The $tentacles[$tentacleindex].name tentacle winds its way around your waist.<<neutral 1>><<set $tentacles[$tentacleindex].shaft to "waist">>
	<<elseif $rng lte 60>>
		<<if $position isnot "wall">>
			<<if $head is 0>>
			The $tentacles[$tentacleindex].name tentacle winds its way around your neck, restraining your head.<<neutral 1>><<set $tentacles[$tentacleindex].shaft to "neck">><<set $head to "grappled">>
			<<else>>
			The $tentacles[$tentacleindex].name tentacle winds its way around your shoulders.<<neutral 1>><<set $tentacles[$tentacleindex].shaft to "shoulders">>
			<</if>>
		<<else>>
		The $tentacles[$tentacleindex].name tentacle gently slaps your <<bottomstop>><<violence 1>><<hitstat>>
		<</if>>
	<<elseif $rng lte 70>>
	The $tentacles[$tentacleindex].name tentacle gently slaps your <<bottomstop>><<violence 1>><<hitstat>>
	<<elseif $rng lte 80>>
		<<if $leftleg is 0>>
		The $tentacles[$tentacleindex].name tentacle winds its way around your left leg, restraining it.<<neutral 1>><<feettentacledisable>><<set $tentacles[$tentacleindex].shaft to "leftleg">><<set $leftleg to "grappled">>
		<<else>>
		The $tentacles[$tentacleindex].name tentacle tickles your feet.<<neutral 1>>
		<</if>>
	<<elseif $rng lte 85>>
		<<if $rightleg is 0>>
		The $tentacles[$tentacleindex].name tentacle winds its way around your right leg, restraining it.<<neutral 1>><<feettentacledisable>><<set $tentacles[$tentacleindex].shaft to "rightleg">><<set $rightleg to "grappled">>
		<<else>>
		The $tentacles[$tentacleindex].name tentacle tickles your feet.<<neutral 1>>
		<</if>>
	<<elseif $rng lte 90>>
		<<if $leftarm is 0>>
		The $tentacles[$tentacleindex].name tentacle winds its way around your left arm, restraining it.<<neutral 1>><<leftarmtentacledisable>><<set $tentacles[$tentacleindex].shaft to "leftarm">><<set $leftarm to "grappled">><<set $leftarmstate to 0>>
		<<else>>
		The $tentacles[$tentacleindex].name tentacle tickles your armpit.<<neutral 1>>
		<</if>>
	<<elseif $rng lte 95>>
		<<if $rightarm is 0>>
		The $tentacles[$tentacleindex].name tentacle winds its way around your right arm, restraining it.<<rightarmtentacledisable>><<neutral 1>><<set $tentacles[$tentacleindex].shaft to "rightarm">><<set $rightarm to "grappled">><<set $rightarmstate to 0>>
		<<else>>
		The $tentacles[$tentacleindex].name tentacle tickles your armpit.<<neutral 1>>
		<</if>>
	<<elseif $rng lte 100>>
	The $tentacles[$tentacleindex].name tentacle <<slithers>> against your <<bottomstop>><<neutral 1>>
	<</if>>

<</if>>

<</nobr>><</widget>>

<<widget "tentacledefault">><<nobr>>

		<<set $rng to random(1, 100)>>
		<<if $rng gte 90>>
		then squirts a warm fluid over your neck.<<neutral 1>><<set $neckgoo += 1>><<set $tentacles[$tentacleindex].health -= 1>><<neckejacstat>><<ejacstat>>
		<<elseif $rng gte 80>>
		then squirts a warm fluid over your right arm.<<neutral 1>><<set $rightarmgoo += 1>><<set $tentacles[$tentacleindex].health -= 1>><<handejacstat>><<ejacstat>>
		<<elseif $rng gte 70>>
		then squirts a warm fluid over your left arm.<<neutral 1>><<set $leftarmgoo += 1>><<set $tentacles[$tentacleindex].health -= 1>><<handejacstat>><<ejacstat>>
		<<elseif $rng gte 60>>
		then squirts a warm fluid over your thighs.<<neutral 1>><<set $thighgoo += 1>><<set $tentacles[$tentacleindex].health -= 1>><<thighejacstat>><<ejacstat>>
		<<elseif $rng gte 50>>
		then squirts a warm fluid over your <<bottomstop>><<neutral 1>><<set $bottomgoo += 1>><<set $tentacles[$tentacleindex].health -= 1>><<bottomejacstat>><<ejacstat>>
		<<elseif $rng gte 40>>
		then squirts a warm fluid over your tummy.<<neutral 1>><<set $tummygoo += 1>><<set $tentacles[$tentacleindex].health -= 1>><<tummyejacstat>><<ejacstat>>
		<<elseif $rng gte 30>>
		then squirts a warm fluid over your chest.<<neutral 1>><<set $chestgoo += 1>><<set $tentacles[$tentacleindex].health -= 1>><<chestejacstat>><<ejacstat>>
		<<elseif $rng gte 20>>
		then squirts a warm fluid over your face.<<neutral 1>><<set $facegoo += 1>><<set $tentacles[$tentacleindex].health -= 1>><<faceejacstat>><<ejacstat>>
		<<elseif $rng gte 10>>
		then squirts a warm fluid over your hair.<<neutral 1>><<set $hairgoo += 1>><<set $tentacles[$tentacleindex].health -= 1>><<hairejacstat>><<ejacstat>>
		<<else>>
		then squirts a warm fluid over your feet.<<neutral 1>><<set $feetgoo += 1>><<set $tentacles[$tentacleindex].health -= 1>><<feetejacstat>><<ejacstat>>
		<</if>>

<</nobr>><</widget>>

<<widget "tentacledisable">><<nobr>>

<<if $tentacles[$tentacleindex].head is "feet">>
<<set $leftleg to 0>>
<<set $rightleg to 0>>
<<set $feetstate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "leftarm">>
<<set $leftarm to 0>>
<<set $leftarmstate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "rightarm">>
<<set $rightarm to 0>>
<<set $rightarmstate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "leftnipplesuck">>
<<set $leftnipple to 0>>
<</if>>
<<if $tentacles[$tentacleindex].head is "rightnipplesuck">>
<<set $rightnipple to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "leftnipple">>
<<set $leftnipple to 0>>
<</if>>
<<if $tentacles[$tentacleindex].head is "rightnipple">>
<<set $rightnipple to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "chest">>
<<set $chestuse to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "mouthentrance">>
<<set $mouthuse to 0>>
<<set $mouthstate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "mouthimminent">>
<<set $mouthuse to 0>>
<<set $mouthstate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "mouth">>
<<set $mouthuse to 0>>
<<set $mouthstate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "mouthdeep">>
<<set $mouthuse to 0>>
<<set $mouthstate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "anusentrance">>
<<set $anususe to 0>>
<<set $anusstate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "anusimminent">>
<<set $anususe to 0>>
<<set $anusstate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "anus">>
<<set $anususe to 0>>
<<set $anusstate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "anusdeep">>
<<set $anususe to 0>>
<<set $anusstate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "vaginaentrance">>
<<set $vaginause to 0>>
<<set $vaginastate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "vaginaimminent">>
<<set $vaginause to 0>>
<<set $vaginastate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "vagina">>
<<set $vaginause to 0>>
<<set $vaginastate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "vaginadeep">>
<<set $vaginause to 0>>
<<set $vaginastate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "penisentrance">>
<<set $penisuse to 0>>
<<set $penisstate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "penisimminent">>
<<set $penisuse to 0>>
<<set $penisstate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "penis">>
<<set $penisuse to 0>>
<<set $penisstate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "penisdeep">>
<<set $penisuse to 0>>
<<set $penisstate to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "vaginarub">>
<<set $vaginause to 0>>
<<set $thighuse to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "penisrub">>
<<set $penisuse to 0>>
<<set $thighuse to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "bottomrub">>
<<set $anususe to 0>>
<<set $bottomuse to 0>>
<</if>>

<<if $tentacles[$tentacleindex].shaft is "breasts">>
<<set $chestuse to 0>>
<</if>>

<<if $tentacles[$tentacleindex].shaft is "neck" and $head isnot "bound">>
<<set $head to 0>>
<</if>>

<<if $tentacles[$tentacleindex].shaft is "leftleg" and $leftleg isnot "bound">>
<<set $leftleg to 0>>
<</if>>

<<if $tentacles[$tentacleindex].shaft is "rightleg" and $rightleg isnot "bound">>
<<set $rightleg to 0>>
<</if>>

<<if $tentacles[$tentacleindex].shaft is "leftarm" and $leftarm isnot "bound">>
<<set $leftarm to 0>>
<</if>>

<<if $tentacles[$tentacleindex].shaft is "rightarm" and $rightarm isnot "bound">>
<<set $rightarm to 0>>
<</if>>

<<if $tentacles[$tentacleindex].head is "chest">>
<<set $breastuse to 0>>
<</if>>

<<set $tentacles[$tentacleindex].shaft to 0>>
<<set $tentacles[$tentacleindex].head to 0>>

<</nobr>><</widget>>


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

<<set _tentacle to $args[0] >>

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

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

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

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

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

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

<</if>>

<<if _tentacle.head is "leftnipplesuck">>
	and up to your <<breastscomma>> where it suckles your left nipple.

	<<playWithBreasts>><<neutral 3>>
<</if>>

<<if _tentacle.head is "rightnipplesuck">>
	and up to your <<breastscomma>> where it suckles your right nipple.

	<<playWithBreasts>><<neutral 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>><<neutral 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>><<neutral 3>>
<</if>>

<<if _tentacle.head is "chest">>
	<<if $chestuse is "squeezed">>
		then up between your <<breastscomma>> rubbing itself between them.<<neutral 2>>
	<<else>>
		moves away from your <<breasts>>
		<<set _tentacle.head to 0>><<set $breastuse to 0>>
	<</if>>

<</if>>

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

	<<set $purity -= 1>><<internalejac>><<sex 5>>
	<<set $drugged += 3>><<set $mouthgoo += 1>>
	<<set _tentacle.tentaclehealth -= 1>>
<</if>>

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

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

<<if _tentacle.head is "mouthimminent">>
	<<if $oralvirginity is 1>>
		<<switch _tentacle.size>>
		<<case 3>>
			 and thrusts between your lips forcing your mouth wide open, penetrating your mouth for the first time.
			<<violence 100>>
		<<default>>
			 and thrusts between your lips, penetrating your mouth for the first time.
		<</switch>>
		<<set $oralvirginity to 0>><<violence 5>>
	<<else>>
		<<switch _tentacle.size>>
		<<case 3>>
			 and thrusts between your lips forcing your mouth wide open.
			<<violence 100>>
		<<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>>

<</if>>

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

	<<set $purity -= 1>><<internalejac>><<sex 5>>
	<<set $drugged += 3>><<set $vaginagoo += 1>>
	<<set _tentacle.tentaclehealth -= 1>>
<</if>>

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

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

<<if _tentacle.head is "vaginaimminent">>
	<<if $vaginalvirginity is 1>>
		<<switch _tentacle.size>>
		<<case 3>>
			and thrusts into your <<pussycomma>> tearing your hymen and forever robbing you of your purity. You wimper as your <<pussy>> stretches to accommodate the _tentacle.desc tentacle.
			<<violence 100>>
		<<default>>
			 and thrusts into your <<pussycomma>> tearing your hymen and forever robbing you of your purity.
		<</switch>>
		<<set $vaginalvirginity to 0>><<violence 100>>
	<<else>>
		<<switch _tentacle.size>>
		<<case 3>>
			and thrusts into your <<pussystop>> You wimper as your <<pussy>> stretches to accommodate the _tentacle.desc tentacle.
		<<default>>
			 and thrusts into your <<pussystop>>
		<</switch>>
	<</if>>

	<<set $vaginastate to "tentacle">><<set _tentacle.head to "vagina">><<sex 5>><<raped>><<vaginaraped>><<vaginalstat>><<violence 1>>
<</if>>

<<if _tentacle.head is "vaginaentrance">>
	<<if !$worn.under_lower.type.includes("chastity")>>
		 and presses against your <<pussycomma>> about to penetrate.
		<<set $vaginastate to "tentacleimminent">><<set _tentacle.head to "vaginaimminent">><<neutral 4>>
	<<else>>
		and tries to find a way inside. Failing, it lashes at the metal.
		<<set $worn.under_lower.integrity -= 10>><<violence 1>>
	<</if>>

<</if>>

<<if _tentacle.head is "penisdeep">>
	and continues thrusting against your <<peniscomma>> caressing and kneading your length.
	<<sex 5>>

<</if>>

<<if _tentacle.head is "penis">>
	and continues thrusting against your <<penisstop>> 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 $penilevirginity is 1>>
		 and thrusts against your <<peniscomma>> swallowing you to the base and  tearing the membrane between your glans and foreskin, forever robbing you of your purity.
		<<set $penilevirginity to 0>><<violence 100>>
	<<else>>
		 and thrusts against your <<peniscomma>> swallowing you to the base.
	<</if>>

	<<set $penisstate to "tentacle">><<set _tentacle.head to "penis">><<sex 5>><<raped>><<penisraped>><<penilestat>><<violence 1>>
<</if>>

<<if _tentacle.head is "penisentrance">>
	<<if !$worn.under_lower.type.includes("chastity")>>
		 and <<slithers>> over to your <<penisstop>> The tip opens and presses against your glans, about to envelop you.
		<<set $penisstate to "tentacleimminent">><<set _tentacle.head to "penisimminent">><<neutral 4>>
	<<else>>
		and tries to find a way inside. Failing, it lashes at the metal.
		<<set $worn.under_lower.integrity -= 10>><<violence 1>>
	<</if>>

<</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>>
		<<fertilize>>
		<<set _tentacle.baby to 0>>
	<<else>>
		and <<slithers>> into your <<bottom>> where it pumps a viscous fluid at the apex of each thrust.
	<</if>>
	<<set $purity -= 1>><<internalejac>><<sex 5>>
	<<set $drugged += 3>><<set $anusgoo += 1>>
	<<set _tentacle.tentaclehealth -= 1>>

<</if>>

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

<</if>>

<<if _tentacle.head is "anusimminent">>
	<<if $analvirginity is 1>>
		<<switch _tentacle.size>>
			<<case 3>>
				and thrusts into your <<bottomcomma>> violating you in a way you hadn't conceived of. You shudder as your <<bottom>> stretches to accommodate the _tentacle.desc tentacle.
				<<violence 100>>
			<<default>>
				 and thrusts into your <<bottomcomma>> violating you in a way you hadn't conceived of.
		<</switch>>
		<<set $analvirginity to 0>><<violence 100>>
	<<else>>
		<<switch _tentacle.size>>
			<<case 3>>
				and thrusts into your <<bottomstop>> You shudder as your <<bottom>> stretches to accommodate the _tentacle.desc tentacle.
			<<default>>
				 and thrusts into your <<bottomstop>>
		<</switch>>
	<</if>>
	<<set $anusstate to "tentacle">><<set _tentacle.head to "anus">>
	<<sex 5>><<raped>><<analstat>><<violence 1>>

<</if>>

<<if _tentacle.head is "anusentrance">>
	<<if $worn.under_lower.anal_shield is 0>>
		 and presses against your <<bottomcomma>> about to penetrate.
		<<set $anusstate to "tentacleimminent">><<set _tentacle.head to "anusimminent">>
		<<neutral 4>>
	<<else>>
		and tries to find a way inside. Failing, it lashes at the device.
		<<set $worn.under_lower.integrity -= 10>><<violence 1>>
	<</if>>

<</if>>

<<set $rng to random(1, 100)>>
<<if _tentacle.head is "vaginarub">>
	<<if $rng gte 21>>
		and between your thighs where it <<slithers>> against your <<pussycomma>> pressing against your clit.
		<<sex 3>>
	<<else>>
		and between your thighs where it <<slithers>> toward your <<pussystop>>
		<<neutral 3>>
		<<set $vaginause to "tentacle">><<set $vaginastate to "tentacleentrance">><<set _tentacle.head to "vaginaentrance">><<set $thighuse to 0>>
	<</if>>

<</if>>

<<set $rng to random(1, 100)>>
<<if _tentacle.head is "penisrub">>
	<<if $rng gte 21>>
		and between your thighs where it <<slithers>> against your <<peniscomma>> coiling around it.
		<<sex 3>>
	<<else>>
		and between your thighs where the tip opens and it <<slithers>> toward your <<penisstop>>
		<<neutral 3>>
		<<set $penisuse to "tentacle">><<set $penisstate to "tentacleentrance">><<set _tentacle.head to "penisentrance">><<set $thighuse to 0>>
	<</if>>

<</if>>

<<set $rng to random(1, 100)>>
<<if _tentacle.head is "bottomrub">>
	<<if $rng gte 21>>
		and between your <<bottom>> cheeks where it <<slithers>> against your back.
		<<sex 3>>
	<<else>>
		<<if _tentacle.baby isnot 0>>
			and <<slithers>> toward your <<bottomstop>>
			 Something about it scares you.
		<<else>>
			and between your <<bottom>> cheeks,  toward your anus.
			<<neutral 3>>
		<</if>>
		<<set $anususe to "tentacle">><<set $bottomuse to 0>>
		<<set $anusstate to "tentacleentrance">><<set _tentacle.head to "anusentrance">>
	<</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" and $breastuse is 0>>
			<<upperslither>>and up between your squeezed <<breastsstop>>
			<<set _tentacle.head to "chest">><<neutral 2>><<set $breastuse to "tentacle">><<cheststat>>
		<<else>>
			<<tentacleadvdefault _tentacle>>
		<</if>>

	<<elseif $rng lte 20>>
		<<if $leftnipple is 0>>
			<<upperslither>> <<playWithBreasts>>and teases your left nipple.
			<<neutral 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.
			<<neutral 2>>
			<<set _tentacle.head to "rightnipple">><<set $rightnipple to "tentacle">>
		<<else>>
			<<tentacleadvdefault _tentacle>>
		<</if>>

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

	<<elseif $rng lte 50>>
		<<if $anususe is 0 and $analdisable is "f">>
			<<underslither>> and <<slithers>> toward your <<bottomstop>>
			<<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">>
		<<else>>
			<<tentacleadvdefault _tentacle>>
		<</if>>

	<<elseif $rng lte 60>>
		<<if $vaginaexist is 1 and $vaginause is 0>>
			<<underslither>> and <<slithers>> toward your <<pussystop>>
			<<neutral 2>>
			<<set $vaginause to "tentacle">><<set $vaginastate to "tentacleentrance">><<set _tentacle.head to "vaginaentrance">>
		<<else>>
			<<tentacleadvdefault _tentacle>>
		<</if>>

	<<elseif $rng lte 70>>
		<<if $penisexist is 1 and $penisuse is 0>>
			<<underslither>> and <<slithers>> toward your <<penisstop>>
			<<neutral 2>>
			<<set $penisuse to "tentacle">><<set $penisstate to "tentacleentrance">><<set _tentacle.head to "penisentrance">>
		<<else>>
			<<tentacleadvdefault _tentacle>>
		<</if>>

	<<elseif $rng lte 80>>
		<<if $thighuse is 0>>
			<<if $penisexist is 1 and $penisuse is 0>>
				<<underslither>> and <<slithers>> between your thighs and against your tummy and <<penisstop>>
				<<set $penisuse to "tentaclerub">><<set $thighuse to "tentaclerub">><<set _tentacle.head to "penisrub">><<sex 3>><<thighstat>>
			<<elseif $vaginaexist is 1 and $vaginause is 0>>
				<<underslither>> and <<slithers>> between your thighs and against your tummy and <<pussystop>>
				<<set $vaginause to "tentaclerub">><<set $thighuse to "tentaclerub">><<set _tentacle.head to "vaginarub">><<sex 3>><<thighstat>>
			<<else>>
				<<tentacleadvdefault _tentacle>>
			<</if>>
		<<else>>
			<<tentacleadvdefault _tentacle>>
		<</if>>

	<<elseif $rng lte 90>>
		<<if $bottomuse is 0 and $anususe is 0 and $analdisable is "f">>
			<<underslither>> and <<slithers>> between your <<bottom>> cheeks and against your back.
			<<set $bottomuse to "tentaclerub">><<set $anususe to "tentaclerub">><<set _tentacle.head to "bottomrub">><<sex 1>><<bottomstat>>
		<<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.desc tentacle winds around your tummy.<<neutral 1>>
			<<set _tentacle.shaft to "tummy">>
		<<else>>
			The _tentacle.desc tentacle gently slaps your <<bottomstop>>
			<<violence 1>><<hitstat>>
		<</if>>

	<<elseif $rng lte 20>>
		The _tentacle.desc tentacle <<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.desc tentacle <<slithers>> around your <<breastscomma>> squeezing them together.
				<<neutral 1>><<set _tentacle.shaft to "breasts">><<set $chestuse to "squeezed">>
			<<else>>
				The _tentacle.desc tentacle gently slaps your <<bottomstop>>
				<<violence 1>><<hitstat>>
			<</if>>
		<<else>>
			The _tentacle.desc tentacle gently slaps your <<bottomstop>>
			<<violence 1>><<hitstat>>
		<</if>>

	<<elseif $rng lte 40>>
		<<if $position isnot "wall">>
			The _tentacle.desc tentacle winds its way around your chest, beneath your <<breastsstop>>
			<<neutral 1>><<set _tentacle.shaft to "chest">>
		<<else>>
			The _tentacle.desc tentacle gently slaps your <<bottomstop>>
			<<violence 1>><<hitstat>>
		<</if>>

	<<elseif $rng lte 50>>
		The _tentacle.desc tentacle 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>>
				The _tentacle.desc tentacle winds its way around your neck, restraining your head.
				<<neutral 1>><<set _tentacle.shaft to "neck">><<set $head to "grappled">>
			<<else>>
				The _tentacle.desc tentacle winds its way around your shoulders.
				<<neutral 1>><<set _tentacle.shaft to "shoulders">>
			<</if>>

		<<else>>
			The _tentacle.desc tentacle gently slaps your <<bottomstop>>

			<<violence 1>><<hitstat>>
		<</if>>
	<<elseif $rng lte 70>>
		The _tentacle.desc tentacle gently slaps your <<bottomstop>>

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

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

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

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

	<<elseif $rng lte 100>>
		The _tentacle.desc tentacle <<slithers>> against your <<bottomstop>>

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

<<widget "tentacleadvdefault">><<nobr>>
	<<set _tentacle to $args[0] >>
	<<set $rng to random(1, 100)>>
	<<if $rng gte 90>>
		then squirts a warm fluid over your neck.
		<<set $neckgoo += 1>><<neckejacstat>>
	<<elseif $rng gte 80>>
		then squirts a warm fluid over your right arm.
		<<set $rightarmgoo += 1>><<handejacstat>>
	<<elseif $rng gte 70>>
		then squirts a warm fluid over your left arm.
		<<set $leftarmgoo += 1>><<handejacstat>>
	<<elseif $rng gte 60>>
		then squirts a warm fluid over your thighs.
		<<set $thighgoo += 1>><<thighejacstat>>
	<<elseif $rng gte 50>>
		then squirts a warm fluid over your <<bottomstop>>
		<<set $bottomgoo += 1>><<bottomejacstat>>
	<<elseif $rng gte 40>>
		then squirts a warm fluid over your tummy.
		<<set $tummygoo += 1>><<tummyejacstat>>
	<<elseif $rng gte 30>>
		then squirts a warm fluid over your chest.
		<<set $chestgoo += 1>><<chestejacstat>>
	<<elseif $rng gte 20>>
		then squirts a warm fluid over your face.
		<<set $facegoo += 1>><<faceejacstat>>
	<<elseif $rng gte 10>>
		then squirts a warm fluid over your hair.
		<<set $hairgoo += 1>><<hairejacstat>>
	<<else>>
		then squirts a warm fluid over your feet.
		<<set $feetgoo += 1>><<feetejacstat>>
	<</if>>
	<<neutral 1>><<set _tentacle.tentaclehealth -= 1>><<ejacstat>>
<</nobr>><</widget>>

<<widget "tentacleadvdisable">><<nobr>>
	<<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">>
		<<set $mouthuse to 0>><<set $mouthstate to 0>>
	<</if>>

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

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

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

	<<if _tentacle.shaft is "breasts" or _tentacle.head is "chest">>
		<<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.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>>

	<<if _tentacle.head is "chest">><<set $breastuse to 0>><</if>>

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

<</nobr>><</widget>>

<<widget "actionstentacleadvcheckbox">><<nobr>> /* 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>>
<</nobr>><</widget>>

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

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

		<<set _action to "leftgrab"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Grab the _tentacle.desc tentacle" "$leftaction" _action $leftactiondefault>>

	<<elseif $leftarm is _tentacle.id>>
		You hold the _tentacle.desc tentacle 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 ($vaginaexist is 1 and $vaginause is 0 or $penisexist is 1 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 <<bottomstop>>" "$leftaction" _action $leftactiondefault>>
				<</if>>

				<<if ($vaginaexist is 1 and $vaginause is 0) or ($penisexist is 1 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>>
<</nobr>><</widget>>

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

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

		<<set _action to "rightgrab"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Grab the _tentacle.desc tentacle" "$rightaction" _action $rightactiondefault>>

	<<elseif $rightarm is _tentacle.id>>
		You hold the _tentacle.desc tentacle 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 ($vaginaexist is 1 and $vaginause is 0 or $penisexist is 1 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 <<bottomstop>>" "$rightaction" _action $rightactiondefault>>
				<</if>>

				<<if ($vaginaexist is 1 and $vaginause is 0) or ($penisexist is 1 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>>
<</nobr>><</widget>>

<<widget "actionstentacleadvlegs">><<nobr>>
	<<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.desc tentacle" "$feetaction" _action $feetactiondefault>>

		<<set _action to "feetgrab"+_tentacle.id >>
		<<actionstentacleadvcheckbox "sub" "Grab the _tentacle.desc tentacle" "$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.desc tentacle" "$feetaction" _action $feetactiondefault>>

	<<elseif $leftleg is _tentacle.id>>
		You hold the _tentacle.desc tentacle 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 ($vaginaexist is 1 and $vaginause is 0 or $penisexist is 1 and $penisuse is 0)>>

--<<deviant5>>| --

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

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

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

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

<<widget "actionstentacleadvmouth">><<nobr>>
	<<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>>

<</nobr>><</widget>>

<<widget "actionstentacleadvvagina">><<nobr>>
	<<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>>

<</nobr>><</widget>>

<<widget "actionstentacleadvpenis">><<nobr>>
	<<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>>

<</nobr>><</widget>>

<<widget "actionstentacleadvanus">><<nobr>>
	<<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>>

<</nobr>><</widget>>

<<widget "actionstentacleadvthighs">><<nobr>>
	<<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>>

<</nobr>><</widget>>

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

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

<</nobr>><</widget>>

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

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

<</nobr>><</widget>>

<<widget "effectstentacleadv">><<nobr>>
	<<set _tentacle to $args[0] >>
	<<set $rng to random(1, 100)>>

	<<if $leftaction is "lefthit"+_tentacle.id or $rightaction is "righthit"+_tentacle.id>>
		<<if $leftaction is "lefthit"+_tentacle.id>>
			<<set $leftaction to 0>><<set $leftactiondefault to "lefthit"+_tentacle.id>>
			You strike the _tentacle.desc tentacle with your left hand and it reels away from you.
		<<else>>
			<<set $rightaction to 0>><<set $rightactiondefault to "righthit"+_tentacle.id>>
			You strike the _tentacle.desc tentacle with your right hand and it reels away from you.
		<</if>>
		<<defiance 2>>
		<<set $speechhit to 1>><<set $attackstat += 1>>
		<<set _tentacle.tentaclehealth -= 1>>
		<<if $rng lte ($physique / 200)>><<set _tentacle.tentaclehealth -= 1>><</if>>
		<<tentacleadvdisable _tentacle>>
	<</if>>

	<<if $leftaction is "leftgrab"+_tentacle.id or $rightaction is "rightgrab"+_tentacle.id>>
		<<tentacleadvdisable _tentacle>> /* Make sure you call this before trying to set the tentacle info */
		<<if $leftaction is "leftgrab"+_tentacle.id>>
			<<set _hand to "left">><<set $leftaction to 0>><<set $leftactiondefault to "leftrub"+_tentacle.id>>
			<<set $leftarm to _tentacle.id>><<set _tentacle.head to "leftarm">><<set $leftarmstate to "tentacle">>
		<<else>>
			<<set _hand to "right">><<set $rightaction to 0>><<set $rightactiondefault to "rightrub"+_tentacle.id>>
			<<set $rightarm to _tentacle.id>><<set _tentacle.head to "rightarm">><<set $rightarmstate to "tentacle">>
		<</if>>
		You <<handtext>> grab the _tentacle.desc tentacle 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.desc tentacle 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>>
			<<handejacstat>><<ejacstat>>
			<<if _hand is "left">><<set $leftarmgoo += 1>><<else>><<set $rightarmgoo += 1>><</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>>
		<<else>>
			<<set _hand to "right">><<set $rightaction to 0>>
			<<set $rightarm to 0>>
		<</if>>

		<<submission 1>>

		<<combatdeviancy5>>

		You <<handtext>> guide the _tentacle.desc tentacle with your _hand hand towards your <<bottomstop>>

		<<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 "grappled">><<set $leftarmstate to 0>>
			<<else>>
				<<rightarmtentacledisable>>
				<<set _tentacle.shaft to "rightarm">>
				<<set $rightarm to "grappled">><<set $rightarmstate to 0>>
			<</if>>
			 The _tentacle.desc tentacle 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 $bottomuse to "tentaclerub">><<set $anususe to "tentaclerub">>
		<<set _tentacle.head to "bottomrub">><<sex 1>><<bottomstat>>
	<</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>>
		<<else>>
			<<set _hand to "right">><<set $rightaction to 0>>
			<<set $rightarm to 0>>
		<</if>>

		<<submission 1>>

		<<combatdeviancy5>>

		You <<handtext>> guide the _tentacle.desc tentacle 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 "grappled">><<set $leftarmstate to 0>>
			<<else>>
				<<rightarmtentacledisable>>
				<<set _tentacle.shaft to "rightarm">>
				<<set $rightarm to "grappled">><<set $rightarmstate to 0>>
			<</if>>
			 The _tentacle.desc tentacle winds its way around your _hand arm, restraining it.
			<<neutral 1>>
		<<else>>
			<<if _tentacle.shaft is 0>>
				<<set _tentacle.shaft to (either("tummy","neck","chest","breasts"))>>
			<</if>>
		<</if>>

		<<set $mouthuse to "tentacle">><<set $mouthstate to "tentacleentrance">>
		<<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>>
		<<else>>
			<<set _hand to "right">><<set $rightaction to 0>>
			<<set $rightarm to 0>>
		<</if>>

		<<submission 1>>

		<<combatdeviancy5>>

		You <<handtext>> guide the _tentacle.desc tentacle 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 "grappled">><<set $leftarmstate to 0>>
			<<else>>
				<<rightarmtentacledisable>>
				<<set _tentacle.shaft to "rightarm">>
				<<set $rightarm to "grappled">><<set $rightarmstate to 0>>
			<</if>>
			 The _tentacle.desc tentacle 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 $penisexist is 1 and $penisuse is 0>>
			<<set $penisuse to "tentaclerub">><<set _tentacle.head to "penisrub">>
		<<elseif $vaginaexist is 1 and $vaginause is 0>>
			<<set $vaginause to "tentaclerub">><<set _tentacle.head to "vaginarub">>
		<</if>>

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

	<<if $leftaction is "leftstop"+_tentacle.id>>
		<<set $leftaction to 0>><<set $leftactiondefault to "leftstop"+_tentacle.id>>
		You release the _tentacle.desc tentacle 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.desc tentacle 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.desc tentacle from your left hand.
<<tentacleadvdisable _tentacle>>
<</if>>
	<<if $feetaction is "feethit"+_tentacle.id>>
		<<set $feetaction to 0>><<set $feetactiondefault to "feethit"+_tentacle.id>>
		You kick the _tentacle.desc tentacle 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>>

	<<if $feetaction is "feetgrab"+_tentacle.id>>
		<<set $feetaction to 0>><<set $feetactiondefault to "feetrub"+_tentacle.id>><<submission 1>><<feetstat>>
		You <<feettext>> grab the _tentacle.desc tentacle between your feet.
		<<tentacleadvdisable _tentacle>><<set $leftleg to _tentacle.id>><<set $rightleg to _tentacle.id>><<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.desc tentacle between your feet and rub up and down its length.
		<<if $feetskill gte (800 - ($rng * 10))>>
			Slimy fluid erupts from the tip.
			<<set $feetgoo += 1>><<set _tentacle.tentaclehealth -= 3>><<feetejacstat>><<ejacstat>>
		<</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.desc tentacle with your feet between your thighs.
		<<else>>
			<<set _dir to "bottom">>
			You <<feettext>> guide the _tentacle.desc tentacle with your feet towards your <<bottomstop>>
		<</if>>

		<<if $rng lte 30>> /* Leg grapple? */
			<<if $rng gte 15>>
				<<set _leg to "left">><<set _tentacle.shaft to "leftleg">><<set $leftleg to "grappled">>
			<<else>>
				<<set _leg to "right">><<set _tentacle.shaft to "rightleg">><<set $rightleg to "grappled">>
			<</if>>
			<<neutral 1>><<feettentacledisable>>
			The _tentacle.desc tentacle 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 $penisexist is 1 and $penisuse is 0>>
				<<set $penisuse to "tentaclerub">><<set _tentacle.head to "penisrub">>
			<<elseif $vaginaexist is 1 and $vaginause is 0>>
				<<set $vaginause to "tentaclerub">><<set _tentacle.head to "vaginarub">>
			<</if>>

			<<sex 3>><<thighstat>>
			<<set $thighuse to "tentaclerub">>
		<<else>>
			<<set $bottomuse to "tentaclerub">><<set $anususe to "tentaclerub">>
			<<set _tentacle.head to "bottomrub">><<sex 1>><<bottomstat>>
		<</if>>
	<</if>>

	<<if $feetaction is "feetstop"+_tentacle.id>>
		<<set $feetaction to 0>><<set $feetactiondefault to "feetstop"+_tentacle.id>>
		You let go of the _tentacle.desc tentacle 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.desc tentacle.
		<<if $oralskill gte (800 - ($rng * 10))>>
			Slimy fluid erupts from the tip, covering your face.
			<<set $facegoo += 1>><<set _tentacle.tentaclehealth -= 3>><<faceejacstat>><<ejacstat>>
		<</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.desc tentacle.
		<<if $oralskill gte (800 - ($rng * 10))>>
			Slimy fluid erupts from the tip, covering your face.
			<<set $facegoo += 1>><<set _tentacle.tentaclehealth -= 3>><<faceejacstat>><<ejacstat>>
		<</if>>
	<</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.desc tentacle invading your mouth.
		<<if $oralskill gte (800 - ($rng * 10))>>
			Slimy fluid erupts from the tip and into your mouth.
			<<set _tentacle.tentaclehealth -= 3>><<set $drugged += 3>><<set $mouthgoo += 1>><<oralejacstat>><<ejacstat>>
		<</if>>
	<</if>>

	<<if $mouthaction is "mouthpullaway"+_tentacle.id>>
		<<set $mouthaction to 0>><<set $mouthactiondefault to "mouthpullaway"+_tentacle.id>><<brat 1>>
		You pull away from the _tentacle.desc tentacle threatening your mouth.
		<<tentacleadvdisable _tentacle>>
	<</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.desc tentacle 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>>

	<<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.desc tentacle with your <<pussystop>>
		<<if $vaginalskill gte (800 - ($rng * 10))>>
			Slimy fluid erupts from the tip.
			<<set $vaginaoutsidegoo += 1>><<set _tentacle.tentaclehealth -= 3>><<vaginalentranceejacstat>><<ejacstat>>
		<</if>>
	<</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.desc tentacle invading your <<pussystop>>
		<<if $vaginalskill gte (800 - ($rng * 10))>>
			Slimy fluid erupts from the tip, flooding your womb with its warmth.
			<<set _tentacle.tentaclehealth -= 3>><<set $drugged += 3>><<set $vaginagoo += 1>><<vaginalejacstat>><<ejacstat>>
		<</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.desc tentacle threatening your <<pussystop>>
		<<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.desc tentacle with your <<penisstop>>
		<<if $penileskill gte (800 - ($rng * 10))>>
			Slimy fluid erupts from the tip.
			<<set $penisgoo += 1>><<set _tentacle.tentaclehealth -= 3>><<penileejacstat>><<ejacstat>>
		<</if>>
	<</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.desc tentacle engulfing your <<penisstop>>
		<<if $penileskill gte (800 - ($rng * 10))>>
			Slimy fluid erupts from the tip, covering your groin.
			<<set _tentacle.tentaclehealth -= 3>><<set $penisgoo += 1>><<penileejacstat>><<ejacstat>>
		<</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.desc tentacle threatening your <<penisstop>>
		<<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.desc tentacle with your <<bottomstop>>
		<<if $analskill gte (800 - ($rng * 10))>>
			Slimy fluid erupts from the tip, covering your <<bottomstop>>
			<<set $bottomgoo += 1>><<set _tentacle.tentaclehealth -= 3>><<bottomejacstat>><<ejacstat>>
		<</if>>
	<</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.desc tentacle invading your <<bottomstop>>
		<<if $analskill gte (800 - ($rng * 10))>>
			Slimy fluid erupts from the tip, flooding your bowels with its warmth.
			<<set _tentacle.tentaclehealth -= 3>><<set $drugged += 3>><<set $anusgoo += 1>><<analejacstat>><<ejacstat>>
		<</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.desc tentacle threatening your <<bottomstop>>
		<<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.desc tentacle between your thighs.
		<<if $thighskill gte (800 - ($rng * 10))>>
			Slimy fluid erupts from the tip, covering your tummy.
			<<set _tentacle.tentaclehealth -= 3>><<set $tummygoo += 1>><<tummyejacstat>><<ejacstat>>
		<</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.desc tentacle between your thighs.
		<<if $thighskill gte (800 - ($rng * 10))>>
			Slimy fluid erupts from the tip, covering your tummy.
			<<set _tentacle.tentaclehealth -= 3>><<set $tummygoo += 1>><<tummyejacstat>><<ejacstat>>
		<</if>>
	<</if>>

	<<if $bottomaction is "bottomrub"+_tentacle.id>>
		<<set $bottomaction to 0>><<set $bottomactiondefault to "bottomrub"+_tentacle.id>>
		<<submission 3>><<bottomskilluse>>
		You <<bottomtext>> rub the _tentacle.desc tentacle between your cheeks.
		<<if $bottomskill gte (800 - ($rng * 10))>>
			Slimy fluid erupts from the tip, covering your <<bottomstop>>
			<<set _tentacle.tentaclehealth -= 3>><<set $bottomgoo += 1>><<bottomejacstat>><<ejacstat>>
		<</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.desc tentacle between your <<breastsstop>>
		<<if $chestskill gte (800 - ($rng * 10))>>
			Slimy fluid erupts from the tip, covering your chest.
			<<set _tentacle.tentaclehealth -= 3>><<set $chestgoo += 1>><<chestejacstat>><<ejacstat>>
		<</if>>
	<</if>>

<</nobr>><</widget>>

repo_name: Trinidad/grados

license: mit


code:
:: Widgets Tentacle Img [widget]

<<widget "tentacleimg">><<nobr>>
	<<if $swarmfront gte 1>>
		<<if $vaginaexist is 1>>
			<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/slime/slimevaginal.png">
		<</if>>
		<<if $penisexist is 1>>
			<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/slime/slimepenile.png">
		<</if>>
	<</if>>
	<<if $swarmfrontinside gte 1>>
		<<if $vaginaexist is 1>>
			<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/slime/slimevaginal.png">
		<</if>>
		<<if $penisexist is 1>>
			<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/slime/slimepenile.png">
		<</if>>
	<</if>>
	<<if $swarmback gte 1>>
		<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/slime/slimeanal.png">
	<</if>>
	<<if $vaginastate is "tentacleentrance">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclevaginalentrance.png">
	<</if>>
	<<if $vaginastate is "tentacleimminent">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclevaginalimminent.png">
	<</if>>
	<<if $vaginastate is "tentacle">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclevaginal.png">
	<</if>>
	<<if $vaginastate is "tentacledeep">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclevaginal.png">
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/active/body/doggyactivevaginalcum.png">
	<</if>>
	<<if $vaginause is "tentaclerub">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclevaginalrub.png">
	<</if>>
	<<if $anusstate is "tentacleentrance">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleanalentrance.png">
	<</if>>
	<<if $anusstate is "tentacleimminent">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleanalimminent.png">
	<</if>>
	<<if $anusstate is "tentacle">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleanal.png">
	<</if>>
	<<if $anusstate is "tentacledeep">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleanal.png">
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/active/body/doggyactiveanalcum.png">
	<</if>>
	<<if $anususe is "tentaclerub">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleanalrub.png">
	<</if>>
	<<if $penisstate is "tentacleentrance">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclepenileentrance.png">
	<</if>>
	<<if $penisstate is "tentacleimminent">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclepenileimminent.png">
	<</if>>
	<<if $penisstate is "tentacle">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclepenile.png">
	<</if>>
	<<if $penisstate is "tentacledeep">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclepenile.png">
	<</if>>
	<<if $penisuse is "tentaclerub">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclevaginalrub.png">
	<</if>>
	<<if $mouthstate is "tentacleentrance">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleoralentrance.png">
	<</if>>
	<<if $mouthstate is "tentacleimminent">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleoralimminent.png">
	<</if>>
	<<if $mouthstate is "tentacle">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleoral.png">
	<</if>>
	<<if $mouthstate is "tentacledeep">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentacleoral.png">
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/active/body/doggyactiveoralcum.png">
	<</if>>
	<<if $leftarmstate is "tentacle">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclehandjobleft.png">
	<</if>>
	<<if $rightarmstate is "tentacle">>
		<img @class="'layer-sexbaseback anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclehandjobright.png">
	<</if>>
	<<if $feetstate is "tentacle">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclefootjob.png">
	<</if>>
	<<if $breastuse is "tentacle">>
		<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/doggy/tentacles/tentaclebreasts.png">
	<</if>>
<</nobr>><</widget>>

<<widget "tentacleimgmiss">><<nobr>>
	<<if $vaginastate is "tentacleentrance">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclevaginalentrance.png">
	<</if>>
	<<if $vaginastate is "tentacleimminent">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclevaginalimminent.png">
	<</if>>
	<<if $vaginastate is "tentacle">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclevaginal.png">
	<</if>>
	<<if $vaginastate is "tentacledeep">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclevaginal.png">
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/active/body/activevaginalcum.png">
	<</if>>
	<<if $vaginause is "tentaclerub">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclevaginalrub.png">
	<</if>>
	<<if $anusstate is "tentacleentrance">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleanalentrance.png">
	<</if>>
	<<if $anusstate is "tentacleimminent">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleanalimminent.png">
	<</if>>
	<<if $anusstate is "tentacle">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleanal.png">
	<</if>>
	<<if $anusstate is "tentacledeep">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleanal.png">
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/active/body/activeanalcum.png">
	<</if>>
	<<if $anususe is "tentaclerub">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleanalrub.png">
	<</if>>
	<<if $penisstate is "tentacleentrance">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclepenileentrance.png">
	<</if>>
	<<if $penisstate is "tentacleimminent">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclepenileimminent.png">
	<</if>>
	<<if $penisstate is "tentacle">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclepenile.png">
	<</if>>
	<<if $penisstate is "tentacledeep">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclepenile.png">
	<</if>>
	<<if $penisuse is "tentaclerub">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclevaginalrub.png">
	<</if>>
	<<if $mouthstate is "tentacleentrance">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleoralentrance.png">
	<</if>>
	<<if $mouthstate is "tentacleimminent">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleoralimminent.png">
	<</if>>
	<<if $mouthstate is "tentacle">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleoral.png">
	<</if>>
	<<if $mouthstate is "tentacledeep">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleoral.png">
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/active/body/activeoralcum.png">
	<</if>>
	<<if $leftarmstate is "tentacle">>
		<img @class="'layer-sexbaseback anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclehandjobleft.png">
	<</if>>
	<<if $rightarmstate is "tentacle">>
		<img @class="'layer-sexbasefront anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclehandjobright.png">
	<</if>>
	<<if $feetstate is "tentacle">>
		<img @class="'layer-sextears anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclefootjob.png">
	<</if>>
	<<if $breastuse is "tentacle">>
		<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclebreasts.png">
	<</if>>
	<<if $leftarm is "grappled" and $tentacles.max gte 1>>
		<img @class="'layer-sexpenis anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentacleleftarmbound.png">
	<</if>>
	<<if $rightarm is "grappled" and $tentacles.max gte 1>>
		<img @class="'layer-sexpenis 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 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 anim-doggy-4f-'+_animspeed" src="img/sex/missionary/tentacles/tentaclerightlegbound.png">
	<</if>>
<</nobr>><</widget>>


code:
:: Widgets Tentacles [widget]
<<widget "tentaclestart">><<nobr>>
<<set $enemyarousalmax to 10000>>

<<set $tentacles to {
	"max": $args[0],
	"active": $args[0],
}>>

<<if $args[0]>>

	/* Deciding if tentacle templates should be defined somewhere else still */
	<<set _tentacledescs to [
		{"desc":"slimy","baby":0,"size":2},
		{"desc":"sticky","baby":0,"size":2},
		{"desc":"thick","baby":"tentacle","size":3},
		{"desc":"throbbing","baby":0,"size":2},
		{"desc":"slick","baby":0,"size":2},
		{"desc":"moist","baby":0,"size":2},
		{"desc":"quivering","baby":0,"size":2},
		{"desc":"sodden","baby":0,"size":2},
		{"desc":"shivering","baby":0,"size":2},
		{"desc":"shuddering","baby":0,"size":2},
		{"desc":"convulsing","baby":0,"size":2},
		{"desc":"undulating","baby":0,"size":2},
		{"desc":"damp","baby":0,"size":2},
		{"desc":"bulbous","baby":0,"size":3},
		{"desc":"gyrating","baby":0,"size":2},
		{"desc":"large","baby":"tentacle","size":3},
		{"desc":"bumpy","baby":0,"size":2},
		{"desc":"thin","baby":0,"size":1},
		{"desc":"narrow","baby":0,"size":1},
		{"desc":"squishy","baby":0,"size":2},
	]>>

	<<set _tentacledescs to _tentacledescs.shuffle()>>

	<<for _i to 0; _i lt $args[0]; _i++>>
		<<set _tentacledata to _tentacledescs[_i]>>

		<<set _tentacle to {
			"desc": _tentacledata.desc,
			"tentaclehealth": $args[1],
			"shaft": 0,
			"head": 0,
			"id": "tentacle"+_i,
			"baby": _tentacledata.baby,
			"babychance": 400,
			"size": _tentacledata.size
		}>>

		<<set $tentacles[_i] to clone(_tentacle)>>
	<</for>>

<</if>>

<<set $combat to 1>>

<<if $rng gte 51>>
<<set $position to "missionary">>
<<else>>
<<set $position to "doggy">>
<</if>>

<</nobr>><</widget>>

<<widget "tentacles">><<nobr>>

<<for _i to 0; _i lt $tentacles.max; _i++>>
	<<set _tentacle to $tentacles[_i]>>
	<<if _tentacle isnot undefined>>
		<<tentacleadv _tentacle>>
		<<set _tentacle.tentaclehealth -= 0.2>>
	<</if>>
<</for>>

<<if $panicattacks gte 1 and $panicviolence is 0 and $panicparalysis is 0 and $controlled is 0>>
	<<set $rng to random(1, 100)>>
	<<if $rng is 100>>
	<<set $panicparalysis to 10>>
	<</if>>
<</if>>

<<if $panicattacks gte 2 and $panicviolence is 0 and $panicparalysis is 0 and $controlled is 0>>
	<<set $rng to random(1, 100)>>
	<<if $rng is 100>>
	<<set $panicviolence to 3>>
	<</if>>
<</if>>

<<if $arousal gte 10000>>

<<orgasmpassage>>

<</if>>

<<set $seconds += 10>>
<<if $seconds gte 60>>
<<set $seconds to 0>>
<<pass 1>>
<</if>>

<</nobr>><</widget>>

<<widget "effectstentacles">><<nobr>>

<<effectspain>>
<<effectsorgasm>>
<<effectsdissociation>>

<<for _i to 0; _i lt $tentacles.max; _i++>>
	<<if $tentacles[_i] isnot undefined>>
		<<set _tentacle to $tentacles[_i]>>
		<<effectstentacleadv _tentacle>>
	<</if>>
<</for>>

<</nobr>><</widget>>

<<widget "actionstentacles">><<nobr>>

<<set $enemyarousal to $arousal>>

<<if $vorecreature is 0 and $swarmcount lte 0>>
	<<if $images is 1>><<timed 100ms>>
		<<combatimg>>

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

<<willpowerpain>>
<<willpowerorgasm>>
<<actioncarry>>
<<actioncarrydrop>>

<<if $trance lte 0>>
<<if $dissociation lte 1>>
<<if $panicparalysis is 0>>
<<if $panicviolence is 0>>
<<if $orgasmdown lte 0>>
<<if $pain lt 100 or $willpowerpain is undefined>>

<<if $leftarm is 0>>
	Your left arm is free.

<<elseif $leftarm is "grappled">>
	<<for _i to 0; _i lt $tentacles.max; _i++>>
		<<if $tentacles[_i].shaft is "leftarm">>
			The $tentacles[_i].desc tentacle entangles your left arm.

		<</if>>
	<</for>>
<<elseif $leftarm is "bound">>
	Your left arm is bound.

<</if>>
<<actionstentacleslefthand>>

<<if $rightarm is 0>>
	Your right arm is free.

<<elseif $rightarm is "grappled">>
	<<for _i to 0; _i lt $tentacles.max; _i++>>
		<<if $tentacles[_i].shaft is "rightarm">>
			The $tentacles[_i].desc tentacle entangles your right arm.

		<</if>>
	<</for>>
<<elseif $rightarm is "bound">>
	Your right arm is bound.

<</if>>
<<actionstentaclesrighthand>>

<<if $leftleg is 0 and $rightleg is 0>>
	Your legs are free.

<<elseif $leftleg is 0>>
	Your left leg is free.

<<elseif $rightleg is 0>>
	Your right leg is free.

<<elseif $leftleg is "grappled" and $rightleg is "grappled">>
	Your legs are entangled and forced apart, leaving you less able to protect your <<genitalsstop>>

<</if>>
<<actionstentacleslegs>>

<<for _i to 0; _i lt $tentacles.max; _i++>>
	<<if $tentacles[_i] isnot undefined>>
		<<set _tentacle to $tentacles[_i]>>
		<<if $mouthstate is "tentacleentrance">>
			<<if _tentacle.head is "mouthentrance">>
				The _tentacle.desc tentacle threatens your mouth.

				<<actionstentacleadvmouth _tentacle>>

			<</if>>
		<<elseif $mouthstate is "tentacleimminent">>
			<<if _tentacle.head is "mouthimminent">>
				The _tentacle.desc tentacle presses against your mouth.

				<<actionstentacleadvmouth _tentacle>>

			<</if>>
		<<elseif $mouthstate is "tentacle">>
			<<if _tentacle.head is "mouth">>
				The _tentacle.desc tentacle thrusts into your mouth.

				<<actionstentacleadvmouth _tentacle>>

			<</if>>
		<<elseif $mouthstate is "tentacledeep">>
			<<if _tentacle.head is "mouthdeep">>
				The _tentacle.desc tentacle thrusts into your mouth, ejaculating down your throat.

				<<actionstentacleadvmouth _tentacle>>

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

		<<if $vaginastate is "tentacleentrance">>
			<<if _tentacle.head is "vaginaentrance">>
				The _tentacle.desc tentacle threatens your <<pussystop>>

				<<actionstentacleadvvagina _tentacle>>

			<</if>>
		<<elseif $vaginastate is "tentacleimminent">>
			<<if _tentacle.head is "vaginaimminent">>
				The _tentacle.desc tentacle presses against your <<pussycomma>> about to penetrate.

				<<actionstentacleadvvagina _tentacle>>

			<</if>>
		<<elseif $vaginastate is "tentacle">>
			<<if _tentacle.head is "vagina">>
				The _tentacle.desc tentacle thrusts into your <<pussystop>>

				<<actionstentacleadvvagina _tentacle>>

			<</if>>
		<<elseif $vaginastate is "tentacledeep">>
			<<if _tentacle.head is "vaginadeep">>
				The _tentacle.desc tentacle thrusts into your <<pussycomma>> ejaculating deep into your womb.

				<<actionstentacleadvvagina _tentacle>>

			<</if>>
		<<elseif $vaginastate is "tentaclerub">>
			<<if _tentacle.head is "vaginarub">>
				The _tentacle.desc tentacle runs between your thighs, pressing against your labia and continuing to your tummy.

				<<actionstentacleadvthighs _tentacle>>

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

		<<if $penisstate is "tentacleentrance">>
			<<if _tentacle.head is "penisentrance">>
				The _tentacle.desc tentacle threatens your <<penisstop>>

				<<actionstentacleadvpenis _tentacle>>

			<</if>>
		<<elseif $penisstate is "tentacleimminent">>
			<<if _tentacle.head is "penisimminent">>
				The _tentacle.desc tentacle presses against your <<peniscomma>> about to engulf.

				<<actionstentacleadvpenis _tentacle>>

			<</if>>
		<<elseif $penisstate is "tentacle">>
			<<if _tentacle.head is "penis">>
				The _tentacle.desc tentacle envelops and pounds your <<penisstop>>

				<<actionstentacleadvpenis _tentacle>>

			<</if>>
		<<elseif $penisstate is "tentacledeep">>
			<<if _tentacle.head is "penisdeep">>
				The _tentacle.desc tentacle envelops and pounds your <<penisstop>>

				<<actionstentacleadvpenis _tentacle>>

			<</if>>
		<<elseif $penisstate is "tentaclerub">>
			<<if _tentacle.head is "penisrub">>
				The _tentacle.desc tentacle runs between your thighs, coiling around your <<penis>> and pressing against your tummy.

				<<actionstentacleadvthighs _tentacle>>

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

		<<if $anusstate is "tentacleentrance">>
			<<if _tentacle.head is "anusentrance">>
				The _tentacle.desc tentacle threatens your <<bottomstop>>

				<<actionstentacleadvanus _tentacle>>

			<</if>>
		<<elseif $anusstate is "tentacleimminent">>
			<<if _tentacle.head is "anusimminent">>
				The _tentacle.desc tentacle presses against your <<bottomcomma>> about to penetrate.

				<<actionstentacleadvanus _tentacle>>

			<</if>>
		<<elseif $anusstate is "tentacle">>
			<<if _tentacle.head is "anus">>
				The _tentacle.desc tentacle tentacle thrusts into your <<bottomstop>>

				<<actionstentacleadvanus _tentacle>>

			<</if>>
		<<elseif $anusstate is "tentacledeep">>
			<<if _tentacle.head is "anusdeep">>
				The _tentacle.desc tentacle thrusts into your <<bottomcomma>> ejaculating deep into your bowels.

				<<actionstentacleadvanus _tentacle>>

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

		<<if $bottomuse is "tentaclerub">>
			<<if _tentacle.head is "bottomrub">>
				The _tentacle.desc tentacle rubs itself between your butt cheeks.

				<<actionstentacleadvbottom _tentacle>>

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

		<<if $breastuse is "tentacle">>
			<<if _tentacle.head is "chest">>
				The _tentacle.desc tentacle rubs itself between your <<breastsstop>>

				<<actionstentacleadvchest _tentacle>>

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

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

<<combatstate>>
<<carryblock>>

<</nobr>><</widget>>

<<widget "actionstentaclespenis">><<nobr>>
	<<for _i to 0; _i lt $tentacles.max; _i++>>
		<<if $tentacles[_i] isnot undefined>>
			<<set _tentacle to $tentacles[_i]>>
			<<actionstentacleadvpenis _tentacle>>
		<</if>>
	<</for>>

<</nobr>><</widget>>

<<widget "actionstentacleslegs">><<nobr>>
	<<for _i to 0; _i lt $tentacles.max; _i++>>
		<<if $tentacles[_i] isnot undefined>>
			<<set _tentacle to $tentacles[_i]>>
			<<actionstentacleadvlegs _tentacle>>
		<</if>>
	<</for>>
<</nobr>><</widget>>

<<widget "actionstentaclesrighthand">><<nobr>>
	<<for _i to 0; _i lt $tentacles.max; _i++>>
		<<if $tentacles[_i] isnot undefined>>
			<<set _tentacle to $tentacles[_i]>>
			<<actionstentacleadvrighthand _tentacle>>
		<</if>>
	<</for>>
<</nobr>><</widget>>

<<widget "actionstentacleslefthand">><<nobr>>
	<<for _i to 0; _i lt $tentacles.max; _i++>>
		<<if $tentacles[_i] isnot undefined>>
			<<set _tentacle to $tentacles[_i]>>
			<<actionstentacleadvlefthand _tentacle>>
		<</if>>
	<</for>>
<</nobr>><</widget>>

<<widget "upperslither">><<nobr>>
	<<if $worn.upper.name isnot "naked">>
		then <<slithers>> beneath your $worn.upper.name
	<<else>>
		then <<slithers>> across your bare skin
	<</if>>
<</nobr>><</widget>>

<<widget "lowerslither">><<nobr>>
	<<if $worn.lower.name isnot "naked">>
		then <<slithers>> beneath your $worn.lower.name
	<<else>>
		then <<slithers>> across your bare skin
	<</if>>
<</nobr>><</widget>>

<<widget "underslither">><<nobr>>
	<<if $worn.lower.name isnot "naked">>
		<<if !$worn.under_lower.type.includes("naked") and !$worn.under_lower.type.includes("chastity")>>
			then <<slithers>> beneath your $worn.lower.name and $worn.under_lower.name
		<<elseif $worn.under_lower.type.includes("chastity")>>
			then <<slithers>> beneath your $worn.lower.name against your chastity belt
		<<else>>
		<</if>>
	<<else>>
		<<if !$worn.under_lower.type.includes("naked") and !$worn.under_lower.type.includes("chastity")>>
			then <<slithers>> beneath your $worn.under_lower.name
		<<elseif $worn.under_lower.type.includes("chastity")>>
			then <<slithers>> against your chastity belt
		<<else>>
			then <<slithers>> across your bare skin
		<</if>>
	<</if>>
<</nobr>><</widget>>

<<widget "statetentacles">><<nobr>>
	<<for _j to 0; _j lt $tentacles.max; _j++>>
		<<if $tentacles[_j] isnot undefined>>
			<<if $tentacles[_j].shaft is "finished">>
				<<set $tentacles.active -= 1>>
			<</if>>
		<</if>>
	<</for>>
<</nobr>><</widget>>

<<widget "leftarmtentacledisable">><<nobr>>
	<<for _j to 0; _j lt $tentacles.max; _j++>>
		<<if $tentacles[_j] isnot undefined>>
			<<if $tentacles[_j].id is $leftarm>>
				<<set $tentacles[_j].head to 0>>
			<</if>>
		<</if>>
	<</for>>
<</nobr>><</widget>>

<<widget "rightarmtentacledisable">><<nobr>>
	<<for _j to 0; _j lt $tentacles.max; _j++>>
		<<if $tentacles[_j] isnot undefined>>
			<<if $tentacles[_j].id is $rightarm>>
				<<set $tentacles[_j].head to 0>>
			<</if>>
		<</if>>
	<</for>>
<</nobr>><</widget>>

<<widget "feettentacledisable">><<nobr>>
	<<for _j to 0; _j lt $tentacles.max; _j++>>
		<<if $tentacles[_j] isnot undefined>>
			<<if $tentacles[_j].id is $feet>>
				<<set $tentacles[_j].head to 0>>
			<</if>>
		<</if>>
	<</for>>
<</nobr>><</widget>>