From cc020824112a54e110afbba32bd6e1e5a2582c05 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Mon, 28 Sep 2020 01:17:53 -0400
Subject: [PATCH] more scenes

---
 .../brothel/brothelAssignmentScene.tw         | 172 +++++-----
 src/js/assignJS.js                            |   2 +-
 src/js/utilsFC.js                             |  28 +-
 src/js/wombJS.js                              |   2 +-
 src/npc/generate/generateMarketSlave.js       |   2 +-
 src/npc/generate/generateNewSlaveJS.js        |   4 +-
 src/npc/generate/slaveGenerationJS.js         |   4 +-
 .../freeRangeDairyAssignmentScene.tw          | 212 ++++++------
 .../industrialDairyAssignmentScene.tw         | 302 +++++++++---------
 9 files changed, 364 insertions(+), 364 deletions(-)

diff --git a/src/facilities/brothel/brothelAssignmentScene.tw b/src/facilities/brothel/brothelAssignmentScene.tw
index 1fdd0768e31..112dc1c5068 100644
--- a/src/facilities/brothel/brothelAssignmentScene.tw
+++ b/src/facilities/brothel/brothelAssignmentScene.tw
@@ -1,52 +1,52 @@
 :: Brothel Assignment Scene [nobr]
 
 <<set $nextButton = "Continue", $nextLink = $returnTo>>
-<<run Enunciate($activeSlave)>>
-<<run App.Utils.setLocalPronouns($activeSlave)>>
+<<run Enunciate(getSlave($AS))>>
+<<run App.Utils.setLocalPronouns(getSlave($AS))>>
 
 <span id="art-frame">
 	/* 000-250-006 */
 	<<if $seeImages == 1>>
 		<<if $imageChoice == 1>>
-			<div class="imageRef lrgVector"><div class="mask">&nbsp;</div><<= SlaveArt($activeSlave, 2, 0)>></div>
+			<div class="imageRef lrgVector"><div class="mask">&nbsp;</div><<= SlaveArt(getSlave($AS), 2, 0)>></div>
 		<<else>>
-			<div class="imageRef lrgRender"><div class="mask">&nbsp;</div><<= SlaveArt($activeSlave, 2, 0)>></div>
+			<div class="imageRef lrgRender"><div class="mask">&nbsp;</div><<= SlaveArt(getSlave($AS), 2, 0)>></div>
 		<</if>>
 	<</if>>
 	/* 000-250-006 */
 </span>
 
-You could direct $assistant.name to relay your orders to $activeSlave.slaveName, but you've decided to avoid relying too much on machine assistance. So, $he is merely directed to report to your office. The
-<<if $activeSlave.devotion > 95>>
-	worshipful $girl <<if hasAnyLegs($activeSlave)>>hurries in as soon as $he possibly can<<else>>comes in as soon as $he can get another slave to carry $him in<</if>>, happy $his beloved <<= getWrittenTitle($activeSlave)>> is taking an interest in $him.
-<<elseif $activeSlave.devotion > 50>>
-	devoted $girl <<if hasAnyLegs($activeSlave)>>hurries in promptly<<else>>comes in as soon as $he can get another slave to carry $him in<</if>>, eager to do whatever you demand of $him.
-<<elseif $activeSlave.devotion > 20>>
-	$girl, broken to your will, <<if hasAnyLegs($activeSlave)>>comes in promptly<<else>>comes in as soon as $he can get another slave to carry $him in<</if>>, clearly ready to follow orders.
-<<elseif ($activeSlave.trust < -20) && ($activeSlave.devotion > -10)>>
-	fearful slave <<if hasAnyLegs($activeSlave)>>comes in promptly<<else>>comes in as soon as $he can get another slave to carry $him in<</if>>, afraid of what will happen to $him if $he doesn't.
-<<elseif ($activeSlave.trust < -50)>>
-	terrified slave <<if hasAnyLegs($activeSlave)>>comes in hurriedly<<else>>comes in as soon as $he can get another slave to carry $him in<</if>>, almost paralyzed by terror of what will happen to $him if $he doesn't.
+You could direct $assistant.name to relay your orders to <<= getSlave($AS).slaveName>>, but you've decided to avoid relying too much on machine assistance. So, $he is merely directed to report to your office. The
+<<if getSlave($AS).devotion > 95>>
+	worshipful $girl <<if hasAnyLegs(getSlave($AS))>>hurries in as soon as $he possibly can<<else>>comes in as soon as $he can get another slave to carry $him in<</if>>, happy $his beloved <<= getWrittenTitle(getSlave($AS))>> is taking an interest in $him.
+<<elseif getSlave($AS).devotion > 50>>
+	devoted $girl <<if hasAnyLegs(getSlave($AS))>>hurries in promptly<<else>>comes in as soon as $he can get another slave to carry $him in<</if>>, eager to do whatever you demand of $him.
+<<elseif getSlave($AS).devotion > 20>>
+	$girl, broken to your will, <<if hasAnyLegs(getSlave($AS))>>comes in promptly<<else>>comes in as soon as $he can get another slave to carry $him in<</if>>, clearly ready to follow orders.
+<<elseif (getSlave($AS).trust < -20) && (getSlave($AS).devotion > -10)>>
+	fearful slave <<if hasAnyLegs(getSlave($AS))>>comes in promptly<<else>>comes in as soon as $he can get another slave to carry $him in<</if>>, afraid of what will happen to $him if $he doesn't.
+<<elseif (getSlave($AS).trust < -50)>>
+	terrified slave <<if hasAnyLegs(getSlave($AS))>>comes in hurriedly<<else>>comes in as soon as $he can get another slave to carry $him in<</if>>, almost paralyzed by terror of what will happen to $him if $he doesn't.
 <<else>>
-	rebellious slave <<if hasAnyLegs($activeSlave)>>comes in slowly, having decided that $he can always decide to resist once $he hears what you want<<else>>comes in as soon as you order another slave to carry $him in, since $he can't exactly resist this without <<if isAmputee($activeSlave)>>limbs<<else>>legs<</if>><</if>>.
+	rebellious slave <<if hasAnyLegs(getSlave($AS))>>comes in slowly, having decided that $he can always decide to resist once $he hears what you want<<else>>comes in as soon as you order another slave to carry $him in, since $he can't exactly resist this without <<if isAmputee(getSlave($AS))>>limbs<<else>>legs<</if>><</if>>.
 <</if>>
 You tell $him $he's to report to <<if $MadamID != 0>>_S.Madam.slaveName immediately, to serve in $brothelName<<else>>$brothelName immediately, to serve there<</if>> until further notice.
 
 <br><br>
-<<if $activeSlave.devotion > 50>>
+<<if getSlave($AS).devotion > 50>>
 
-	<<if ($activeSlave.fetishKnown == 1) && ($activeSlave.fetishStrength > 60) && ($activeSlave.fetish != "none")>>
+	<<if (getSlave($AS).fetishKnown == 1) && (getSlave($AS).fetishStrength > 60) && (getSlave($AS).fetish != "none")>>
 		$He looks excited.
-		<<if canTalk($activeSlave)>>
+		<<if canTalk(getSlave($AS))>>
 			"<<Master>>, I hoped you would <<s>>end me down there <<s>>ometime!
-			<<switch $activeSlave.fetish>>
+			<<switch getSlave($AS).fetish>>
 			<<case "submissive">>
 				I mean, I'll have to do whatever the cu<<s>>tomer<<s>> pay for, right?" $His eyes go a little unfocused. "And, they'll hold me down..." $He trails off.
 			<<case "masochist">>
 				I mean, it'<<s>> hard being a brothel whore, right? And when I get tired or <<s>>ore, I'll <<s>>till be <<s>>old. Even when it hurt<<s>> me to fuck any more." $His eyes glow with an unhealthy light.
 			<<case "cumslut">>
 				I mean," $he licks $his lips unconsciously,
-				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
+				<<if getSlave($AS).attrXX > getSlave($AS).attrXY>>
 					"I hear there are <<s>>ome ni<<c>>e ladie<<s>> that go there for lunchtime cunnilingu<<s>>."
 				<<else>>
 					"the blowjob<<s>>. Ju<<s>>t, the blowjob<<s>>. That'<<s>> all."
@@ -55,31 +55,31 @@ You tell $him $he's to report to <<if $MadamID != 0>>_S.Madam.slaveName immediat
 				There'<<s>> a window that fa<<c>>e<<s>> the hallway there, right? <<if $MadamID != 0>>Do you think _S.Madam.slaveName would let me<<else>>Could I<</if>> get fucked there? Where everyone could <<s>>ee me being fucked for money?"
 			<<case "buttslut">>
 				I mean," and $he shifts $his weight, $his mind obviously on $his backdoor,
-				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
+				<<if getSlave($AS).attrXX > getSlave($AS).attrXY>>
 					"there have to be ladie<<s>> who want to buttfuck a whore, right? At lea<<s>>t, I really hope there are."
 				<<else>>
 					"the other <<s>>lave<<s>> tell me that whore<<s>> there get fucked up the a<<ss>> all day and all night. <<S>>ound<<s>> like fun to me."
 				<</if>>
 			<<case "boobs">>
 				I mean," and $he sticks out $his chest a little,
-				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
+				<<if getSlave($AS).attrXX > getSlave($AS).attrXY>>
 					"I hear from the other <<s>>lave<<s>> there'<<s>> thi<<s>> ni<<c>>e lady who goe<<s>> there every morning and pay<<s>> to have a whore <<s>>uck her nipple<<s>> for, like, an hour. I," $he licks $his lips, "could do that."
 				<<else>>
 					"the other <<s>>lave<<s>> tell me that whore<<s>> there get tittyfucked all the time. <<S>>ound<<s>> like fun to me."
 				<</if>>
 			<<case "pregnancy">>
 				I mean," $he says meditatively,
-				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
+				<<if getSlave($AS).attrXX > getSlave($AS).attrXY>>
 					"I hear from the other <<s>>lave<<s>> there'<<s>> thi<<s>> pregnant lady who goe<<s>> there every night and pay<<s>> to have a whore cuddle her. Ju<<s>>t cuddle, all night. That would be kind of hard, ju<<s>>t cuddling, but I could do it."
-				<<elseif $activeSlave.vagina == -1>>
+				<<elseif getSlave($AS).vagina == -1>>
 					"<<s>>in<<c>>e it'<<s>> all bareback, I'm going to have a fuckton of cum in me. I wonder how much cum it take<<s>> to get a butthole pregnant? I'm gonna try, anyway."
-				<<elseif isFertile($activeSlave)>>
+				<<elseif isFertile(getSlave($AS))>>
 					"<<s>>in<<c>>e it'<<s>> all bareback, I'm going to have a fuckton of cum in me. I wonder how much cum it would take to get my poor womb pregnant?"
-				<<elseif $activeSlave.pregKnown == 1>>
+				<<elseif getSlave($AS).pregKnown == 1>>
 					"I'm going to be a pregnant whore. That'<<s>> pretty fucking <<s>>e<<x>>y."
-				<<elseif $activeSlave.preg > 0>>
+				<<elseif getSlave($AS).preg > 0>>
 					"<<s>>in<<c>>e it'<<s>> all bareback, I'm going to have a fuckton of cum in me. I wonder how much cum it would take to get my poor womb pregnant?"
-				<<elseif $activeSlave.ovaries == 1 && $activeSlave.pubertyXX == 0>>
+				<<elseif getSlave($AS).ovaries == 1 && getSlave($AS).pubertyXX == 0>>
 					"I can't wait till I can get pregnant. That'd be pretty fucking <<s>>e<<x>>y."
 				<<else>>
 					"I hear from the other <<s>>lave<<s>> there'<<s>> thi<<s>> pregnant lady who goe<<s>> there every night and pay<<s>> to have a whore cuddle her. Ju<<s>>t cuddle, all night. That would be kind of hard, ju<<s>>t cuddling, but I could do it."
@@ -90,14 +90,14 @@ You tell $him $he's to report to <<if $MadamID != 0>>_S.Madam.slaveName immediat
 				I heard from the other <<s>>lave<<s>> that <<s>>ome <<c>>iti<<z>>en<<s>> bring their girl<<s>> there. Becau<<s>>e nobody know<<s>> how to hurt a bitch like a whore doe<<s>>." $He shivers.
 			<</switch>>
 		<<else>>
-			<<switch $activeSlave.fetish>>
+			<<switch getSlave($AS).fetish>>
 			<<case "submissive">>
 				$He gestures that $he'll be at the mercy of $his customers. $His eyes go a little unfocused as $he clearly begins to fantasize.
 			<<case "masochist">>
 				$He gestures that $he'll probably get roughed up by some of $his customers and that there will be no breaks for $his sore holes. $His eyes glow with an unhealthy light as $he clearly begins to fantasize.
 			<<case "cumslut">>
 				$He licks $his lips unconsciously and motions
-				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
+				<<if getSlave($AS).attrXX > getSlave($AS).attrXY>>
 					tounging a clit.
 				<<else>>
 					sucking cock.
@@ -106,31 +106,31 @@ You tell $him $he's to report to <<if $MadamID != 0>>_S.Madam.slaveName immediat
 				$He gestures if $he could be fucked in public there.
 			<<case "buttslut">>
 				$He shifts $his weight, $his mind obviously on $his backdoor, and gestures
-				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
+				<<if getSlave($AS).attrXX > getSlave($AS).attrXY>>
 					if any girls would want to buttfuck $him.
 				<<else>>
 					that $he knows whores take it up the ass there and can't wait to join them.
 				<</if>>
 			<<case "boobs">>
 				$He sticks out $his chest a little and gestures
-				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
+				<<if getSlave($AS).attrXX > getSlave($AS).attrXY>>
 					that $he's heard a woman comes by each day just to have her nipples sucked. $He licks $his lips, clearly savoring the thought.
 				<<else>>
 					that $he knows tittyfucking is popular there and can't wait to give $his pair up for sale.
 				<</if>>
 			<<case "pregnancy">>
 				$He gestures
-				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
+				<<if getSlave($AS).attrXX > getSlave($AS).attrXY>>
 					that $he's heard that a pregnant woman has been coming every night to pay for a whore to cuddle her. $He asks if $he could be that $girl.
-				<<elseif $activeSlave.vagina == -1>>
+				<<elseif getSlave($AS).vagina == -1>>
 					how much $he wishes $he could get pregnant from all the cum loads $he's going to get shot up $his rear.
-				<<elseif isFertile($activeSlave)>>
+				<<elseif isFertile(getSlave($AS))>>
 					that $he knows all the sex is bareback. By the look in $his eyes, you can tell $he is wondering how long it will take for some guy's seed to take root in $him.
-				<<elseif $activeSlave.pregKnown == 1>>
+				<<elseif getSlave($AS).pregKnown == 1>>
 					how sexy $he thinks pregnant whores are.
-				<<elseif $activeSlave.preg > 0>>
+				<<elseif getSlave($AS).preg > 0>>
 					that $he knows all the sex is bareback. By the look in $his eyes, you can tell $he is wondering how long it will take for some guy's seed to take root in $him.
-				<<elseif $activeSlave.ovaries == 1 && $activeSlave.pubertyXX == 0>>
+				<<elseif getSlave($AS).ovaries == 1 && getSlave($AS).pubertyXX == 0>>
 					how excited $he is for the day $he starts $his menstrual cycle. Will $he even see $his first period, or will every egg $he makes get fertilized?
 				<<else>>
 					that $he's heard a pregnant woman has been coming every night to pay for a whore to cuddle her. $He hopes that one day $he'll be chosen.
@@ -143,24 +143,24 @@ You tell $him $he's to report to <<if $MadamID != 0>>_S.Madam.slaveName immediat
 		<</if>>
 	<<else>>
 		$He looks
-		<<if canTalk($activeSlave)>>
+		<<if canTalk(getSlave($AS))>>
 			determined. "<<Master>>, I will do my be<<s>>t to be a good whore, and get lot<<s>> of <<c>>iti<<z>>en<<s>> to pay good money for my body."
 		<<else>>
 			determined and gestures that $he'll do $his best to get lots of citizens to pay to use $him.
 		<</if>>
 	<</if>>
 
-<<elseif ($activeSlave.devotion > 20) || (($activeSlave.devotion >= -20) && ($activeSlave.trust < -20) && ($activeSlave.trust >= -50))>>
-	<<if canTalk($activeSlave)>>
-		<<if ($activeSlave.fetishKnown == 1) && ($activeSlave.fetishStrength > 60) && ($activeSlave.fetish != "none")>>
+<<elseif (getSlave($AS).devotion > 20) || ((getSlave($AS).devotion >= -20) && (getSlave($AS).trust < -20) && (getSlave($AS).trust >= -50))>>
+	<<if canTalk(getSlave($AS))>>
+		<<if (getSlave($AS).fetishKnown == 1) && (getSlave($AS).fetishStrength > 60) && (getSlave($AS).fetish != "none")>>
 			$He looks cautiously excited. "<<Master>>,
