jb136 Posted August 26, 2022 Posted August 26, 2022 (edited) Long time lurker and down loader. I am not much of a whiz at writing computer code, but I use the CK somewhat and have basic familiarity with xEdit. Does anyone know of a readily available method, either a mod or perhaps an already written script or an xEdit method, that makes all women in the game use the Sexlab bisexual sexuality preference? I'm talking about the option on the Sex Journal page of the sexlab MCM for the actor. I know I can change it manually in game, but that doesn't go between saves. I wouldn't mind doing this manually if anyone knows of a way to make sure that it can be persistent between saves. The reason I ask is because mods like Sexlab Aroused refers to this setting when determining arousal of actors. Other mods make use of this setting as well. Thanks in advance for anyone who would care to help. Edited August 26, 2022 by jb136
jb136 Posted September 4, 2022 Author Posted September 4, 2022 I've been reading this post here, but it looks like the code has changed since this was explored 4 years ago. It looks like the seeding is still done in sslActorStats.psc. The code appears to compare partners of a given actor as a ratio, and then use that ratio to determine if the actor is straight, bi, or gay/lesbian. function AdjustSexuality(Actor ActorRef, int Males, int Females) bool IsFemale = GetGender(ActorRef) == 1 float Ratio = _GetSkill(ActorRef, kSexuality) if Ratio == 0.0 Ratio = 80.0 endIf if IsFemale Ratio += (Males - Females) else Ratio += (Females - Males) endIf _SetSkill(ActorRef, kSexuality, ClampFloat(Ratio, 1.0, 100.0) as float) endFunction int function GetSexuality(Actor ActorRef) float Ratio = _GetSkill(ActorRef, kSexuality) if Ratio > 0.0 return Ratio as int else return 100 endIf endFunction string function GetSexualityTitle(Actor ActorRef) float ratio = _GetSkill(ActorRef, kSexuality) ; Return sexuality title if ratio >= 65.0 || ratio == 0.0 return "$SSL_Heterosexual" elseif ratio < 65.0 && ratio > 35.0 return "$SSL_Bisexual" elseif GetGender(ActorRef) == 1 return "$SSL_Lesbian" else return "$SSL_Gay" endIf endFunction bool function IsStraight(Actor ActorRef) return _GetSkill(ActorRef, kSexuality) >= 65.0 endFunction bool function IsBisexual(Actor ActorRef) float ratio = _GetSkill(ActorRef, kSexuality) return ratio < 65.0 && ratio > 35.0 endFunction bool function IsGay(Actor ActorRef) return _GetSkill(ActorRef, kSexuality) <= 35.0 endFunction However, I'm just not versed enough in coding to understand the proper way to change this so that all females will be bi. If someone could offer me some advice, I'd appreciate it. I assume after the code is modified, I would have to compile it into a .pex file. Thanks in advance.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now