-			<<switch $activeSlave.fetish>>
+			<<switch getSlave($AS).fetish>>
 			<<case "submissive">>
 				I'll have to do whatever the cu<<s>>tomer<<s>> pay for, right?" $His eyes go a little unfocused. "And, they'll hold me down..." $He trails off.
 			<<case "masochist">>
 				it'<<s>> hard being a brothel whore, right? And when I get tired or <<s>>ore, I'll <<s>>till be <<s>>old. Even when it hurt<<s>> me to fuck any more." $His eyes glow with an unhealthy light.
 			<<case "cumslut">>
-				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
+				<<if getSlave($AS).attrXX > getSlave($AS).attrXY>>
 					"I hear there are <<s>>ome ni<<c>>e ladie<<s>> that go there for lunchtime cunnilingu<<s>>."
 				<<else>>
 					"the blowjob<<s>>. Ju<<s>>t, the blowjob<<s>>. That'<<s>> all."
@@ -170,30 +170,30 @@ You tell $him $he's to report to <<if $MadamID != 0>>_S.Madam.slaveName immediat
 			<<case "buttslut">>
 
 				uh," and $he shifts $his weight, $his mind obviously on $his backdoor,
-				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
+				<<if getSlave($AS).attrXX > getSlave($AS).attrXY>>
 					"there have to be ladie<<s>> who want to buttfuck a whore, right? At lea<<s>>t, I really hope there are."
 				<<else>>
 					"the other <<s>>lave<<s>> tell me that whore<<s>> there get fucked up the a<<ss>> all day and all night. <<S>>ound<<s>> like fun to me."
 				<</if>>
 			<<case "boobs">>
 				$He sticks out $his chest a little and gestures
-				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
+				<<if getSlave($AS).attrXX > getSlave($AS).attrXY>>
 					that $he's heard a woman comes by each day just to have her nipples sucked. $He licks $his lips, clearly savoring the thought.
 				<<else>>
 					that $he knows tittyfucking is popular there and can't wait to give $his pair up for sale.
 				<</if>>
 			<<case "pregnancy">>
-				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
+				<<if getSlave($AS).attrXX > getSlave($AS).attrXY>>
 					I hear from the other <<s>>lave<<s>> there'<<s>> thi<<s>> pregnant lady who goe<<s>> there every night and pay<<s>> to have a whore cuddle her. Ju<<s>>t cuddle, all night. That would be kind of hard, ju<<s>>t cuddling, but I could do it."
-				<<elseif $activeSlave.vagina == -1>>
+				<<elseif getSlave($AS).vagina == -1>>
 					<<s>>in<<c>>e it'<<s>> all bareback, I'm going to have a fuckton of cum in me. I wonder how much cum it take<<s>> to get a butthole pregnant? I'm gonna try, anyway."
-				<<elseif isFertile($activeSlave)>>
+				<<elseif isFertile(getSlave($AS))>>
 					<<s>>in<<c>>e it'<<s>> all bareback, I'm going to have a fuckton of cum in me. I wonder how much cum it would take to get my poor womb pregnant?"
-				<<elseif $activeSlave.pregKnown == 1>>
+				<<elseif getSlave($AS).pregKnown == 1>>
 					"I'm going to be a pregnant whore. That'<<s>> pretty fucking <<s>>e<<x>>y."
-				<<elseif $activeSlave.preg > 0>>
+				<<elseif getSlave($AS).preg > 0>>
 					"<<s>>in<<c>>e it'<<s>> all bareback, I'm going to have a fuckton of cum in me. I wonder how much cum it would take to get my poor womb pregnant?"
-				<<elseif $activeSlave.ovaries == 1 && $activeSlave.pubertyXX == 0>>
+				<<elseif getSlave($AS).ovaries == 1 && getSlave($AS).pubertyXX == 0>>
 					"I can't wait till I can get pregnant. That'd be pretty fucking <<s>>e<<x>>y."
 				<<else>>
 					"I hear from the other <<s>>lave<<s>> there'<<s>> thi<<s>> pregnant lady who goe<<s>> there every night and pay<<s>> to have a whore cuddle her. Ju<<s>>t cuddle, all night. That would be kind of hard, ju<<s>>t cuddling, but I could do it."
@@ -203,15 +203,15 @@ You tell $him $he's to report to <<if $MadamID != 0>>_S.Madam.slaveName immediat
 			<<case "sadist">>
 				I heard from the other <<s>>lave<<s>> that <<s>>ome <<c>>iti<<z>>en<<s>> bring their girl<<s>> there. Becau<<s>>e nobody know<<s>> how to hurt a bitch like a whore doe<<s>>." $He shivers.
 			<</switch>>
-		<<elseif $activeSlave.sexualFlaw != "none">>
+		<<elseif getSlave($AS).sexualFlaw != "none">>
 			"Ye<<s>>, <<Master>>," $he says obediently. $He hesitates, looking concerned.
-			<<switch $activeSlave.sexualFlaw>>
+			<<switch getSlave($AS).sexualFlaw>>
 			<<case "hates oral">>
 				"I — I'm going to h-have to <<s>>uck a lot of dick there, aren't I." $He swallows nervously. $His lower lip quivers, and $he does $his best not to cry in front of you.
 			<<case "hates anal">>
-				"C-cu<<s>>tomer<<s>> are really going to ream me up the butt hole, aren't they." $He <<if !hasAnyArms($activeSlave)>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without <<if isAmputee($activeSlave)>>limbs<<else>>hands<</if>><<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hand<<if hasBothArms($activeSlave)>>s<</if>><</if>>. $His lower lip quivers, and $he does $his best not to cry in front of you.
+				"C-cu<<s>>tomer<<s>> are really going to ream me up the butt hole, aren't they." $He <<if !hasAnyArms(getSlave($AS))>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without <<if isAmputee(getSlave($AS))>>limbs<<else>>hands<</if>><<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hand<<if hasBothArms(getSlave($AS))>>s<</if>><</if>>. $His lower lip quivers, and $he does $his best not to cry in front of you.
 			<<case "hates penetration">>
-				"C-cu<<s>>tomer<<s>> are really going to fuck me <<s>>ore, aren't they." $He <<if !hasAnyArms($activeSlave)>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without <<if isAmputee($activeSlave)>>limbs<<else>>hands<</if>><<elseif $activeSlave.vagina > 0>>unconsciously lets $his hand<<if hasBothArms($activeSlave)>>s<</if>> fall to $his crotch, but catches $himself and doesn't quite shield $his pussy<<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hand<<if hasBothArms($activeSlave)>>s<</if>><</if>>. $His lower lip quivers, and $he does $his best not to cry in front of you.
+				"C-cu<<s>>tomer<<s>> are really going to fuck me <<s>>ore, aren't they." $He <<if !hasAnyArms(getSlave($AS))>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without <<if isAmputee(getSlave($AS))>>limbs<<else>>hands<</if>><<elseif getSlave($AS).vagina > 0>>unconsciously lets $his hand<<if hasBothArms(getSlave($AS))>>s<</if>> fall to $his crotch, but catches $himself and doesn't quite shield $his pussy<<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hand<<if hasBothArms(getSlave($AS))>>s<</if>><</if>>. $His lower lip quivers, and $he does $his best not to cry in front of you.
 			<<case "repressed">>
 				"Being a whore i<<s>> a <<s>>in," $he <<say>>s quietly, half to $himself. "I'm going t-to b-be <<s>>o dirty. I'm going to h-hell." $He starts to cry quietly. "<<S>>-<<s>>orry, <<Master>>. I'll do my be<<s>>t."
 			<<case "idealistic">>
@@ -229,15 +229,15 @@ You tell $him $he's to report to <<if $MadamID != 0>>_S.Madam.slaveName immediat
 			$He tries to be brave. "<<Master>>, I will do my be<<s>>t to be a good whore." Then, half to $himself, $he adds in a small voice, "I can do thi<<s>>."
 		<</if>>
 	<<else>>
-		<<if ($activeSlave.fetishKnown == 1) && ($activeSlave.fetishStrength > 60) && ($activeSlave.fetish != "none")>>
+		<<if (getSlave($AS).fetishKnown == 1) && (getSlave($AS).fetishStrength > 60) && (getSlave($AS).fetish != "none")>>
 			$He looks cautiously excited.
-			<<switch $activeSlave.fetish>>
+			<<switch getSlave($AS).fetish>>
 			<<case "submissive">>
 				$His eyes go a little unfocused before $he snaps back to attention and gestures that $he'll have to do whatever they want. $His attention wavers once more.
 			<<case "masochist">>
 				$He gestures if brothel whores get breaks when they get sore. Before you can tell $him no, $his eyes glow with an unhealthy light and $he expresses that $he'd like it more if it hurt.
 			<<case "cumslut">>
-				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
+				<<if getSlave($AS).attrXX > getSlave($AS).attrXY>>
 					$He gestures that $he heard a rumor that some ladies swing by during lunchtime for a quick eating out.
 				<<else>>
 					As drool starts to leak from $his mouth, it's pretty obvious $he can't wait to start sucking.
@@ -246,31 +246,31 @@ You tell $him $he's to report to <<if $MadamID != 0>>_S.Madam.slaveName immediat
 				$He asks if there is a window that $he could be stationed in for all to see.
 			<<case "buttslut">>
 				$He shifts $his weight, $his mind obviously on $his backdoor, and gestures
-				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
+				<<if getSlave($AS).attrXX > getSlave($AS).attrXY>>
 					if any girls would want to buttfuck $him.
 				<<else>>
 					that $he knows whores take it up the ass there and can't wait to join them.
 				<</if>>
 			<<case "boobs">>
 				er," and $he sticks out $his chest a little,
-				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
+				<<if getSlave($AS).attrXX > getSlave($AS).attrXY>>
 					"I hear from the other <<s>>lave<<s>> there'<<s>> thi<<s>> ni<<c>>e lady who goe<<s>> there every morning and pay<<s>> to have a whore <<s>>uck her nipple<<s>> for, like, an hour. I," $he licks $his lips, "could do that."
 				<<else>>
 					"the other <<s>>lave<<s>> tell me that whore<<s>> there get tittyfucked all the time. <<S>>ound<<s>> like fun to me."
 				<</if>>
 			<<case "pregnancy">>
 				$He gestures
-				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
+				<<if getSlave($AS).attrXX > getSlave($AS).attrXY>>
 					that $he's heard that a pregnant woman has been coming every night to pay for a whore to cuddle her. $He asks if $he could be that $girl.
-				<<elseif $activeSlave.vagina == -1>>
+				<<elseif getSlave($AS).vagina == -1>>
 					how much $he wishes $he could get pregnant from all the cum loads $he's going to get shot up $his rear.
-				<<elseif isFertile($activeSlave)>>
+				<<elseif isFertile(getSlave($AS))>>
 					that $he knows all the sex is bareback. By the look in $his eyes, you can tell $he is wondering how long it will take for some guy's seed to take root in $him.
-				<<elseif $activeSlave.pregKnown == 1>>
+				<<elseif getSlave($AS).pregKnown == 1>>
 					how sexy $he thinks pregnant whores are.
-				<<elseif $activeSlave.preg > 0>>
+				<<elseif getSlave($AS).preg > 0>>
 					that $he knows all the sex is bareback. By the look in $his eyes, you can tell $he is wondering how long it will take for some guy's seed to take root in $him.
-				<<elseif $activeSlave.ovaries == 1 && $activeSlave.pubertyXX == 0>>
+				<<elseif getSlave($AS).ovaries == 1 && getSlave($AS).pubertyXX == 0>>
 					how excited $he is for the day $he starts $his menstrual cycle. Will $he even see $his first period, or will every egg $he makes get fertilized?
 				<<else>>
 					that $he's heard a pregnant woman has been coming every night to pay for a whore to cuddle her. $He hopes that one day $he'll be chosen.
@@ -280,15 +280,15 @@ You tell $him $he's to report to <<if $MadamID != 0>>_S.Madam.slaveName immediat
 			<<case "sadist">>
 				$He gestures that $he knows citizens sometimes bring their toys there for punishment. $He shivers with anticipation.
 			<</switch>>
-		<<elseif $activeSlave.sexualFlaw != "none">>
+		<<elseif getSlave($AS).sexualFlaw != "none">>
 			$He nods obediently before hesitating with a concerned look on $his face.
-			<<switch $activeSlave.sexualFlaw>>
+			<<switch getSlave($AS).sexualFlaw>>
 			<<case "hates oral">>
 				$He slowly gestures if blowjobs are popular there while swallowing nervously. $His lower lip starts to quiver, and $he does $his best not to cry in front of you.
 			<<case "hates anal">>
-				$He slowly gestures if anal is popular there and <<if !hasAnyArms($activeSlave)>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without <<if isAmputee($activeSlave)>>limbs<<else>>hands<</if>><<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hand<<if hasBothArms($activeSlave)>>s<</if>><</if>>. $His lower lip quivers, and $he does $his best not to cry in front of you.
+				$He slowly gestures if anal is popular there and <<if !hasAnyArms(getSlave($AS))>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without <<if isAmputee(getSlave($AS))>>limbs<<else>>hands<</if>><<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hand<<if hasBothArms(getSlave($AS))>>s<</if>><</if>>. $His lower lip quivers, and $he does $his best not to cry in front of you.
 			<<case "hates penetration">>
-				$He slowly gestures that $he understands that customers will expect to fuck $him and <<if !hasAnyArms($activeSlave)>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without <<if isAmputee($activeSlave)>>limbs<<else>>hands<</if>><<elseif $activeSlave.vagina > 0>>unconsciously lets $his hand<<if hasBothArms($activeSlave)>>s<</if>> fall to $his crotch, but catches $himself and doesn't quite shield $his pussy<<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hand<<if hasBothArms($activeSlave)>>s<</if>><</if>>. $His lower lip quivers, and $he does $his best not to cry in front of you.
+				$He slowly gestures that $he understands that customers will expect to fuck $him and <<if !hasAnyArms(getSlave($AS))>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without <<if isAmputee(getSlave($AS))>>limbs<<else>>hands<</if>><<elseif getSlave($AS).vagina > 0>>unconsciously lets $his hand<<if hasBothArms(getSlave($AS))>>s<</if>> fall to $his crotch, but catches $himself and doesn't quite shield $his pussy<<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hand<<if hasBothArms(getSlave($AS))>>s<</if>><</if>>. $His lower lip quivers, and $he does $his best not to cry in front of you.
 			<<case "repressed">>
 				$He shakily gestures that $he'll be a sinner, but if that's what you want, $he'll do it. $He starts to cry quietly.
 			<<case "idealistic">>
@@ -307,18 +307,18 @@ You tell $him $he's to report to <<if $MadamID != 0>>_S.Madam.slaveName immediat
 		<</if>>
 	<</if>>
 
-<<elseif ($activeSlave.trust < -20)>>
+<<elseif (getSlave($AS).trust < -20)>>
 
-	<<if canTalk($activeSlave)>>
-		<<if $activeSlave.sexualFlaw != "none">>
+	<<if canTalk(getSlave($AS))>>
+		<<if getSlave($AS).sexualFlaw != "none">>
 			"Yes, <<Master>>," $he says automatically. $He's badly frightened, and says in a small voice, half to $himself,
-			<<switch $activeSlave.sexualFlaw>>
+			<<switch getSlave($AS).sexualFlaw>>
 			<<case "hates oral">>
 				"I — I'm going to h-have to <<s>>uck a lot of dick, aren't I." $He swallows and tries to control $himself out of fear, but finally gasps out, "Oh God, I'm <<s>>cared," and bursts into tears.
 			<<case "hates anal">>
-				"C-cu<<s>>tomer<<s>> are really going to ream me up the butt hole, aren't they." $He <<if !hasAnyArms($activeSlave)>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without <<if isAmputee($activeSlave)>>limbs<<else>>hands<</if>><<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hand<<if hasBothArms($activeSlave)>>s<</if>><</if>>. $His lower lip quivers and $he tries to control $himself out of fear, but finally gasps out, "Oh God, I'm <<s>>cared," and bursts into tears.
+				"C-cu<<s>>tomer<<s>> are really going to ream me up the butt hole, aren't they." $He <<if !hasAnyArms(getSlave($AS))>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without <<if isAmputee(getSlave($AS))>>limbs<<else>>hands<</if>><<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hand<<if hasBothArms(getSlave($AS))>>s<</if>><</if>>. $His lower lip quivers and $he tries to control $himself out of fear, but finally gasps out, "Oh God, I'm <<s>>cared," and bursts into tears.
 			<<case "hates penetration">>
-				"C-cu<<s>>tomer<<s>> are really going to fuck me <<s>>ore, aren't they." $He <<if !hasAnyArms($activeSlave)>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without <<if isAmputee($activeSlave)>>limbs<<else>>hands<</if>><<elseif $activeSlave.vagina > 0>>unconsciously lets $his hand<<if hasBothArms($activeSlave)>>s<</if>> fall to $his crotch, but catches $himself and doesn't quite shield $his pussy<<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hand<<if hasBothArms($activeSlave)>>s<</if>><</if>>. $His lower lip quivers, and $he tries to control $himself out of fear, but finally gasps out, "Oh God, I'm <<s>>cared," and bursts into tears.
+				"C-cu<<s>>tomer<<s>> are really going to fuck me <<s>>ore, aren't they." $He <<if !hasAnyArms(getSlave($AS))>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without <<if isAmputee(getSlave($AS))>>limbs<<else>>hands<</if>><<elseif getSlave($AS).vagina > 0>>unconsciously lets $his hand<<if hasBothArms(getSlave($AS))>>s<</if>> fall to $his crotch, but catches $himself and doesn't quite shield $his pussy<<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hand<<if hasBothArms(getSlave($AS))>>s<</if>><</if>>. $His lower lip quivers, and $he tries to control $himself out of fear, but finally gasps out, "Oh God, I'm <<s>>cared," and bursts into tears.
 			<<case "repressed">>
 				"Being a whore i<<s>> a <<s>>in," $he <<say>>s quietly, half to $himself. "I'm going t-to b-be <<s>>o dirty. I'm going to h-hell." $He starts to cry quietly. $He tries to get $himself back under control, out of fear, but finally wails, "Oh God, I'm <<s>>orry, p-plea<<s>>e forgive me God," and dissolves into sobbing.
 			<<case "idealistic">>
@@ -333,18 +333,18 @@ You tell $him $he's to report to <<if $MadamID != 0>>_S.Madam.slaveName immediat
 				"Gro<<ss>>," $he <<say>>s curtly. "Well, no more hand<<s>>ome boy<<s>> for me, then. Fat pathetic guy<<s>> who patroni<<z>>e whore<<s>>, all the way down. Fuck."
 			<</switch>>
 		<<else>>
-			$He does $his best to control $himself and avoid punishment. "<<Master>>, I will." $He holds $himself together until you dismiss $him; as $he turns away to go, the tears come fast, and $he almost runs into the door frame on $his way out<<if canSee($activeSlave)>>, blind with weeping<</if>>.
+			$He does $his best to control $himself and avoid punishment. "<<Master>>, I will." $He holds $himself together until you dismiss $him; as $he turns away to go, the tears come fast, and $he almost runs into the door frame on $his way out<<if canSee(getSlave($AS))>>, blind with weeping<</if>>.
 		<</if>>
 	<<else>>
-		<<if $activeSlave.sexualFlaw != "none">>
+		<<if getSlave($AS).sexualFlaw != "none">>
 			$He automatically gestures consent. $He's badly frightened, and gingerly continues
-			<<switch $activeSlave.sexualFlaw>>
+			<<switch getSlave($AS).sexualFlaw>>
 			<<case "hates oral">>
 				by asking if $he'll have to suck a lot of dick. $He swallows and tries to control $himself out of fear, but finally loses composure and bursts into tears.
 			<<case "hates anal">>
-				by asking if $he'll be assfucked a lot. $He <<if !hasAnyArms($activeSlave)>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without <<if isAmputee($activeSlave)>>limbs<<else>>hands<</if>><<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hand<<if hasBothArms($activeSlave)>>s<</if>><</if>>. $His lower lip quivers and $he tries to control $himself out of fear, but finally loses composure and bursts into tears.
+				by asking if $he'll be assfucked a lot. $He <<if !hasAnyArms(getSlave($AS))>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without <<if isAmputee(getSlave($AS))>>limbs<<else>>hands<</if>><<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hand<<if hasBothArms(getSlave($AS))>>s<</if>><</if>>. $His lower lip quivers and $he tries to control $himself out of fear, but finally loses composure and bursts into tears.
 			<<case "hates penetration">>
-				by asking if $he's going to be constantly fucked. $He <<if !hasAnyArms($activeSlave)>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without <<if isAmputee($activeSlave)>>limbs<<else>>hands<</if>><<elseif $activeSlave.vagina > 0>>unconsciously lets $his hand<<if hasBothArms($activeSlave)>>s<</if>> fall to $his crotch, but catches $himself and doesn't quite shield $his pussy<<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hand<<if hasBothArms($activeSlave)>>s<</if>><</if>>. $His lower lip quivers, and $he tries to control $himself out of fear, but finally loses composure and bursts into tears.
+				by asking if $he's going to be constantly fucked. $He <<if !hasAnyArms(getSlave($AS))>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without <<if isAmputee(getSlave($AS))>>limbs<<else>>hands<</if>><<elseif getSlave($AS).vagina > 0>>unconsciously lets $his hand<<if hasBothArms(getSlave($AS))>>s<</if>> fall to $his crotch, but catches $himself and doesn't quite shield $his pussy<<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hand<<if hasBothArms(getSlave($AS))>>s<</if>><</if>>. $His lower lip quivers, and $he tries to control $himself out of fear, but finally loses composure and bursts into tears.
 			<<case "repressed">>
 				that being a whore is a sin. $He starts to cry quietly. $He tries to get $himself back under control, out of fear, but finally wails and dissolves into prayers intermixed with sobbing.
 			<<case "idealistic">>
@@ -359,16 +359,16 @@ You tell $him $he's to report to <<if $MadamID != 0>>_S.Madam.slaveName immediat
 				by expressing $his disappointment with the type of men that frequent brothels.
 			<</switch>>
 		<<else>>
-			$He does $his best to control $himself and avoid punishment. "<<Master>>, I will." $He holds $himself together until you dismiss $him; as $he turns away to go, the tears come fast, and $he almost runs into the door frame on $his way out<<if canSee($activeSlave)>>, blind with weeping<</if>>.
+			$He does $his best to control $himself and avoid punishment. "<<Master>>, I will." $He holds $himself together until you dismiss $him; as $he turns away to go, the tears come fast, and $he almost runs into the door frame on $his way out<<if canSee(getSlave($AS))>>, blind with weeping<</if>>.
 		<</if>>
 	<</if>>
 
 <<else>>
 
 	$He manages to
-	<<if canTalk($activeSlave)>>
+	<<if canTalk(getSlave($AS))>>
 		get "Oh fuck n-" out
-	<<elseif hasAnyArms($activeSlave)>>
+	<<elseif hasAnyArms(getSlave($AS))>>
 		flip you an incredibly rude gesture
 	<<else>>
 		get an incredibly rude gesture out
diff --git a/src/js/assignJS.js b/src/js/assignJS.js
index 0be04b066f9..d385a05e70f 100644
--- a/src/js/assignJS.js
+++ b/src/js/assignJS.js
@@ -931,7 +931,7 @@ globalThis.assignmentTransition = function(slave, assignTo, passage) {
 		Engine.play(scene);
 	}
 
-	V.activeSlave = slave; // might be needed by the passage we're transitioning to (TODO: get rid of this)
+	V.AS = slave.ID;
 	assignJob(slave, assignTo);
 	if (V.showAssignToScenes === 1 && slave.fetish !== "mindbroken") {
 		if (assignTo === Job.DAIRY && V.dairyRestraintsSetting >= 2 && ((V.dairyStimulatorsSetting >= 2) || (V.dairyFeedersSetting >= 2) || (V.dairyPregSetting >= 2))) {
diff --git a/src/js/utilsFC.js b/src/js/utilsFC.js
index e359072b3b5..ccd6a47c85d 100644
--- a/src/js/utilsFC.js
+++ b/src/js/utilsFC.js
@@ -13,8 +13,8 @@
  *										in the same way setting them as global configuration would, but only for this
  *										specific generation.
  *
- *										Example: Only generate above-average heights based on $activeSlave:
- *										Height.random($activeSlave, {limitMult: [0, 5]})
+ *										Example: Only generate above-average heights based on a certain slave:
+ *										Height.random(slave, {limitMult: [0, 5]})
  *
  * Height.forAge(height, age, genes) - returns the height adapted to the age and genes
  * Height.forAge(height, slave) - returns the height adapted to the slave's age and genes
@@ -743,8 +743,8 @@ globalThis.Height = (function() {
  * Intelligence.random(options) - returns a random intelligence. If no options are passed, the generated number
  * will be on a normal distribution with mean 0 and standard deviation 45.
  *
- *										Example: Only generate above-average intelligence based on $activeSlave:
- *										Intelligence.random({limitIntelligence: [0, 100]})
+ *										Example: Only generate above-average intelligence based on a certain slave:
+ *										Intelligence.random(slave, {limitIntelligence: [0, 100]})
  *
  *  Intelligence.config(configuration) - configures the random height generator globally and returns the current configuration
  *
@@ -1440,7 +1440,7 @@ globalThis.getSlaveTrustClass = function(slave) {
 };
 
 /**
- * Takes an integer e.g. $activeSlave.hLength, returns a string in the format 10 inches
+ * Takes an integer e.g. slave.hLength, returns a string in the format 10 inches
  * @param {number} cm
  * @returns {string}
  */
@@ -1457,7 +1457,7 @@ globalThis.cmToInchString = function(cm) {
 };
 
 /**
- * takes an integer e.g. $activeSlave.height, returns a string in the format 6'5"
+ * takes an integer e.g. slave.height, returns a string in the format 6'5"
  * @param {number} cm
  * @returns {string}
  */
@@ -1469,7 +1469,7 @@ globalThis.cmToFootInchString = function(cm) {
 };
 
 /**
- * takes a dick value e.g. $activeSlave.dick, returns a string in the format 6 inches
+ * takes a dick value e.g. slave.dick, returns a string in the format 6 inches
  * @param {number} dick
  * @returns {string}
  */
@@ -1478,7 +1478,7 @@ globalThis.dickToInchString = function(dick) {
 };
 
 /**
- * takes a dick value e.g. $activeSlave.dick, returns an int of the dick length in cm
+ * takes a dick value e.g. slave.dick, returns an int of the dick length in cm
  * @param {number} dick
  * @returns {number}
  */
@@ -1491,7 +1491,7 @@ globalThis.dickToCM = function(dick) {
 	return dick * 6;
 };
 /**
- * takes a ball value e.g. $activeSlave.balls, returns a string in the format 3 inches
+ * takes a ball value e.g. slave.balls, returns a string in the format 3 inches
  * @param {number} balls
  * @returns {string}
  */
@@ -1500,7 +1500,7 @@ globalThis.ballsToInchString = function(balls) {
 };
 
 /**
- * takes a ball value e.g. $activeSlave.balls, returns an int of the ball size in cm
+ * takes a ball value e.g. slave.balls, returns an int of the ball size in cm
  * @param {number} balls
  * @returns {number}
  */
@@ -1512,7 +1512,7 @@ globalThis.ballsToCM = function(balls) {
 };
 
 /**
- * takes a dick value e.g. $activeSlave.dick, returns a string in the format of either `20cm (8 inches)`, `8 inches`, or `20cm`
+ * takes a dick value e.g. slave.dick, returns a string in the format of either `20cm (8 inches)`, `8 inches`, or `20cm`
  * @param {number} dick
  * @returns {string}
  */
@@ -1527,7 +1527,7 @@ globalThis.dickToEitherUnit = function(dick) {
 };
 
 /**
- * takes a ball value e.g. $activeSlave.balls, returns a string in the format of either `20cm (8 inches)`, `8 inches`, or `20cm`
+ * takes a ball value e.g. slave.balls, returns a string in the format of either `20cm (8 inches)`, `8 inches`, or `20cm`
  * @param {number} balls
  * @returns {string}
  */
@@ -1542,7 +1542,7 @@ globalThis.ballsToEitherUnit = function(balls) {
 };
 
 /**
- * takes an int in centimeters e.g. $activeSlave.height, returns a string in the format of either `200cm (6'7")`, `6'7"`, or `200cm`
+ * takes an int in centimeters e.g. slave.height, returns a string in the format of either `200cm (6'7")`, `6'7"`, or `200cm`
  * @param {number} height
  * @returns {string}
  */
@@ -1557,7 +1557,7 @@ globalThis.heightToEitherUnit = function(height) {
 };
 
 /**
- * takes an int in centimeters e.g. $activeSlave.hLength, returns a string in the format of either `30cm (12 inches)`, `12 inches`, or `30cm`
+ * takes an int in centimeters e.g. slave.hLength, returns a string in the format of either `30cm (12 inches)`, `12 inches`, or `30cm`
  * @param {number} length
  * @returns {string}
  */
diff --git a/src/js/wombJS.js b/src/js/wombJS.js
index 7b722795824..bc917e9d1a1 100644
--- a/src/js/wombJS.js
+++ b/src/js/wombJS.js
@@ -875,7 +875,7 @@ data.litterData[x] = contain array with actual fetuses that belong to a litter "
 
 Sample of usage in SugarScript:
 ---
-<<set _wd = WombGetLittersData($activeSlave)>>
+<<set _wd = WombGetLittersData(_slave)>>
 $He is _wd.litters[0] weeks pregnant with $his first set of _wd.countLitter[0] children<<if _wd.litters > 1>>, _wd.litters[1] weeks along with $his second set<</if>><<if _wd.litters > 2>>, _wd.litters[2] and _wd.litters[2] weeks along with $his third<</if>>.
 In summary $he carry _wd.litters.length separate sets of children. $His most progressed fetus of second pregnancy is already reached _wd.litterData[1][0].age biological week of gestation.
 ---
diff --git a/src/npc/generate/generateMarketSlave.js b/src/npc/generate/generateMarketSlave.js
index 94679e8e20d..785166e73b9 100644
--- a/src/npc/generate/generateMarketSlave.js
+++ b/src/npc/generate/generateMarketSlave.js
@@ -36,7 +36,7 @@ globalThis.generateMarketSlave = function(market = "kidnappers", numArcology = 1
 				r += `The corporation only takes slaves that are ${V.corp.SpecNationality}. `;
 			}
 
-			// Generate slaves. Modify fixed before this. Do not modify activeSlave before this.
+			// Generate slaves. Modify fixed before this. Do not modify slave before this.
 			if (V.corp.SpecGender === 1) {
 				r += `Slaves without pussies are not trained. `;
 				slave = GenerateNewSlave("XX", SGProp);
diff --git a/src/npc/generate/generateNewSlaveJS.js b/src/npc/generate/generateNewSlaveJS.js
index 1d6e3ef428e..6ec96857104 100644
--- a/src/npc/generate/generateNewSlaveJS.js
+++ b/src/npc/generate/generateNewSlaveJS.js
@@ -348,7 +348,7 @@ globalThis.GenerateNewSlave = (function() {
 		if (V.seeCircumcision === 0) {
 			slave.foreskin = slave.dick + jsRandom(0, 1);
 		} else {
-			/* Temporarily use activeSlave.foreskin to store the chance of circumcision. */
+			/* Temporarily use slave.foreskin to store the chance of circumcision. */
 			switch (slave.nationality) {
 				case "Afghan":
 				case "Iranian":
@@ -701,7 +701,7 @@ globalThis.GenerateNewSlave = (function() {
 			if (slave.race === "semitic" && slave.foreskin < 90) {
 				slave.foreskin = 90;
 			}
-			/* Chance activeSlave.foreskin back to the normal meaning. */
+			/* Chance slave.foreskin back to the normal meaning. */
 			if (jsRandom(0, 99) < slave.foreskin) {
 				slave.foreskin = 0;
 			} else {
diff --git a/src/npc/generate/slaveGenerationJS.js b/src/npc/generate/slaveGenerationJS.js
index f2eb6ec7f25..ac8f4fe2ea5 100644
--- a/src/npc/generate/slaveGenerationJS.js
+++ b/src/npc/generate/slaveGenerationJS.js
@@ -1341,7 +1341,7 @@ globalThis.nationalityToAccent = function(slave) {
 };
 
 /*
-Backup and then apply gingering modifiers to $activeSlave - no changes should be made to $activeSlave until after calling removeGingering() to restore the backup
+Backup and then apply gingering modifiers to slave - no changes should be made to slave until after calling removeGingering() to restore the backup
 Called from lawCompliance
 */
 globalThis.checkForGingering = function(slave, market = 0) {
@@ -1463,7 +1463,7 @@ globalThis.checkForGingering = function(slave, market = 0) {
 };
 
 /*
-Retrieve original $activeSlave without gingering modifiers
+Retrieve original slave without gingering modifiers
 Call as removeGingering()
 Called from newSlaveIntro, bulkSlaveGenerate
 */
diff --git a/src/uncategorized/freeRangeDairyAssignmentScene.tw b/src/uncategorized/freeRangeDairyAssignmentScene.tw
index 1b2278fb32a..4b85df66785 100644
--- a/src/uncategorized/freeRangeDairyAssignmentScene.tw
+++ b/src/uncategorized/freeRangeDairyAssignmentScene.tw
@@ -1,19 +1,19 @@
 :: Free Range Dairy Assignment Scene [nobr]
 
-/* This scene wants $dairyRestraintsSetting == 0 && $activeSlave.devotion > 0 && $activeSlave.fetish != "mindbroken" */
+/* This scene wants $dairyRestraintsSetting == 0 && getSlave($AS).devotion > 0 && getSlave($AS).fetish != "mindbroken" */
 
 <<set $nextButton = "Continue", $nextLink = $returnTo>>
-<<run App.Utils.setLocalPronouns($activeSlave)>>
+<<run App.Utils.setLocalPronouns(getSlave($AS))>>
 
 <<if $seeImages == 1>>
 	<div class="imageRef medImg">
-		<<= SlaveArt($activeSlave, 2, 0)>>
+		<<= SlaveArt(getSlave($AS), 2, 0)>>
 	</div>
 <</if>>
 
 <p>
-	$activeSlave.slaveName reports to the dairy.
-	<<if $activeSlave.energy > 90 >>
+	getSlave($AS).slaveName reports to the dairy.
+	<<if getSlave($AS).energy > 90 >>
 		$He rejoices since $he is actually eager to be milked.
 	<</if>>
 </p>
@@ -21,35 +21,35 @@
 <p>
 /* AROUSAL WHEN ENTERING */
 <<set _aroused = false >>
-<<if App.Entity.facilities.dairy.employeesIDs().size > 1 && canSee($activeSlave)>>
-	While <<if canWalk($activeSlave)>>walking<<elseif canMove($activeSlave)>>being helped<<else>>being carried<</if>> to $his designated stall, $he passes the other cows currently at their milking machines. Not being hurried, $he occasionally watches a cow in detail.
+<<if App.Entity.facilities.dairy.employeesIDs().size > 1 && canSee(getSlave($AS))>>
+	While <<if canWalk(getSlave($AS))>>walking<<elseif canMove(getSlave($AS))>>being helped<<else>>being carried<</if>> to $his designated stall, $he passes the other cows currently at their milking machines. Not being hurried, $he occasionally watches a cow in detail.
 	<div>
-		<<if $activeSlave.fetish == "boobs">>
+		<<if getSlave($AS).fetish == "boobs">>
 			/* TODO: check if there actually are lactating cows at the dairy */
 			<<set _aroused = true>>
 			$He cannot help but to feel aroused at the view of all those udders being thoroughly milked.
-			<<if $activeSlave.sexualFlaw == "breast growth">>
-				$He is already fantasizing of having $his breasts expanded to ridiculous proportions<<if $activeSlave.lactation > 0>> so $he can produce even more milk<</if>>.
+			<<if getSlave($AS).sexualFlaw == "breast growth">>
+				$He is already fantasizing of having $his breasts expanded to ridiculous proportions<<if getSlave($AS).lactation > 0>> so $he can produce even more milk<</if>>.
 			<</if>>
-		<<elseif $activeSlave.fetish == "pregnancy" && $dairyPregSetting == 1>>
+		<<elseif getSlave($AS).fetish == "pregnancy" && $dairyPregSetting == 1>>
 			<<set _aroused = true >>
 			The automatic impregnators are currently active. They are not running on an industrial setting, but on a gentler one. Every fertile cow's pussy is filled with a dildo attached on a mechanical arm. There is a wide range of sizes. Some dildos are small and provide expert stimulation for the sensitive areas. Other cows seem to prefer forearm-length horse-cocks for more intense stimulation. The automatic thrusting speeds vary, too, but all of them fill the slave completely so not a drop of sperm can leak out. Some cows are currently asleep. Their respective stimulators are comfortably resting deeply buried in their vaginas, keeping the loads right where they belong. Whenever a cow reaches climax, the sodomizers can thrust at ridiculous speeds to encourage fertilization.
-			The sight of all those lovely baby bumps arouses $activeSlave.slaveName.
-			<<if $activeSlave.sexualFlaw == "breeder" && isFertile($activeSlave)>>
+			The sight of all those lovely baby bumps arouses <<= getSlave($AS).slaveName>>.
+			<<if getSlave($AS).sexualFlaw == "breeder" && isFertile(getSlave($AS))>>
 				$He cannot wait to get impregnated too.
 			<</if>>
-		<<elseif $activeSlave.fetish == "buttslut" && $dairyStimulatorsSetting == 1>>
+		<<elseif getSlave($AS).fetish == "buttslut" && $dairyStimulatorsSetting == 1>>
 			<<set _aroused = true >>
 			The automatic sodomizers are currently active. They are not running on an industrial setting, but on a gentler one. Every cow's anus is filled with a dildo attached on a mechanical arm. There is a wide range of sizes. Some dildos are small and provide expert stimulation for the sensitive areas. Other cows seem to prefer forearm-length horse-cocks for more intense stimulation. The automatic thrusting speeds vary, too. Some cows are currently asleep. Their respective stimulators are comfortably resting deeply buried in their behinds. Whenever a cow reaches climax, the sodomizers can thrust at ridiculous speeds. Good thing they provide not only nutrition, but lubrication, too.
-			The sight of all those lovely rear-ends relentlessly reamed arouses $activeSlave.slaveName.
-			<<if $activeSlave.sexualFlaw == "anal addict">>
+			The sight of all those lovely rear-ends relentlessly reamed arouses <<= getSlave($AS).slaveName>>.
+			<<if getSlave($AS).sexualFlaw == "anal addict">>
 				$He cannot wait to be sodomized, too.
 			<</if>>
 		<</if>>
 	</div>
 
 	<<for _frdas = 0; _frdas < $slaves.length; _frdas++>>
-		<<if $slaves[_frdas].assignment == "work in the dairy" && $slaves[_frdas].ID != $activeSlave.ID && $slaves[_frdas].balls >= 10 && $slaves[_frdas].dick > 0>>
+		<<if $slaves[_frdas].assignment == "work in the dairy" && $slaves[_frdas].ID != getSlave($AS).ID && $slaves[_frdas].balls >= 10 && $slaves[_frdas].dick > 0>>
 			<div style="clear:both">
 				<<setLocalPronouns $slaves[_frdas] 2>>
 				<<set _aroused = true>>
@@ -93,15 +93,15 @@
 <</if>>
 
 <<if _aroused>>
-	All this lewd display turns $activeSlave.slaveName on and $he is almost overcome by lust. $He realizes $he probably should not have taken so much interest in the other cows.
-	<<if $activeSlave.dick > 0>>
-		$He feels $his blood rush into $his <<if $activeSlave.dick > 8>>gargantuan<<elseif $activeSlave.dick > 6>>huge<<elseif $activeSlave.dick > 2>>fair-sized<<else>>small<</if>> dick.
+	All this lewd display turns <<= getSlave($AS).slaveName>> on and $he is almost overcome by lust. $He realizes $he probably should not have taken so much interest in the other cows.
+	<<if getSlave($AS).dick > 0>>
+		$He feels $his blood rush into $his <<if getSlave($AS).dick > 8>>gargantuan<<elseif getSlave($AS).dick > 6>>huge<<elseif getSlave($AS).dick > 2>>fair-sized<<else>>small<</if>> dick.
 	<</if>>
-	<<if $activeSlave.vagina > -1 >>
+	<<if getSlave($AS).vagina > -1 >>
 		$His pussy moistens.
 	<</if>>
-	<<if $activeSlave.lactation > 0>>
-		<<if $activeSlave.nipples == "fuckable">>
+	<<if getSlave($AS).lactation > 0>>
+		<<if getSlave($AS).nipples == "fuckable">>
 			Milk begins to leak out of $his nipplecunts.
 		<<else>>
 			$His milk-dripping nipples stiffen.
@@ -114,19 +114,19 @@
 <p>
 	<div style="clear:both">
 		/* GETTING IN */
-		Eventually, $activeSlave.slaveName arrives at $his designated milking stall.
+		Eventually, <<= getSlave($AS).slaveName>> arrives at $his designated milking stall.
 		<<set _assayedSlaveAvailable = 0>>
-		<<set _relativeCattle = $slaves.filter(function(s) { return (areRelated(s, $activeSlave) && s.assignment == "work in the dairy") ; })>>
+		<<set _relativeCattle = $slaves.filter(function(s) { return (areRelated(s, getSlave($AS)) && s.assignment == "work in the dairy") ; })>>
 		<<if _relativeCattle.length > 0>>
 			<<set _assayedSlave = _relativeCattle.random()>>
 			<<set _assayedSlaveAvailable = 1>>
-			<<set _assayType = relativeTerm($activeSlave, _assayedSlave)>>
+			<<set _assayType = relativeTerm(getSlave($AS), _assayedSlave)>>
 		<</if>>
-		<<if _assayedSlaveAvailable == 0 && $activeSlave.relationship > 0>>
-			<<set _assayedSlave = getSlave($activeSlave.relationshipTarget)>>
+		<<if _assayedSlaveAvailable == 0 && getSlave($AS).relationship > 0>>
+			<<set _assayedSlave = getSlave(getSlave($AS).relationshipTarget)>>
 			<<if (def _assayedSlave) && _assayedSlave.assignment == "work in the dairy">>
 				<<set _assayedSlaveAvailable = 1>>
-				<<switch $activeSlave.relationship>>
+				<<switch getSlave($AS).relationship>>
 				<<case 1>>
 					<<set _assayType = "friend">>
 				<<case 2>>
@@ -158,23 +158,23 @@
 			</div>
 		<</if>>
 		<div>
-		The only "furniture" in the stall looks like a dentist's chair. Despite the medical appearance, when $he <<if $activeSlave.devotion > 90>>eagerly<<elseif $activeSlave.slaveName < 40>>hesitantly<</if>> gets into the chair it turns out to be quite comfortable.
+		The only "furniture" in the stall looks like a dentist's chair. Despite the medical appearance, when $he <<if getSlave($AS).devotion > 90>>eagerly<<elseif getSlave($AS).slaveName < 40>>hesitantly<</if>> gets into the chair it turns out to be quite comfortable.
 		<<if _S.Milkmaid == 0>>
 			Automated machinery springs to life, preparing $him for milking.
 		<<else>>
-			Your appointed milkmaid _S.Milkmaid.slaveName helps $activeSlave.slaveName with installing the milking devices.
+			Your appointed milkmaid _S.Milkmaid.slaveName helps <<= getSlave($AS).slaveName>> with installing the milking devices.
 		<</if>>
-		<<if $activeSlave.lactation > 0 >>
-		Suction cups are attached <<if $activeSlave.nipples == "fuckable">>over<<else>>to<</if>> $his nipples.
+		<<if getSlave($AS).lactation > 0 >>
+		Suction cups are attached <<if getSlave($AS).nipples == "fuckable">>over<<else>>to<</if>> $his nipples.
 		<</if>>
-		<<if $activeSlave.balls > 0>>
-			<<if $activeSlave.dick > 8>>
+		<<if getSlave($AS).balls > 0>>
+			<<if getSlave($AS).dick > 8>>
 				A huge receptacle is attached to $his over-sized member.
-			<<elseif $activeSlave.dick > 6>>
+			<<elseif getSlave($AS).dick > 6>>
 				A large cock-milker is attached to $his huge dick.
-			<<elseif $activeSlave.dick > 2>>
+			<<elseif getSlave($AS).dick > 2>>
 				A special cock-milker is attached to $his dick.
-			<<elseif $activeSlave.dick > 0>>
+			<<elseif getSlave($AS).dick > 0>>
 				A suction cup is attached to $his small dicklet. Due to the embarrassingly small size of $his penis, the very kind of cup is used that normally goes on nipples.
 			<<else>>
 				A suction cup is attached over $his hidden cumhole.
@@ -184,49 +184,49 @@
 		<div>
 		<<if $dairyFeedersSetting == 1>>
 			Near the headrest of the chair, an artificial phallus is installed. The cow can easily reach it with $his mouth. The phallus provides hydration and nutrition when sucked. The supplement consists of excess or low-quality milk and cum from the dairy itself as well as aphrodisiacs and hormones enhancing lactation and semen production.
-			<<if $activeSlave.sexualFlaw == "cum addict" || $activeSlave.fetish == "cumslut">>
-				$activeSlave.slaveName eagerly shoves the artificial phallus into $his mouth. $He gives it an experimental suckle. To $his joy, $he soon is rewarded with a fresh spurt of semen-like nutrition supplement. Then $he readjusts the holder to keep the phallus lodged in $his mouth, effectively forcing $himself to keep sucking the artificial dick.
+			<<if getSlave($AS).sexualFlaw == "cum addict" || getSlave($AS).fetish == "cumslut">>
+				getSlave($AS).slaveName eagerly shoves the artificial phallus into $his mouth. $He gives it an experimental suckle. To $his joy, $he soon is rewarded with a fresh spurt of semen-like nutrition supplement. Then $he readjusts the holder to keep the phallus lodged in $his mouth, effectively forcing $himself to keep sucking the artificial dick.
 			<</if>>
 		<</if>>
 		</div>
 		<div>
-		The milking chair comes with a small screen, providing mental stimulation for the cow. It is highly pornographic, of course. It also includes live-streams of close-ups from the cows being milked or their orifices being penetrated. $activeSlave.slaveName selects $his favorite program<<if canSee($activeSlave)>> to watch<<elseif canHear($activeSlave)>> to listen to<<else>> to feel the vibrations from<</if>>. It features
-		<<if $activeSlave.attrXY > $activeSlave.attrXX || $activeSlave.behavioralQuirk == "adores men">>
+		The milking chair comes with a small screen, providing mental stimulation for the cow. It is highly pornographic, of course. It also includes live-streams of close-ups from the cows being milked or their orifices being penetrated. <<= getSlave($AS).slaveName>> selects $his favorite program<<if canSee(getSlave($AS))>> to watch<<elseif canHear(getSlave($AS))>> to listen to<<else>> to feel the vibrations from<</if>>. It features
+		<<if getSlave($AS).attrXY > getSlave($AS).attrXX || getSlave($AS).behavioralQuirk == "adores men">>
 			men
 		<<else>>
 			women
 		<</if>>
-		<<if ($activeSlave.fetish == "submissive")>>
+		<<if (getSlave($AS).fetish == "submissive")>>
 			submitting to their sexual partners.
-		<<elseif ($activeSlave.fetish == "cumslut")>>
-			<<if $activeSlave.attrXY > $activeSlave.attrXX || $activeSlave.behavioralQuirk == "adores men">>
+		<<elseif (getSlave($AS).fetish == "cumslut")>>
+			<<if getSlave($AS).attrXY > getSlave($AS).attrXX || getSlave($AS).behavioralQuirk == "adores men">>
 				jacking off directly into the camera.
 			<<else>>
 				sucking dick for all it's worth.
 			<</if>>
 			<<if $dairyFeedersSetting == 1 >>
-				The dairy feeders ejaculations are synced with the events in the video. $activeSlave.slaveName receives a load of cum-like nutrition every time a dick shoots. It really draws $him into the pornography.
+				The dairy feeders ejaculations are synced with the events in the video. <<= getSlave($AS).slaveName>> receives a load of cum-like nutrition every time a dick shoots. It really draws $him into the pornography.
 			<</if>>
-		<<elseif ($activeSlave.fetish == "humiliation")>>
+		<<elseif (getSlave($AS).fetish == "humiliation")>>
 			being humiliated.
-		<<elseif ($activeSlave.fetish == "buttslut")>>
+		<<elseif (getSlave($AS).fetish == "buttslut")>>
 			being fucked in the ass.
 			<<if $dairyStimulatorsSetting == 1>>
-				The dairy stimulators are synced to the videos. The automatic sodomizers thrust in exactly the same way as the dicks or dildos in the video. $activeSlave.slaveName is amazed by this advanced pornography. It feels like it was $him being fucked in the videos all over.
+				The dairy stimulators are synced to the videos. The automatic sodomizers thrust in exactly the same way as the dicks or dildos in the video. <<= getSlave($AS).slaveName>> is amazed by this advanced pornography. It feels like it was $him being fucked in the videos all over.
 			<</if>>
-		<<elseif ($activeSlave.fetish == "dom")>>
+		<<elseif (getSlave($AS).fetish == "dom")>>
 			dominating their sexual partners.
-		<<elseif ($activeSlave.fetish == "masochist")>>
+		<<elseif (getSlave($AS).fetish == "masochist")>>
 			being flogged.
-		<<elseif ($activeSlave.fetish == "sadist")>>
+		<<elseif (getSlave($AS).fetish == "sadist")>>
 			abusing their sexual partners.
-		<<elseif ($activeSlave.fetish == "pregnancy")>>
-			<<if $activeSlave.attrXY > $activeSlave.attrXX || $activeSlave.behavioralQuirk == "adores men">>
+		<<elseif (getSlave($AS).fetish == "pregnancy")>>
+			<<if getSlave($AS).attrXY > getSlave($AS).attrXX || getSlave($AS).behavioralQuirk == "adores men">>
 				fucking pregnant women.
 			<<else>>
 				being fucked while pregnant.
 				<<if $dairyPregSetting > 0>>
-					The dairy stimulators are synced to the videos. The impregnating dildo thrusts in exactly the same way as the dicks or dildos in the video. $activeSlave.slaveName is amazed by this advanced pornography. It feels like it was $him being fucked and cummed inside in the videos all over.
+					The dairy stimulators are synced to the videos. The impregnating dildo thrusts in exactly the same way as the dicks or dildos in the video. <<= getSlave($AS).slaveName>> is amazed by this advanced pornography. It feels like it was $him being fucked and cummed inside in the videos all over.
 				<</if>>
 			<</if>>
 		<<else>>
@@ -256,28 +256,28 @@
 			<br>
 		<</if>>
 		<<if $dairyStimulatorsSetting > 0>>
-			Automated sodomizers help the cows produce by penetrating their anuses. The milking chairs built-in sensors measure $activeSlave.slaveName's anal capacity.
-			<<if $activeSlave.anus == 0 >>
+			Automated sodomizers help the cows produce by penetrating their anuses. The milking chairs built-in sensors measure <<= getSlave($AS).slaveName>>'s anal capacity.
+			<<if getSlave($AS).anus == 0 >>
 				The machine detects an unused rear-end. In order to protect $his anal virginity, the automatic sodomizer stays inactive.
 			<<else>>
 				In order to provide adequate stimulation for $his
-				<<if $activeSlave.anus > 3>>
+				<<if getSlave($AS).anus > 3>>
 					gaping anus, the automatic sodomizer is equipped with a gigantic horse-like phallus. It wobbles menacingly.
-				<<elseif $activeSlave.anus > 2>>
+				<<elseif getSlave($AS).anus > 2>>
 					well-used rear-end, the automatic sodomizer is equipped with a large phallus. It is nicely ribbed for extra stimulation.
 				<<else>>
 					anus, the automatic sodomizer is equipped with a fair-sized silicone phallus.
 				<</if>>
-				Lubrication spurts from a hole at the tip, giving the artificial phallus a very lifelike pre-dripping look. Gently, the mechanical arm pushes the phallus into $activeSlave.slaveName's behind.
-				<<if $activeSlave.fetish == "buttslut" || $activeSlave.sexualFlaw == "anal addict">>
+				Lubrication spurts from a hole at the tip, giving the artificial phallus a very lifelike pre-dripping look. Gently, the mechanical arm pushes the phallus into <<= getSlave($AS).slaveName>>'s behind.
+				<<if getSlave($AS).fetish == "buttslut" || getSlave($AS).sexualFlaw == "anal addict">>
 					$He shudders with joy.
 				<</if>>
 				Soon, the automatic sodomizer pumps the dildo in and out of $his butt-hole.
-				<<if ($activeSlave.balls > 0) && ($activeSlave.scrotum > 0)>>
-					$His<<if $activeSlave.balls > 5 >> massive<</if>> balls swing back and forth.
+				<<if (getSlave($AS).balls > 0) && (getSlave($AS).scrotum > 0)>>
+					$His<<if getSlave($AS).balls > 5 >> massive<</if>> balls swing back and forth.
 				<</if>>
-				<<if $activeSlave.dick > 0 >>
-					<<if $activeSlave.prostate != 0>>
+				<<if getSlave($AS).dick > 0 >>
+					<<if getSlave($AS).prostate != 0>>
 						The dildo stimulates $his prostate perfectly. Pre-cum begins to leak from $his cock.
 					<</if>>
 					/* TODO: the next lines feel non-canon */
@@ -288,21 +288,21 @@
 		<</if>>
 		<<if $dairyPregSetting > 0>>
 			Ejaculate squirting dildos keep the slave's wombs stuffed with seed until they are confirmed pregnant and aid in preparing them for childbirth.
-			<<if isFertile($activeSlave)>>
+			<<if isFertile(getSlave($AS))>>
 				Since $he is quite fertile, it springs to life.
-				<<if $activeSlave.vagina == 0>>
+				<<if getSlave($AS).vagina == 0>>
 					The machine detects a virgin pussy. In order to protect $his virginity, the automatic dildo returns to its housing.
 				<<else>>
 					In order to provide adequate stimulation for $his
-					<<if $activeSlave.vagina > 3>>
+					<<if getSlave($AS).vagina > 3>>
 						gaping vagina, the automatic dildo is equipped with a gigantic horse-like phallus. It wobbles menacingly.
-					<<elseif $activeSlave.vagina > 2>>
+					<<elseif getSlave($AS).vagina > 2>>
 						well-used rear-end, the automatic dildo is equipped with a large phallus. It is nicely ribbed for extra stimulation.
 					<<else>>
 						vagina, the automatic dildo is equipped with a fair-sized silicone phallus.
 					<</if>>
-					Lubrication spurts from a hole at the tip, giving the artificial phallus a very lifelike pre-dripping look. Gently, the mechanical arm pushes the phallus into $activeSlave.slaveName's pussy.
-					<<if $activeSlave.fetish == "pregnancy" || $activeSlave.sexualFlaw == "breeder">>
+					Lubrication spurts from a hole at the tip, giving the artificial phallus a very lifelike pre-dripping look. Gently, the mechanical arm pushes the phallus into <<= getSlave($AS).slaveName>>'s pussy.
+					<<if getSlave($AS).fetish == "pregnancy" || getSlave($AS).sexualFlaw == "breeder">>
 						$He shudders with joy.
 					<</if>>
 					Soon, the automatic impregnator pumps the dildo in and out of $his body, frequently releasing large loads of potent cum directly into $his womb.
@@ -315,57 +315,57 @@
 
 /* MILKING ROUTINE */
 <p>
-	<<if $activeSlave.lactation > 0>>
-		The milking cups <<if $activeSlave.nipples == "fuckable">>over<<else>>on<</if>> $his nipples begin to pulse rhythmically. Soon, a steady flow of breast-milk is sucked away into the storage tanks.
+	<<if getSlave($AS).lactation > 0>>
+		The milking cups <<if getSlave($AS).nipples == "fuckable">>over<<else>>on<</if>> $his nipples begin to pulse rhythmically. Soon, a steady flow of breast-milk is sucked away into the storage tanks.
 	<</if>>
-	<<if $activeSlave.dick > 0>>
+	<<if getSlave($AS).dick > 0>>
 		The milking machine uses suction to draw $his dick into the receptacle.
-		<<if $activeSlave.dick > 10>>
+		<<if getSlave($AS).dick > 10>>
 			$His dick is too large to even consider getting hard again, so it just attaches firmly to the tip.
-		<<elseif $activeSlave.dick > 8>>
+		<<elseif getSlave($AS).dick > 8>>
 			$He is on the verge of passing out as most of $his blood volume rushes into $his dick. $He cannot possibly reach a full erection without the machine's help. $He fights to stay awake so $he can enjoy $his inhuman cock at throbbing hardness.
-		<<elseif $activeSlave.dick > 6>>
+		<<elseif getSlave($AS).dick > 6>>
 			$He feels dizzy as most of $his blood volume rushes into $his dick. It is not easy for $his body to maintain an erection. But with the machine's help, $he can produce a full throbbing hard-on.
 		<<else>>
 			It brings $him to a full, throbbing erection within seconds.
 		<</if>>
 		The machine strokes $his dick mechanically, but very pleasurably.
 	<</if>>
-	It does not take long for $activeSlave.slaveName to reach $his first orgasm of many. $His muscles tense.
-	<<if $activeSlave.dick > 0>>
-		$His <<if $activeSlave.balls > 5 >>cum-engorged<</if>> balls draw up.
-		$His <<if $activeSlave.dick > 8 >>gargantuan member<<elseif $activeSlave.dick > 6 >>huge cock<<else>>dick<</if>> twitches and flexes within its receptacle.
-		<<if $activeSlave.balls >= 50>>
+	It does not take long for getSlave($AS).slaveName to reach $his first orgasm of many. $His muscles tense.
+	<<if getSlave($AS).dick > 0>>
+		$His <<if getSlave($AS).balls > 5 >>cum-engorged<</if>> balls draw up.
+		$His <<if getSlave($AS).dick > 8 >>gargantuan member<<elseif getSlave($AS).dick > 6 >>huge cock<<else>>dick<</if>> twitches and flexes within its receptacle.
+		<<if getSlave($AS).balls >= 50>>
 			A special tank beneath $him holds $his monolithic balls' endless ejaculate while the machine struggles to suck it away.
-		<<elseif $activeSlave.balls >= 37>>
+		<<elseif getSlave($AS).balls >= 37>>
 			A special tank attached to the hose holds $his titanic balls' near endless ejaculate while the machine struggles to suck it away.
-		<<elseif $activeSlave.balls >= 25>>
+		<<elseif getSlave($AS).balls >= 25>>
 			A special reservoir attached to the hose holds $his massive balls' ridiculous ejaculate while the machine struggles to suck it away.
-		<<elseif $activeSlave.balls >= 10>>
+		<<elseif getSlave($AS).balls >= 10>>
 			The machine strains to suck down the giant load from $his huge balls.
-		<<elseif $activeSlave.balls > 5>>
+		<<elseif getSlave($AS).balls > 5>>
 			The copious ejaculation from $his over-sized balls give the machine something to work on.
-		<<elseif $activeSlave.balls > 0>>
+		<<elseif getSlave($AS).balls > 0>>
 			$His ejaculate is quickly sucked away.
 		<<else>>
 			$His ballslessness impedes cum-production, but ejaculating feels nice, anyway.
 		<</if>>
 	<</if>>
-	<<if ($activeSlave.dick < 1) && ($activeSlave.balls > 0) && ($activeSlave.prostate > 0)>>
+	<<if (getSlave($AS).dick < 1) && (getSlave($AS).balls > 0) && (getSlave($AS).prostate > 0)>>
 		Cum splashes from $his urethra and is quickly sucked away.
 	<</if>>
-	<<if $activeSlave.lactation > 0>>
+	<<if getSlave($AS).lactation > 0>>
 		<br>
-		The milking cups <<if $activeSlave.nipples == "fuckable">>over<<else>>on<</if>> $his nipples switch from rhythmic pulsing into intense suction. Aided by $his orgasm, milk spurts from $his nipples
-		<<if $activeSlave.boobs > 20000>>
+		The milking cups <<if getSlave($AS).nipples == "fuckable">>over<<else>>on<</if>> $his nipples switch from rhythmic pulsing into intense suction. Aided by $his orgasm, milk spurts from $his nipples
+		<<if getSlave($AS).boobs > 20000>>
 			in obscenely massive amounts. $His immense breasts seem to never empty.
-		<<elseif $activeSlave.boobs > 10000>>
+		<<elseif getSlave($AS).boobs > 10000>>
 			in absurdly large amounts. $His gargantuan breasts do not seem to get less milk-laden for a long time.
-		<<elseif $activeSlave.boobs > 5000>>
+		<<elseif getSlave($AS).boobs > 5000>>
 			in powerful jets. $His huge breasts can provide multiple liters of milk.
-		<<elseif $activeSlave.boobs > 1000>>
+		<<elseif getSlave($AS).boobs > 1000>>
 			for quite some time. $His large breasts can store an impressive volume of milk.
-		<<elseif $activeSlave.boobs > 700>>
+		<<elseif getSlave($AS).boobs > 700>>
 			until there is enough for whitening a cup of coffee. $His average breasts cannot store much more milk.
 		<<elseif ($arcologies[0].FSSlimnessEnthusiast > 80)>>
 			for a surprisingly long time. Your arcology succeeded in optimized the milking process for small breasts.
@@ -374,29 +374,29 @@
 		<</if>>
 	<</if>>
 	<div>
-		<<if $activeSlave.prostate != 0 && $activeSlave.dick == 0 && $activeSlave.balls == 0>>
-			$activeSlave.slaveName has no cock, but a functional prostate gland. It's attached to $his urethra, so $he squirts <<if $activeSlave.prostate > 2>>massively<<else>>copiously<</if>> while $he orgasms. The exotic fluid is caught by a basin positioned under $his <<if $activeSlave.vagina >= 0 >>dripping pussy<<else>>featureless crotch<</if>>.
+		<<if getSlave($AS).prostate != 0 && getSlave($AS).dick == 0 && getSlave($AS).balls == 0>>
+			getSlave($AS).slaveName has no cock, but a functional prostate gland. It's attached to $his urethra, so $he squirts <<if getSlave($AS).prostate > 2>>massively<<else>>copiously<</if>> while $he orgasms. The exotic fluid is caught by a basin positioned under $his <<if getSlave($AS).vagina >= 0 >>dripping pussy<<else>>featureless crotch<</if>>.
 		<</if>>
 	</div>
 </p>
 
 <p>
-	With the first milking cycle being over, $activeSlave.slaveName drifts into a relaxing slumber.
-	<<if $dairyFeedersSetting == 1 && ($activeSlave.sexualFlaw == "cum addict" || $activeSlave.fetish == "cumslut")>>
+	With the first milking cycle being over, <<= getSlave($AS).slaveName>> drifts into a relaxing slumber.
+	<<if $dairyFeedersSetting == 1 && (getSlave($AS).sexualFlaw == "cum addict" || getSlave($AS).fetish == "cumslut")>>
 		$He grins madly around the phallus $he stuffed in $his mouth.
 	<</if>>
-	<<if $dairyPregSetting > 0 && isFertile($activeSlave) && $activeSlave.vagina > 0>>
+	<<if $dairyPregSetting > 0 && isFertile(getSlave($AS)) && getSlave($AS).vagina > 0>>
 		$He gets comfortable around $his cum-bloated belly as the impregnator continues its task.
 	<</if>>
-	<<if $activeSlave.lactation > 0>>
-		The milking cups <<if $activeSlave.nipples == "fuckable">>over<<else>>on<</if>> $his nipples pulse slower and with less vigor. The lactation never fully subsides. The steady but gentle suction helps increasing milk production without actually draining the breasts.
-		<<set $activeSlave.lactationDuration = 2>>
-		<<set $activeSlave.boobs -= $activeSlave.boobsMilk, $activeSlave.boobsMilk = 0>>
+	<<if getSlave($AS).lactation > 0>>
+		The milking cups <<if getSlave($AS).nipples == "fuckable">>over<<else>>on<</if>> $his nipples pulse slower and with less vigor. The lactation never fully subsides. The steady but gentle suction helps increasing milk production without actually draining the breasts.
+		<<set getSlave($AS).lactationDuration = 2>>
+		<<set getSlave($AS).boobs -= getSlave($AS).boobsMilk, getSlave($AS).boobsMilk = 0>>
 	<</if>>
-	<<if $activeSlave.dick > 0>>
+	<<if getSlave($AS).dick > 0>>
 		The suction on $his dick stops, allowing $his abused member to go soft and have some rest.
 	<</if>>
-	<<if $activeSlave.balls > 0 && $activeSlave.scrotum > 0>>
+	<<if getSlave($AS).balls > 0 && getSlave($AS).scrotum > 0>>
 		$His balls rest, dangling down and relieved. They already started to produce more cum. They seem to wait for their next chance to unload.
 	<</if>>
 </p>
diff --git a/src/uncategorized/industrialDairyAssignmentScene.tw b/src/uncategorized/industrialDairyAssignmentScene.tw
index 55de2718310..c5c7ce8fc4b 100644
--- a/src/uncategorized/industrialDairyAssignmentScene.tw
+++ b/src/uncategorized/industrialDairyAssignmentScene.tw
@@ -2,132 +2,132 @@
 
 <<set $nextButton = "Continue", $nextLink = $returnTo>>
 
-<<run App.Utils.setLocalPronouns($activeSlave)>>
+<<run App.Utils.setLocalPronouns(getSlave($AS))>>
 
 <span id="art-frame">
 	/* 000-250-006 */
 	<<if $seeImages == 1>>
 		<<if $imageChoice == 1>>
-			<div class="imageRef lrgVector"><div class="mask">&nbsp;</div><<= SlaveArt($activeSlave, 2, 0)>></div>
+			<div class="imageRef lrgVector"><div class="mask">&nbsp;</div><<= SlaveArt(getSlave($AS), 2, 0)>></div>
 		<<else>>
-			<div class="imageRef lrgRender"><div class="mask">&nbsp;</div><<= SlaveArt($activeSlave, 2, 0)>></div>
+			<div class="imageRef lrgRender"><div class="mask">&nbsp;</div><<= SlaveArt(getSlave($AS), 2, 0)>></div>
 		<</if>>
 	<</if>>
 	/* 000-250-006 */
 </span>
 
-When $activeSlave.slaveName reports to the dairy, it's to the <<if canSee($activeSlave)>>sight of an unoccupied milking machine waiting for $him<<else>>cold embrace of an unoccupied milking machine<</if>>, its straps ready to immure $him in what is to be $his new home.
+When <<= getSlave($AS).slaveName>> reports to the dairy, it's to the <<if canSee(getSlave($AS))>>sight of an unoccupied milking machine waiting for $him<<else>>cold embrace of an unoccupied milking machine<</if>>, its straps ready to immure $him in what is to be $his new home.
 
-<<if $activeSlave.sexualFlaw == "self hating">> /* GETTING IN */
+<<if getSlave($AS).sexualFlaw == "self hating">> /* GETTING IN */
 
 	As $he realizes $his fate, a kind of peace comes over the self hating slut.
-	<<if !canTalk($activeSlave)>>
-		$He <<if (!hasAnyArms($activeSlave))>>mouths<<else>>gestures<</if>> $his thanks dreamily.
+	<<if !canTalk(getSlave($AS))>>
+		$He <<if (!hasAnyArms(getSlave($AS)))>>mouths<<else>>gestures<</if>> $his thanks dreamily.
 	<<else>>
 		"Thank you, <<Master>>," $he <<say>>s simply. "I de<<s>>erve thi<<s>>," $he adds quietly, half to $himself.
 	<</if>>
-	Then $he falls silent and <<if canSee($activeSlave)>>stares at<<else>>faces<</if>> the machine. Though $he hates $himself and looks forward to the release of being unable to do anything but get fucked, that doesn't mean $he isn't afraid.
-	<<if (hasAnyArms($activeSlave))>>
+	Then $he falls silent and <<if canSee(getSlave($AS))>>stares at<<else>>faces<</if>> the machine. Though $he hates $himself and looks forward to the release of being unable to do anything but get fucked, that doesn't mean $he isn't afraid.
+	<<if (hasAnyArms(getSlave($AS)))>>
 		<<if ($dairyStimulatorsSetting > 1)>>
 			$He gauges the size of the sodomizer with $his hand, finding that it's wider than $his fist, and then presses the fist against $his own anus. Realizing what's about to happen, $he gives a little shudder.
-			<<if ($dairyPregSetting > 1) && isFertile($activeSlave) && $activeSlave.mpreg != 1>>
+			<<if ($dairyPregSetting > 1) && isFertile(getSlave($AS)) && getSlave($AS).mpreg != 1>>
 				$He does the same with the dildo that will keep $him pregnant and $his pussy, and $his lower lip starts to quiver.
 			<</if>>
 		<<else>>
-			<<if ($dairyPregSetting > 1) && isFertile($activeSlave) && $activeSlave.mpreg != 1>>
+			<<if ($dairyPregSetting > 1) && isFertile(getSlave($AS)) && getSlave($AS).mpreg != 1>>
 				$He gauges the size of the dildo that will keep $him pregnant with $his hand, finding that it's wider than $his fist, and then presses the fist against $his pussy. Realizing what's about to happen, $he gives a little shudder.
 			<</if>>
 		<</if>>
 		<<if ($dairyFeedersSetting > 1)>>
-			<<if canSee($activeSlave)>>Looking at<<else>>As $he wraps $his lips around<</if>> the phallus that will feed $him, $he begins to cry softly.
+			<<if canSee(getSlave($AS))>>Looking at<<else>>As $he wraps $his lips around<</if>> the phallus that will feed $him, $he begins to cry softly.
 		<</if>>
 	<</if>>
 	<br><br>
-	<<if (hasAnyArms($activeSlave))>>
+	<<if (hasAnyArms(getSlave($AS)))>>
 		$He strips and climbs into the machine's embrace,
 	<<else>>
 		Another slave helps $him strip and lays $him in the machine,
 	<</if>>
 	$his tears pattering onto the uncaring metal. When $he's in place, $his shoulders slump as $he gives up completely.
-	<<if !canTalk($activeSlave)>>
+	<<if !canTalk(getSlave($AS))>>
 		$He mouths 'Goodbye.'
-	<<elseif SlaveStatsChecker.checkForLisp($activeSlave)>>
+	<<elseif SlaveStatsChecker.checkForLisp(getSlave($AS))>>
 		"'Bye," $he lisps.
 	<<else>>
 		"'Bye," $he whispers.
 	<</if>>
 
-<<elseif ($activeSlave.sexualFlaw == "breeder") && isFertile($activeSlave) && $activeSlave.mpreg != 1>>
+<<elseif (getSlave($AS).sexualFlaw == "breeder") && isFertile(getSlave($AS)) && getSlave($AS).mpreg != 1>>
 
 	As $he realizes what's about to happen, $he begins to cry openly. A curious mix of arousal, joy, and abject horror is obvious on $his face, and $he deals with the conflicting feelings by sobbing.
-	<<if !canTalk($activeSlave)>>
-		$He <<if (!hasAnyArms($activeSlave))>>mouths<<else>>gestures<</if>> $his thanks shakily.
+	<<if !canTalk(getSlave($AS))>>
+		$He <<if (!hasAnyArms(getSlave($AS)))>>mouths<<else>>gestures<</if>> $his thanks shakily.
 	<<else>>
 		"Th-thank you, <<Master>>," $he <<say>>s through $his tears. "I love you."
 	<</if>>
-	Then $he falls silent and <<if canSee($activeSlave)>>stares at<<elseif (hasAnyArms($activeSlave))>>reaches out to touch<<else>>faces<</if>> the machine. $He's probably imagined this a thousand times, but the prospect is still frightening.
-	<<if (hasAnyArms($activeSlave))>>
+	Then $he falls silent and <<if canSee(getSlave($AS))>>stares at<<elseif (hasAnyArms(getSlave($AS)))>>reaches out to touch<<else>>faces<</if>> the machine. $He's probably imagined this a thousand times, but the prospect is still frightening.
+	<<if (hasAnyArms(getSlave($AS)))>>
 		<<if ($dairyStimulatorsSetting > 1)>>
 			$He gauges the size of the sodomizer with $his hand, finding that it's wider than $his fist, and then presses the fist against $his own anus. Realizing that $his anus is about to be permanently gaped, $he looks doubtful, but then visibly reassures $himself. $He'll need both $his mouth and $his ass to eat enough.
 		<</if>>
 		<<if ($dairyFeedersSetting > 1)>>
-			<<if canSee($activeSlave)>>Looking at<<else>>Turning to<</if>> the phallus that will feed $him, $he inserts a finger into its faux urethra, measuring how fast it can pour nutrition in $him.
+			<<if canSee(getSlave($AS))>>Looking at<<else>>Turning to<</if>> the phallus that will feed $him, $he inserts a finger into its faux urethra, measuring how fast it can pour nutrition in $him.
 		<</if>>
 		$He strokes the dildo that will keep $him pregnant like a lover, which, of course, it's about to be.
 	<</if>>
 	<br><br>
-	<<if (hasAnyArms($activeSlave))>>
+	<<if (hasAnyArms(getSlave($AS)))>>
 		$He strips and climbs into the machine's embrace, shaking with nerves.
 	<<else>>
 		Another slave helps $him strip and lays $him in the machine. $He shakes with nerves.
 	<</if>>
-	<<if $activeSlave.pregKnown == 1>>
-		$He <<if canSee($activeSlave)>>cranes around to look at<<else>>runs a hand down<</if>> $his already-pregnant belly, and looks impatient.
-		<<if !canTalk($activeSlave)>>
+	<<if getSlave($AS).pregKnown == 1>>
+		$He <<if canSee(getSlave($AS))>>cranes around to look at<<else>>runs a hand down<</if>> $his already-pregnant belly, and looks impatient.
+		<<if !canTalk(getSlave($AS))>>
 			$He mouths 'hurry up, I need room.'
 		<<else>>
 			"Hurry up, I need the room," $he whispers.
 		<</if>>
 	<<else>>
-		$He <<if canSee($activeSlave)>>cranes around to look at<<else>>runs a hand down<</if>> $his belly, and looks impatient.
-		<<if !canTalk($activeSlave)>>
+		$He <<if canSee(getSlave($AS))>>cranes around to look at<<else>>runs a hand down<</if>> $his belly, and looks impatient.
+		<<if !canTalk(getSlave($AS))>>
 			$He mouths 'come on, I'm ready.'
 		<<else>>
 			"Come on, I'm ready," $he whispers.
 		<</if>>
 	<</if>>
 
-<<elseif $activeSlave.devotion > 95>> /* GETTING IN */
+<<elseif getSlave($AS).devotion > 95>> /* GETTING IN */
 
 	As $he realizes $his fate, the worshipful slave squares $his shoulders, steeling $himself.
-	<<if canTalk($activeSlave)>>
+	<<if canTalk(getSlave($AS))>>
 		"<<Master>>," $he <<say>>s, "I will do my best to <<s>>erve you."
 	<<else>>
 		$He gestures that $he'll do $his best for you.
 	<</if>>
-	<<if canWalk($activeSlave)>>
+	<<if canWalk(getSlave($AS))>>
 		$He steps over to the machine.
 	<</if>>
-	<<if canSee($activeSlave)>>
+	<<if canSee(getSlave($AS))>>
 		$He looks it over clinically,
-	<<elseif hasAnyArms($activeSlave)>>
+	<<elseif hasAnyArms(getSlave($AS))>>
 		$He runs a hand over it exploratively,
 	<<else>>
 		$He takes a deep breath,
 	<</if>>
 	getting $himself into the right mindset.
-	<<if (hasAnyArms($activeSlave))>>
+	<<if (hasAnyArms(getSlave($AS)))>>
 		<<if ($dairyStimulatorsSetting > 1)>>
 			$He gauges the size of the massive phallus that will soon penetrate $his anus. It's broader than $his fist.
-			<<if canTalk($activeSlave)>>
+			<<if canTalk(getSlave($AS))>>
 				"I think I can take thi<<s>>. It'll be tough, but I'll need all the hydration I can get."
 			<<else>>
 				$He nods $his head, understanding that it will need to fit to keep $him hydrated.
 			<</if>>
 		<</if>>
-		<<if ($dairyPregSetting > 1) && isFertile($activeSlave) && $activeSlave.mpreg != 1>>
+		<<if ($dairyPregSetting > 1) && isFertile(getSlave($AS)) && getSlave($AS).mpreg != 1>>
 			$He considers the enormous dildo that will fill $him with cum when $he's fertile, and switch to ejaculating drugs when $he conceives.
-			<<if canTalk($activeSlave)>>
+			<<if canTalk(getSlave($AS))>>
 				"I'll be a mother to a whole generation of <<s>>lave<<s>>," $he <<say>>s proudly, taking strength from it.
 			<<else>>
 				$He takes strength in knowing that $he'll birth a whole generation of new slaves.
@@ -135,7 +135,7 @@ When $activeSlave.slaveName reports to the dairy, it's to the <<if canSee($activ
 		<</if>>
 		<<if ($dairyFeedersSetting > 1)>>
 			$He moves $his hand to the dildo that will occupy $his throat, feeding $him.
-			<<if canTalk($activeSlave)>>
+			<<if canTalk(getSlave($AS))>>
 				"I will need my mouth to take in a<<s>> much food a<<s>> I can," $he <<say>>s. "I won't be able to talk. <<S>>o, I'll <<s>>ay it one la<<s>>t time, <<Master>>: I love you."
 			<<else>>
 				$He focuses on just how much time $he'll need to spend with $his mouth full, so $he blows you one final kiss to show $his love.
@@ -143,36 +143,36 @@ When $activeSlave.slaveName reports to the dairy, it's to the <<if canSee($activ
 		<</if>>
 	<</if>>
 	<br><br>
-	<<if (hasAnyArms($activeSlave))>>
+	<<if (hasAnyArms(getSlave($AS)))>>
 		$He strips and climbs into the machine's embrace.
 	<<else>>
 		Another slave helps $him strip and lays $him in the machine.
 	<</if>>
-	$He does not hesitate or <<if canSee($activeSlave)>>glance back at<<else>>show any resistance to<</if>> you. You stand by as the straps automatically tighten, robbing $him of the ability to move.
-	<<if canTalk($activeSlave)>>
+	$He does not hesitate or <<if canSee(getSlave($AS))>>glance back at<<else>>show any resistance to<</if>> you. You stand by as the straps automatically tighten, robbing $him of the ability to move.
+	<<if canTalk(getSlave($AS))>>
 		"<<Master>>," $he <<say>>s quietly, "I will try to be <<s>>trong enough to <<s>>tand up to thi<<s>>. But if I'm not, and I forget too much, plea<<s>>e leave me in here <<s>>o I can be u<<s>>eful."
 	<<else>>
 		$He swears to you that $he will try $his best, but implores you to leave $him to the machine should $his mind fade.
 	<</if>>
 
-<<elseif $activeSlave.devotion > 60>>
+<<elseif getSlave($AS).devotion > 60>>
 
 	As $he realizes $his fate, the tears come quickly.
-	<<if canTalk($activeSlave)>>
+	<<if canTalk(getSlave($AS))>>
 		"<<Master>>," $he <<say>>s quietly, "i<<s>> thi<<s>> for me?"
 	<<else>>
 		$He shakily gestures if this is where $he will be staying.
 	<</if>>
-	<<if canSee($activeSlave)>>
+	<<if canSee(getSlave($AS))>>
 		You nod, and $he
-		<<if canWalk($activeSlave)>>
+		<<if canWalk(getSlave($AS))>>
 			steps over to the machine.
 		<<else>>
 			accepts $his fate.
 		<</if>>
-	<<elseif canHear($activeSlave)>>
+	<<elseif canHear(getSlave($AS))>>
 		You tell $him it is as $he
-		<<if canWalk($activeSlave)>>
+		<<if canWalk(getSlave($AS))>>
 			steps over to the machine.
 		<<else>>
 			accepts $his fate.
@@ -180,19 +180,19 @@ When $activeSlave.slaveName reports to the dairy, it's to the <<if canSee($activ
 	<<else>>
 		place a hand on $his shoulder in confirmation and guide $him to the machine.
 	<</if>>
-	<<if (hasAnyArms($activeSlave))>>
+	<<if (hasAnyArms(getSlave($AS)))>>
 		$He lightly traces its gleaming metal, looking wistful.
 		<<if ($dairyStimulatorsSetting > 1)>>
 			$He gently touches the head of the massive phallus that will soon penetrate $his anus. It's broader than $his fist.
-			<<if canTalk($activeSlave)>>
+			<<if canTalk(getSlave($AS))>>
 				"M-my butthole i<<s>>n't going to be any good for anal after thi<<s>>."
 			<<else>>
 				$He gestures jokingly that nothing will fit $his rear hole after this.
 			<</if>>
 		<</if>>
-		<<if ($dairyPregSetting > 1) && isFertile($activeSlave) && $activeSlave.mpreg != 1>>
+		<<if ($dairyPregSetting > 1) && isFertile(getSlave($AS)) && getSlave($AS).mpreg != 1>>
 			$He considers the enormous dildo that will fill $him with cum when $he's fertile, and switch to ejaculating drugs when $he conceives.
-			<<if canTalk($activeSlave)>>
+			<<if canTalk(getSlave($AS))>>
 				"I gue<<ss>> that thing won't have any trouble reaching my <<c>>ervi<<x>>."
 			<<else>>
 				$He knows it won't have any trouble getting $him pregnant.
@@ -200,7 +200,7 @@ When $activeSlave.slaveName reports to the dairy, it's to the <<if canSee($activ
 		<</if>>
 		<<if ($dairyFeedersSetting > 1)>>
 			$He moves $his hand to the dildo that will occupy $his throat, feeding $him.
-			<<if canTalk($activeSlave)>>
+			<<if canTalk(getSlave($AS))>>
 				"I-I won't be able to t-talk m-much," $he <<say>>s sadly. "<<S>>-<<s>>o, I'll <<s>>ay it one la<<s>>t time, <<Master>>: I love you."
 			<<else>>
 				$He knows $he won't have another chance at this, so $he gives you one last tearful 'I love you'.
@@ -208,31 +208,31 @@ When $activeSlave.slaveName reports to the dairy, it's to the <<if canSee($activ
 		<</if>>
 	<</if>>
 	<br><br>
-	<<if (hasAnyArms($activeSlave))>>
-		$He <<if $activeSlave.clothes != "no clothing">>strips and<</if>> climbs into the machine's embrace.
+	<<if (hasAnyArms(getSlave($AS)))>>
+		$He <<if getSlave($AS).clothes != "no clothing">>strips and<</if>> climbs into the machine's embrace.
 	<<else>>
-		Another slave helps $him <<if $activeSlave.clothes != "no clothing">>strip and lays $him in<<else>>into<</if>> the machine.
+		Another slave helps $him <<if getSlave($AS).clothes != "no clothing">>strip and lays $him in<<else>>into<</if>> the machine.
 	<</if>>
-	<<if canTalk($activeSlave)>>
+	<<if canTalk(getSlave($AS))>>
 		"<<Master>>," $he gasps out, the tears coming fast now. "C-can you
-		<<if (hasAnyArms($activeSlave))>>
+		<<if (hasAnyArms(getSlave($AS)))>>
 			h-hold my h-hand while it a-activate<<s>>? Plea<<s>>e?" You take $his hand as the straps automatically tighten, robbing $him of the ability to move. $He grips your hand tightly.
 		<<else>>
 			<<S>>-<<s>>tay with me while it activate<<s>>? Plea<<s>>e?" You stand by as the straps automatically tighten, robbing $him of the ability to move.
 		<</if>>
 	<<else>>
 		You can tell by the tears streaming down $his face that $he doesn't want to leave you so soon.
-		<<if (hasAnyArms($activeSlave))>>
+		<<if (hasAnyArms(getSlave($AS)))>>
 			You take $his hand as the straps automatically tighten, robbing $him of the ability to move. $He grips your hand tightly.
 		<<else>>
 			You stand by as the straps automatically tighten, robbing $him of the ability to move.
 		<</if>>
 	<</if>>
 
-<<elseif $activeSlave.devotion > 20>>
+<<elseif getSlave($AS).devotion > 20>>
 
 	$He desperately tries to be brave and obey, but as $his fate dawns on $him, $his courage and conditioning fail $him.
-	<<if (!hasAnyLegs($activeSlave))>>
+	<<if (!hasAnyLegs(getSlave($AS)))>>
 		$He tries to wriggle away from the machine, so
 	<<else>>
 		$He turns and tries to run, so
@@ -243,20 +243,20 @@ When $activeSlave.slaveName reports to the dairy, it's to the <<if canSee($activ
 		you are
 	<</if>>
 	obliged to
-	<<if (!isAmputee($activeSlave))>>
+	<<if (!isAmputee(getSlave($AS)))>>
 		subdue $him and strap $him,
 	<<else>>
 		place $him,
 	<</if>>
 	begging and sobbing, into the machine's embrace.
-	<<if canTalk($activeSlave)>>
+	<<if canTalk(getSlave($AS))>>
 		"Plea<<s>>e, <<Master>>!" $he begs. "Plea<<s>>e no!
 		<<if ($dairyStimulatorsSetting > 1)>>
 			I-it'll fuck my b-butthole <<s>>o wide I'll be u<<s>>ele<<ss>> for anal!
 		<</if>>
-		<<if ($dairyPregSetting > 2) && isFertile($activeSlave) && $activeSlave.mpreg != 1>>
+		<<if ($dairyPregSetting > 2) && isFertile(getSlave($AS)) && getSlave($AS).mpreg != 1>>
 			My w-womb c-c-can't take it! I'll b-bur<<s>>t! And m-my c-c-cunt will be ruined from the dildo and birthing!
-		<<elseif ($dairyPregSetting > 1) && isFertile($activeSlave) && $activeSlave.mpreg != 1>>
+		<<elseif ($dairyPregSetting > 1) && isFertile(getSlave($AS)) && getSlave($AS).mpreg != 1>>
 			M-my c-c-cunt will be <<s>>-<<s>>o <<s>>tretched from the dildo and birthing!
 		<</if>>
 		I'll d-do anything!"
@@ -267,10 +267,10 @@ When $activeSlave.slaveName reports to the dairy, it's to the <<if canSee($activ
 <<else>>
 
 	$He starts to weep as soon as $he realizes $his fate.
-	<<if $activeSlave.trust >= -20>>
+	<<if getSlave($AS).trust >= -20>>
 		$He is afraid of you, but not afraid enough that $he will not resist this.
 	<</if>>
-	<<if (hasAnyLegs($activeSlave))>>
+	<<if (hasAnyLegs(getSlave($AS)))>>
 		$He tries to wriggle away from the machine, so
 	<<else>>
 		$He turns and tries to run, so
@@ -281,21 +281,21 @@ When $activeSlave.slaveName reports to the dairy, it's to the <<if canSee($activ
 		you are
 	<</if>>
 	obliged to
-	<<if (!isAmputee($activeSlave))>>
+	<<if (!isAmputee(getSlave($AS)))>>
 		subdue $him and strap $him,
 	<<else>>
 		place $him,
 	<</if>>
 	begging and sobbing, into the machine's embrace.
 
-	<<if canTalk($activeSlave)>>
+	<<if canTalk(getSlave($AS))>>
 		"Plea<<s>>e, <<Master>>!" $he begs. "Plea<<s>>e no!
 		<<if ($dairyStimulatorsSetting > 1)>>
 			I-it'll fuck my b-butthole so loo<<s>>e I'll be u<<s>>ele<<ss>> for anal! I p-promi<<s>>e I'll be a good little bitch from now on!
 		<</if>>
-		<<if ($dairyPregSetting > 2) && isFertile($activeSlave) && $activeSlave.mpreg != 1>>
+		<<if ($dairyPregSetting > 2) && isFertile(getSlave($AS)) && getSlave($AS).mpreg != 1>>
 			My w-womb c-c-can't take that many babie<<s>>! I'll b-bur<<s>>t! M-my c-c-cunt can't t-take that dildo either! I d-don't want to g-get p-pregnant over and over...
-		<<elseif ($dairyPregSetting > 1) && isFertile($activeSlave) && $activeSlave.mpreg != 1>>
+		<<elseif ($dairyPregSetting > 1) && isFertile(getSlave($AS)) && getSlave($AS).mpreg != 1>>
 			M-my c-c-cunt can't t-take that dildo! I d-don't want to g-get p-pregnant over and over...
 		<</if>>
 		I'll d-do anything!"
@@ -305,31 +305,31 @@ When $activeSlave.slaveName reports to the dairy, it's to the <<if canSee($activ
 
 <</if>> /* CLOSES DEVOTION */
 
-<<if $activeSlave.lactation > 0>>
-	A big soft cup attaches itself <<if $activeSlave.nipples == "fuckable">>over<<else>>to<</if>> each of $his nipples.
-	<<if ($activeSlave.nipples == "inverted")>>
+<<if getSlave($AS).lactation > 0>>
+	A big soft cup attaches itself <<if getSlave($AS).nipples == "fuckable">>over<<else>>to<</if>> each of $his nipples.
+	<<if (getSlave($AS).nipples == "inverted")>>
 		$He gasps with pain as suction unceremoniously hauls $his inverted nipples down into the cups.
-	<<elseif ($activeSlave.nipples == "fuckable")>>
+	<<elseif (getSlave($AS).nipples == "fuckable")>>
 		$He gasps with surprise as a phallic rods unceremoniously slip into $his nipples to better harvest $his milk.
 	<</if>>
 <</if>>
-<<if $activeSlave.balls > 0>>
-	<<if $activeSlave.dick > 0>>
+<<if getSlave($AS).balls > 0>>
+	<<if getSlave($AS).dick > 0>>
 		The first drugs hiss into $him,
-		<<if $activeSlave.dick > 8>>
+		<<if getSlave($AS).dick > 8>>
 			and $his eyes roll back as much of $his blood volume rushes into $his dick, though it remains soft.
-		<<elseif $activeSlave.dick > 6>>
+		<<elseif getSlave($AS).dick > 6>>
 			and $he goes limp as much of $his blood volume rushes to bring $him to half mast.
 		<<else>>
 			bringing $him to a full erection.
 		<</if>>
 		$He gasps as the warm, wet receptacle surrounds $his cock.
 	<<else>>
-		<<if $activeSlave.lactation > 0>>Another<<else>>A big soft<</if>> cup is placed against $his little front cumhole.
+		<<if getSlave($AS).lactation > 0>>Another<<else>>A big soft<</if>> cup is placed against $his little front cumhole.
 	<</if>>
 <</if>>
 A visor lowers onto $his face to keep $his mind at least minimally stimulated.
-<<if canHear($activeSlave) && !canSee($activeSlave)>>
+<<if canHear(getSlave($AS)) && !canSee(getSlave($AS))>>
 	It will play audio from
 <<else>>
 	It will display garish
@@ -338,34 +338,34 @@ hardcore pornography featuring
 <<if ($dairyFeedersSetting > 1)>>
 	throatfucking, cum swallowing,
 <</if>>
-<<if ($dairyPregSetting > 1) && isFertile($activeSlave) && $activeSlave.mpreg != 1>>
+<<if ($dairyPregSetting > 1) && isFertile(getSlave($AS)) && getSlave($AS).mpreg != 1>>
 	bareback vaginal sex, pregnancy, childbirth,
 <</if>>
-<<if ($activeSlave.balls > 0)>>
+<<if (getSlave($AS).balls > 0)>>
 	cumming cocks, anal stimulation,
 <</if>>
-<<if ($activeSlave.lactation > 0)>>
+<<if (getSlave($AS).lactation > 0)>>
 	breast expansion, women being milked,
 <</if>>
 and brutal sodomy.
-<<if !canHear($activeSlave) && !canSee($activeSlave)>>
+<<if !canHear(getSlave($AS)) && !canSee(getSlave($AS))>>
 	Of course, $he won't enjoy any of that and will be left entirely at the mercy of the sensations running through $his flesh.
 <</if>>
 <br><br>
 
-<<if ($activeSlave.anus < 3) || (($activeSlave.vagina < 3) && ($activeSlave.vagina > -1))>>
-	<<set $activeSlave.anus = 3>>
-	<<if $activeSlave.vagina > -1>><<set $activeSlave.vagina = 3>><</if>>
+<<if (getSlave($AS).anus < 3) || ((getSlave($AS).vagina < 3) && (getSlave($AS).vagina > -1))>>
+	<<set getSlave($AS).anus = 3>>
+	<<if getSlave($AS).vagina > -1>><<set getSlave($AS).vagina = 3>><</if>>
 	The machine detects that $he requires the attention of the preparatory raper before it can penetrate $him successfully, and holds $him in place while the raper slides along its track in the ceiling. It comes to rest above the slave's defenseless body and extends its implements towards $him. $He can't see or hear it, but $he senses that something's happening and shivers.
-	<<if ($dairyPregSetting > 1) && ($dairyPregSetting > 1) && isFertile($activeSlave) && ($activeSlave.vagina < 3) && $activeSlave.mpreg != 1>>
-		$His pussy is nowhere near ready to accept the passage of drugs and cum in and new slaves out. The new machine lubes $him thoroughly and then <<if $activeSlave.vagina == 0>>takes $his virginity<<else>>starts to fuck $him<</if>> with a reasonably sized dildo.
+	<<if ($dairyPregSetting > 1) && ($dairyPregSetting > 1) && isFertile(getSlave($AS)) && (getSlave($AS).vagina < 3) && getSlave($AS).mpreg != 1>>
+		$His pussy is nowhere near ready to accept the passage of drugs and cum in and new slaves out. The new machine lubes $him thoroughly and then <<if getSlave($AS).vagina == 0>>takes $his virginity<<else>>starts to fuck $him<</if>> with a reasonably sized dildo.
 	<</if>>
-	<<if ($dairyStimulatorsSetting > 1) && ($activeSlave.anus < 3)>>
-		$He'll be drinking through $his mouth almost constantly, but that won't be enough. $He'll have to absorb hydration and nutrition from both ends to keep up with the outflow $he'll produce. <<if ($dairyPregSetting > 1) && ($dairyPregSetting > 1) && isFertile($activeSlave) && ($activeSlave.vagina < 3) && $activeSlave.mpreg != 1>>It<<else>>The new machine<</if>> fills $his ass with lube and then penetrates $his <<if $activeSlave.anus == 0>>virgin anus<<else>>rectum<</if>> gently.
+	<<if ($dairyStimulatorsSetting > 1) && (getSlave($AS).anus < 3)>>
+		$He'll be drinking through $his mouth almost constantly, but that won't be enough. $He'll have to absorb hydration and nutrition from both ends to keep up with the outflow $he'll produce. <<if ($dairyPregSetting > 1) && ($dairyPregSetting > 1) && isFertile(getSlave($AS)) && (getSlave($AS).vagina < 3) && getSlave($AS).mpreg != 1>>It<<else>>The new machine<</if>> fills $his ass with lube and then penetrates $his <<if getSlave($AS).anus == 0>>virgin anus<<else>>rectum<</if>> gently.
 	<</if>>
 	$He's worked in gradually, but every time $he's loosened just slightly, the now-inadequate dildo is replaced by a larger one, and eventually more than one.
-	<<if ($dairyPregSetting > 1) && isFertile($activeSlave) && ($activeSlave.vagina < 3) && $activeSlave.mpreg != 1>>
-		<<if ($dairyStimulatorsSetting > 1) && ($activeSlave.anus < 3)>>
+	<<if ($dairyPregSetting > 1) && isFertile(getSlave($AS)) && (getSlave($AS).vagina < 3) && getSlave($AS).mpreg != 1>>
+		<<if ($dairyStimulatorsSetting > 1) && (getSlave($AS).anus < 3)>>
 			$He goes from a dildo in the pussy and a dildo in the ass, through numerous interesting combinations of double penetration, until $he's got two porn star sized dildos sliding in and out of $his pussy and two more fucking $his ass.
 		<<else>>
 			$His womanhood goes from a normal dildo to a big dildo to two dildos, and so on, until $he's taking the equivalent of two porn star cocks.
@@ -374,36 +374,36 @@ and brutal sodomy.
 		$His asshole goes from a normal dildo to a big dildo to two dildos, and so on, until $he's taking the equivalent of two porn star cocks up the butt.
 	<</if>>
 	This is a long process, and though
-	<<if $activeSlave.devotion > 95>>
+	<<if getSlave($AS).devotion > 95>>
 		$he started out getting off on it,
-	<<elseif $activeSlave.devotion > 60>>
+	<<elseif getSlave($AS).devotion > 60>>
 		$he did $his best to enjoy $himself for a while,
-	<<elseif $activeSlave.devotion > 20>>
+	<<elseif getSlave($AS).devotion > 20>>
 		$he tried to relax and make it easier on $himself at the start,
 	<<else>>
 		$he cried and tried to break loose for a while,
 	<</if>>
-	$he's slumped against the machine from sheer exhaustion by the end. Its work completed, the preparatory raper withdraws and lets the milking machine begin its work. It's only been a few hours since $activeSlave.slaveName's ordeal began, but now $he's ready to begin giving back. The machine revives $him with a hit of pharmaceuticals.
+	$he's slumped against the machine from sheer exhaustion by the end. Its work completed, the preparatory raper withdraws and lets the milking machine begin its work. It's only been a few hours since <<= getSlave($AS).slaveName>>'s ordeal began, but now $he's ready to begin giving back. The machine revives $him with a hit of pharmaceuticals.
 	<br><br>
 <</if>>
 
-<<if ($dairyPregSetting > 1) && isFertile($activeSlave) && $activeSlave.mpreg != 1>>
-	$His vagina goes first. $He relaxes $his loose cunt for the elephantine dildo, but despite $his best efforts, it forces a gasp out of $him as it slides in. It remains stationary for now, but $activeSlave.slaveName know it's just the beginning, and $he already feels full to bursting.
-	<<if $activeSlave.devotion > 95>>
+<<if ($dairyPregSetting > 1) && isFertile(getSlave($AS)) && getSlave($AS).mpreg != 1>>
+	$His vagina goes first. $He relaxes $his loose cunt for the elephantine dildo, but despite $his best efforts, it forces a gasp out of $him as it slides in. It remains stationary for now, but <<= getSlave($AS).slaveName>> know it's just the beginning, and $he already feels full to bursting.
+	<<if getSlave($AS).devotion > 95>>
 		$He takes more deep breaths, doing $his best to remain calm.
-	<<elseif $activeSlave.devotion > 60>>
+	<<elseif getSlave($AS).devotion > 60>>
 		Terrified, $he cries harder.
-	<<elseif $activeSlave.devotion > 20>>
+	<<elseif getSlave($AS).devotion > 20>>
 		Terrified, $he cries harder.
 	<<else>>
-		Terrified, $he starts to <<if !canTalk($activeSlave)>>soundlessly <</if>>scream and cry.
+		Terrified, $he starts to <<if !canTalk(getSlave($AS))>>soundlessly <</if>>scream and cry.
 	<</if>>
-<<elseif ($dairyPregSetting > 0) && isFertile($activeSlave) && $activeSlave.mpreg != 1>>
-	<<if $activeSlave.devotion > 95>>
+<<elseif ($dairyPregSetting > 0) && isFertile(getSlave($AS)) && getSlave($AS).mpreg != 1>>
+	<<if getSlave($AS).devotion > 95>>
 		$He moans with pleasure
-	<<elseif $activeSlave.devotion > 60>>
+	<<elseif getSlave($AS).devotion > 60>>
 		$He gasps
-	<<elseif $activeSlave.devotion > 20>>
+	<<elseif getSlave($AS).devotion > 20>>
 		$He moans with fear
 	<<else>>
 		$He moans with anguish
@@ -412,29 +412,29 @@ and brutal sodomy.
 <</if>>
 <<if ($dairyStimulatorsSetting > 1)>>
 	$His anus is next. An auxiliary dildo the size of the largest human cocks goes first, assraping $him so hard $he'd probably be injured if $he wasn't already very loose.
-	<<if $activeSlave.devotion > 95>>
+	<<if getSlave($AS).devotion > 95>>
 		$He relaxes and does $his best to enjoy $himself, $his cheeks flushing with arousal. Once $his sphincter is well stretched, the machine withdraws the dildo, and before $his anus can begin to close, the machine replaces it with the main instrument. Despite the preparation, it's so huge that $he moans with fear $he feels the head touch $his buttocks. The moan becomes a long low groan as $his butthole accommodates the enormous thing. When it's all the way in, the dildo begins to withdraw for its first stroke, and $he
-		<<if canTalk($activeSlave)>>
+		<<if canTalk(getSlave($AS))>>
 			whispers, "<<Master>>, it's <<s>>-<<s>>o b-big." $He relaxes and recollects $himself, and then adds, "I can do thi<<s>>."
 		<<else>>
 			begins distressing over its size before relaxing and recollecting $himself. $He smiles to show you $he can do this.
 		<</if>>
-	<<elseif $activeSlave.devotion > 60>>
-		$He tries to <<if $activeSlave.skill.anal > 10>>apply $his anal training<<else>>relax<</if>>, but it fucks $his butt so mercilessly that $he eventually gives up and relaxes completely. This is what the machine was aiming for; it withdraws the dildo, and before $his sphincter can close, it replaces it with the main instrument. Despite the preparation, it's so huge that $he begins to <<if !canTalk($activeSlave)>>silently <</if>>scream in terror as $he feels the head touch $his buttocks. $His
-		<<if canTalk($activeSlave)>>
+	<<elseif getSlave($AS).devotion > 60>>
+		$He tries to <<if getSlave($AS).skill.anal > 10>>apply $his anal training<<else>>relax<</if>>, but it fucks $his butt so mercilessly that $he eventually gives up and relaxes completely. This is what the machine was aiming for; it withdraws the dildo, and before $his sphincter can close, it replaces it with the main instrument. Despite the preparation, it's so huge that $he begins to <<if !canTalk(getSlave($AS))>>silently <</if>>scream in terror as $he feels the head touch $his buttocks. $His
+		<<if canTalk(getSlave($AS))>>
 			yelling becomes a drawn-out shriek
 		<<else>>
 			pointless yelling turns to struggling
 		<</if>>
 		as $his butthole accommodates the enormous thing. When $he finally runs out of breath and slumps within $his restraints, the dildo begins to withdraw for its first stroke, and $he
-		<<if canTalk($activeSlave)>>
+		<<if canTalk(getSlave($AS))>>
 			whispers, "<<Master>>, it'<<s>> too b-big. It hu-hurt<<s>>."
 		<<else>>
 			attempts to tell you that it is too big for $his hole.
 		<</if>>
-	<<elseif $activeSlave.devotion > 20>>
-		Crying, $he tries to <<if $activeSlave.skill.anal > 10>>apply $his anal training<<else>>relax<</if>>, but it fucks $his butt so mercilessly that $he eventually gives up and relaxes completely. This is what the machine was aiming for; it withdraws the dildo, and before $his sphincter can close, it replaces it with the main instrument. Despite the preparation, it's so huge that $he begins to beg desperately as $he feels the head touch $his buttocks. $His
-		<<if canTalk($activeSlave)>>
+	<<elseif getSlave($AS).devotion > 20>>
+		Crying, $he tries to <<if getSlave($AS).skill.anal > 10>>apply $his anal training<<else>>relax<</if>>, but it fucks $his butt so mercilessly that $he eventually gives up and relaxes completely. This is what the machine was aiming for; it withdraws the dildo, and before $his sphincter can close, it replaces it with the main instrument. Despite the preparation, it's so huge that $he begins to beg desperately as $he feels the head touch $his buttocks. $His
+		<<if canTalk(getSlave($AS))>>
 			whining becomes a drawn-out shriek
 		<<else>>
 			soundless whining turns to struggling
@@ -442,40 +442,40 @@ and brutal sodomy.
 		as $his butthole accommodates the enormous thing. When $he finally runs out of breath and slumps within $his restraints, the dildo begins to withdraw for its first stroke, and $he is racked with sobs.
 	<<else>>
 		$He obviously thinks this is what $his butt will suffer, and doesn't like it. $He's tragically wrong. When $he finally relaxes, the machine withdraws the dildo, and before $his sphincter can close, it replaces it with the main instrument.
-		<<if canTalk($activeSlave)>>
+		<<if canTalk(getSlave($AS))>>
 			$He screams with the horror of realization and begins to beg desperately as $he feels its head touch $his buttocks. $His cries become a drawn-out shriek as $his butthole accommodates the enormous thing.
 		<<else>>
 			$He attempts to fling $himself from the machine with the horror of realization begins to flail desperately as $he feels its head touch $his buttocks. $His efforts double as $his butthole accommodates the enormous thing.
 		<</if>>
 		When $he finally runs out of breath and slumps within $his restraints, the dildo begins to withdraw for its first stroke, and $he is racked with weeping.
 	<</if>>
-	<<if ($dairyPregSetting > 1) && isFertile($activeSlave) && $activeSlave.mpreg != 1>>
+	<<if ($dairyPregSetting > 1) && isFertile(getSlave($AS)) && getSlave($AS).mpreg != 1>>
 		The dildo in $his vagina begins to fuck $him as well. Between $his terribly broadened holes, $his stretched perineum is barely visible at all.
 	<</if>>
 <<elseif ($dairyStimulatorsSetting > 0)>>
-	<<if $activeSlave.devotion > 95>>
+	<<if getSlave($AS).devotion > 95>>
 		$He groans as the machine pushes a big dildo up $his butt and begins to sodomize $him powerfully.
-	<<elseif $activeSlave.devotion > 60>>
+	<<elseif getSlave($AS).devotion > 60>>
 		$He sobs as the machine pushes a big dildo up $his butt and begins to sodomize $him powerfully.
-	<<elseif $activeSlave.devotion > 20>>
+	<<elseif getSlave($AS).devotion > 20>>
 		$He sobs as the machine pushes a big dildo up $his butt and begins to sodomize $him powerfully.
 	<<else>>
 		$He cries as the machine pushes a big dildo up $his butt and begins to sodomize $him powerfully.
 	<</if>>
 <</if>>
 <<if ($dairyFeedersSetting > 1)>>
-	<<if $activeSlave.devotion > 95>>
+	<<if getSlave($AS).devotion > 95>>
 		A manipulator prods $his jaw open and a phallus slides into $his throat, working around for a while to find the optimal position for maximum penetration where $he can still breathe through $his nose. There is a hiss as the food begins rushing through the phallus and down $his throat.
-	<<elseif $activeSlave.devotion > 60>>
-		<<if canTalk($activeSlave)>>
+	<<elseif getSlave($AS).devotion > 60>>
+		<<if canTalk(getSlave($AS))>>
 			$He tries to say something, but $he left it too late.
 		<</if>>
 		A manipulator forces $his jaw open and a phallus slides into $his throat, working around for a while to find the optimal position for maximum penetration where $he can still breathe through $his nose. There is a hiss as the food begins rushing through the phallus and down $his throat.
-	<<elseif $activeSlave.devotion > 20>>
+	<<elseif getSlave($AS).devotion > 20>>
 		$His crying is abruptly cut off as a manipulator forces $his jaw open and a phallus slides into $his throat, working around for a while to find the optimal position for maximum penetration where $he can still breathe through $his nose.
 	<<else>>
 		$He cries hopelessly,
-		<<if canTalk($activeSlave)>>
+		<<if canTalk(getSlave($AS))>>
 			"I'm n-never going t-to leave h-here, am I, —" $His noise
 		<<else>>
 			until $his sobbing
@@ -483,18 +483,18 @@ and brutal sodomy.
 		is abruptly cut off as a manipulator forces $his jaw open and a phallus slides into $his throat, working around for a while to find the optimal position for maximum penetration where $he can still breathe through $his nose.
 	<</if>>
 <<elseif ($dairyFeedersSetting > 0)>>
-	<<if $activeSlave.devotion > 95>>
+	<<if getSlave($AS).devotion > 95>>
 		The machine gives $him a phallus to suck on.
-	<<elseif $activeSlave.devotion > 60>>
-		<<if canTalk($activeSlave)>>
+	<<elseif getSlave($AS).devotion > 60>>
+		<<if canTalk(getSlave($AS))>>
 			$He tries to say something, but $he left it too late.
 		<</if>>
 		The machine gives $him a phallus to suck on.
-	<<elseif $activeSlave.devotion > 20>>
+	<<elseif getSlave($AS).devotion > 20>>
 		$His crying is abruptly cut off as the machine gives $him a phallus to suck on.
 	<<else>>
 		$He cries hopelessly,
-		<<if canTalk($activeSlave)>>
+		<<if canTalk(getSlave($AS))>>
 			"I'm n-never going t-to leave h-here, am I, —" $His noise
 		<<else>>
 			until $his sobbing
@@ -510,54 +510,54 @@ With its various applicators inserted and working, the machine begins to ejacula
 <<elseif ($dairyStimulatorsSetting > 0)>>
 	The phallus fucking $his ass ejaculates hydration, nutrition, and medication, to be absorbed by $his colon.
 <</if>>
-<<if ($dairyPregSetting > 1) && isFertile($activeSlave) && $activeSlave.mpreg != 1>>
+<<if ($dairyPregSetting > 1) && isFertile(getSlave($AS)) && getSlave($AS).mpreg != 1>>
 	The dildo in $his vagina ejaculates cum, fertility drugs, and medication designed to cause uncontrollable natural lubrication, so it will not damage $him too severely.
-<<elseif ($dairyPregSetting > 0) && isFertile($activeSlave) && $activeSlave.mpreg != 1>>
+<<elseif ($dairyPregSetting > 0) && isFertile(getSlave($AS)) && getSlave($AS).mpreg != 1>>
 	The dildo in $his vagina ejaculates cum and fertility drugs.
 <</if>>
 <<if ($dairyFeedersSetting > 0)>>
 	There is a hiss as still more fluid containing hydration, nutrition, and medication begins rushing through the phallus in $his mouth and down $his throat.
 <</if>>
 Finally, multiple drug injectors attach themselves to $him and begin to use hypersonic jets to drive pharmaceuticals into $him without needles.
-<<if $activeSlave.devotion > 95>>
-	$His eyes fly wide as $he <<if canHear($activeSlave)>>hears and <</if>>feels the number of injections. $He knows these drugs are not without side effects, and $he's being injected with a normal day's dose every minute. $He musters $his resolve and relaxes again, relying on $his knowledge that you want $him to accept this fate.
-<<elseif $activeSlave.devotion > 60>>
-	$His eyes fly wide and $he stiffens with fear as $he <<if canHear($activeSlave)>>hears and <</if>>feels the number of injections. $He knows these drugs are not without side effects, and $he's being injected with a normal day's dose every minute. $He visibly tries to accept it, knowing that you want $him to submit to this fate.
-<<elseif $activeSlave.devotion > 20>>
-	The tears streaming out of $his eyes come faster as $he <<if canHear($activeSlave)>>hears and <</if>>feels the number of injections. $He knows these drugs are not without side effects, and $he's being injected with a normal day's dose every minute.
+<<if getSlave($AS).devotion > 95>>
+	$His eyes fly wide as $he <<if canHear(getSlave($AS))>>hears and <</if>>feels the number of injections. $He knows these drugs are not without side effects, and $he's being injected with a normal day's dose every minute. $He musters $his resolve and relaxes again, relying on $his knowledge that you want $him to accept this fate.
+<<elseif getSlave($AS).devotion > 60>>
+	$His eyes fly wide and $he stiffens with fear as $he <<if canHear(getSlave($AS))>>hears and <</if>>feels the number of injections. $He knows these drugs are not without side effects, and $he's being injected with a normal day's dose every minute. $He visibly tries to accept it, knowing that you want $him to submit to this fate.
+<<elseif getSlave($AS).devotion > 20>>
+	The tears streaming out of $his eyes come faster as $he <<if canHear(getSlave($AS))>>hears and <</if>>feels the number of injections. $He knows these drugs are not without side effects, and $he's being injected with a normal day's dose every minute.
 <<else>>
-	$He begins to struggle desperately as $he <<if canHear($activeSlave)>>hears and <</if>>feels the number of injections. $He knows these drugs are not without side effects, and $he's being injected with a normal day's dose every minute.
+	$He begins to struggle desperately as $he <<if canHear(getSlave($AS))>>hears and <</if>>feels the number of injections. $He knows these drugs are not without side effects, and $he's being injected with a normal day's dose every minute.
 <</if>>
 <br><br>
 Fluids begin to come out of $him. The drugs are strong, and despite everything $he experiences an orgasm so powerful that it's clear why the straps that bind $him are reinforced.
-<<if $activeSlave.balls > 0>>
-	<<if $activeSlave.dick > 0>>The anal dildo fucks $him even harder<<else>>If $he had a dick, it would be caressed by a nice warm receptacle, but $he doesn't. The milker is forced to rape $his ass without mercy to force $him to cum<</if>>, and $he tries to scream around the dildo in $his mouth. <<if $activeSlave.scrotum > 0>>$His balls tighten as $he<<else>>$He<</if>> shoots rope after rope of semen into the machine.
+<<if getSlave($AS).balls > 0>>
+	<<if getSlave($AS).dick > 0>>The anal dildo fucks $him even harder<<else>>If $he had a dick, it would be caressed by a nice warm receptacle, but $he doesn't. The milker is forced to rape $his ass without mercy to force $him to cum<</if>>, and $he tries to scream around the dildo in $his mouth. <<if getSlave($AS).scrotum > 0>>$His balls tighten as $he<<else>>$He<</if>> shoots rope after rope of semen into the machine.
 <</if>>
-<<if ($activeSlave.vagina > -1)>>
+<<if (getSlave($AS).vagina > -1)>>
 	$He gives the machine a nice gush of femcum.
 <</if>>
-<<if ($activeSlave.lactation > 0)>>
+<<if (getSlave($AS).lactation > 0)>>
 	The cups sucking $his nipples work away ceaselessly, $his milk whitening the clear piping running into the machine.
-	<<set $activeSlave.lactationDuration = 2>>
-	<<set $activeSlave.boobs -= $activeSlave.boobsMilk, $activeSlave.boobsMilk = 0>>
+	<<set getSlave($AS).lactationDuration = 2>>
+	<<set getSlave($AS).boobs -= getSlave($AS).boobsMilk, getSlave($AS).boobsMilk = 0>>
 <</if>>
 The machine continues fucking $him despite $his climax.
-<<if $activeSlave.devotion > 95>>
+<<if getSlave($AS).devotion > 95>>
 	Though it's difficult to tell, it's possible $he's smiling around the dildo in $his mouth. $He may be such a well-broken sex slave that $he can stand up to a life of nothing but drugs, milking, and an endless string of orgasms. To ease $his acclimation to $his new life, the drug cocktail is adjusted as $his orgasm fades,
-<<elseif $activeSlave.devotion > 60>>
+<<elseif getSlave($AS).devotion > 60>>
 	Despite $his attempt to be brave, tears begin to leak out from behind $his visor as $he realizes that there will be no respite from the penetration. The drug cocktail is adjusted as $his orgasm fades,
-<<elseif $activeSlave.devotion > 20>>
+<<elseif getSlave($AS).devotion > 20>>
 	To ease $his acclimation to $his new life, the drug cocktail is adjusted as $his orgasm fades,
 <<else>>
 	To allow $him some rest despite $his terror, the drug cocktail is adjusted as $his orgasm fades,
 <</if>>
 to put $him to sleep. $He slumps against the machine as $he drops off.
-<<if (hasAnyArms($activeSlave))>>$His painfully tight grip on your hand finally loosens<</if>>.
+<<if (hasAnyArms(getSlave($AS)))>>$His painfully tight grip on your hand finally loosens<</if>>.
 <<if ($dairyStimulatorsSetting > 1)>>
 	$His anus has not yet stretched to take the necessary full power setting, so $he is gently sodomized as $he sleeps to get $his sphincter used to its permanent occupier.
 <</if>>
-<<if ($activeSlave.belly < 1500)>>
-	$His belly has already begun to distend from the mass of fluid ejaculated down $his throat and into $his stomach, <<if $activeSlave.ovaries == 1>>inside $his womanhood and into $his womb, and <</if>>up $his butt and into $his lower intestine.
+<<if (getSlave($AS).belly < 1500)>>
+	$His belly has already begun to distend from the mass of fluid ejaculated down $his throat and into $his stomach, <<if getSlave($AS).ovaries == 1>>inside $his womanhood and into $his womb, and <</if>>up $his butt and into $his lower intestine.
 <</if>>
 
 Silence returns to the dairy.
-- 
GitLab