Jump to content

Question regarding SexLab player gender.


Recommended Posts

Posted

I was wondering, is there a mod I've overlooked that allows SexLab to see you as a "male"?

I'm now giving the Equipable SOS Schlong a go, and I'd like SexLab to recognize my character's schlong in 2 ways:

 

1) Trigger male animations when "masturbating", and...

2) Using the Schlong for SexLab-driven scenes when my character is the "Top", without having to turn off "Females use strapons", so if I'm ever the bottom against a female NPC, the female NPC will wear a strapon from the detected list, but if I swap the roles in the scene I won't equip a strapon since I'll already have a schlong (hope this makes sense).

 

Thanks in advance!

 

P.S.: I seem to recall the "Needs" mod (the one that allows you to bathe) has an option to take the player as "male", but that begs the questions; does that feature actually exist in that mod or am I just thinking of something else? And does it work in the 2 scenarios described above?

Posted

 

 

There is a function in SexLab for exactly this, TreatAsMale(actor a) and TreatAsFemale(actor a)
 
Assuming a female actor:
SexLab.TreatAsMale(FemaleActor)
Will make SexLab treat FemaleActor as a male for everything except voices and expressions.
 
Also if you need to get the "SexLab" gender of an actor, use SexLab's GetGender(actor a)
; // returns 1 (female)
int gender = FemaleActor.GetLeveledActorBase().GetSex()

; // returns 0 (male)
int gender = SexLab.GetGender(FemaleActor)
Lastly, ClearForcedGender(actor a) will return the actors faked gender back to their Skyrim default.

http://www.loverslab.com/topic/18708-sexlab-framework-development-planning-discussion/?p=645416

 

You properly have to code small script that switches your characters SexLab sex to male every time you equip the schlong.

Posted

Thanks for the reply, but I have absolutely no idea how to code. I don't even know what would I even use to write a script or whatever lol. I tried changing an item's slot and even *that*, apparently as easy as it is, I failed miserably <_<

 

So I take it your reply means there isn't currently a mod that does this? That's a shame.

 

I just tested the Private Needs mod as it does have a "Treat as Male" option, but the option in the mod only makes it so that specific mod treat you as a male, specifically so you will play Male animations when it comes to emptying your bladder.

 

Oh well D: I guess I'll wait for someone to make such a mod eventually :P

 

P.S.: Do you have any idea how would I go about making such a little script? Like... is it just a matter of making a txt file, adding that line, saving, giving the txt a different extension name and that's it? or...?

I don't actually think it's -that- simple lol but that's about the only thing I currently would kind of know how to do xD Unless there's some sort of guide for SexLab somewhere that is VERY beginner friendly.

Posted

To be honest I don't know if SexLab saves the SexLab gender indefinitely or just for one animation; if it's the former it would take me just a few minutes to make the PC's SexLab gender selectable via a MCM menu.

Posted
player.SetFactionRank SexLabGenderFaction 0

In console to make player treated as male.

player.SetFactionRank SexLabGenderFaction 1

To make character treated as female

player.SetFactionRank SexLabGenderFaction -1

To clear forced gender and make sexlab use the players default Skyrim gender.

 

Changes to player sexlab gender are permanent until removed with either the above -1 command or SexLab.ClearForcedGender() from script.

Posted
player.SetFactionRank SexLabGenderFaction 0

In console to make player treated as male.

player.SetFactionRank SexLabGenderFaction 1

To make character treated as female

player.SetFactionRank SexLabGenderFaction -1

To clear forced gender and make sexlab use the players default Skyrim gender.

 

Changes to player sexlab gender are permanent until removed with either the above -1 command or SexLab.ClearForcedGender() from script.

 

 

TDF and I (mostly all him) just finished putting together a little plug-in to do this via spell, sadly before I saw that you can do it through the console lol D: but thanks a lot either way!

 

Here is the code used in the spell's script:

Event OnEffectStart(Actor akTarget, Actor akCaster)
int ibutton = MessageBox.Show()
if ibutton == 0
SexLab.TreatAsMale(SexLab.PlayerRef)
elseif ibutton == 1
SexLab.TreatAsFemale(SexLab.PlayerRef)
endif
endEvent

... is that correct? 

If I understand what you just said, I will need to force-reset per se my gender if I ever want to change back? or does that only apply if you're doing the gender swapping through those console commands?

Posted

 

player.SetFactionRank SexLabGenderFaction 0

In console to make player treated as male.

player.SetFactionRank SexLabGenderFaction 1

To make character treated as female

player.SetFactionRank SexLabGenderFaction -1

To clear forced gender and make sexlab use the players default Skyrim gender.

 

Changes to player sexlab gender are permanent until removed with either the above -1 command or SexLab.ClearForcedGender() from script.

 

 

TDF and I (mostly all him) just finished putting together a little plug-in to do this via spell, sadly before I saw that you can do it through the console lol D: but thanks a lot either way!

 

Here is the code used in the spell's script:

Event OnEffectStart(Actor akTarget, Actor akCaster)
int ibutton = MessageBox.Show()
if ibutton == 0
SexLab.TreatAsMale(SexLab.PlayerRef)
elseif ibutton == 1
SexLab.TreatAsFemale(SexLab.PlayerRef)
endif
endEvent

... is that correct? 

If I understand what you just said, I will need to force-reset per se my gender if I ever want to change back? or does that only apply if you're doing the gender swapping through those console commands?

 

 

You should have a 3rd option that clears the forced gender,

Event OnEffectStart(Actor akTarget, Actor akCaster)
	int ibutton = MessageBox.Show()
	if ibutton == 0
		SexLab.TreatAsMale(akTarget)
	elseif ibutton == 1
		SexLab.TreatAsFemale(akTarget)
	elseif ibutton == -1
		SexLab.ClearForcedGender(akTarget)
	endif
endEvent

*doing akTarget instead of SexLab.PlayerRef will let you use the same script on both a self and a targeted spell to change NPCs gender.

 

Posted

That sounds very good :D However I'm still having a little trouble understanding the ClearForced part. So if I were to have the spell as you posted it, if I say changed to Male, and then I wanted to change back to Female I would need to click the third button? Like... clicking the "Female" button wouldn't do a thing yes?

Either way, thanks for the help!

Posted

The first two options force the actor to act like it has said specific gender, the third option uses the gender defined by the game itself.

 

Oh, okay. So I *can* in fact switch from Female to Male back and forth using the Male and Female buttons, I don't actually *need* the force clear button. I gotcha (I think)! Thanks!

Posted

 

The first two options force the actor to act like it has said specific gender, the third option uses the gender defined by the game itself.

 

Oh, okay. So I *can* in fact switch from Female to Male back and forth using the Male and Female buttons, I don't actually *need* the force clear button. I gotcha (I think)! Thanks!

 

 

Say you have a female player character, meaning PlayerRef.GetLeveledActorBase().GetSex() will return a 1 for female, this is Skyrim's default gender detection.

 

TreatAsMale(PlayerRef)

The player is now seen as a "male" in sexlab's eyes, as sexlab will use a special function get gender of characters in place of Skyrims default. They are still a female character, but will be seen as a male in all things sexlab.

 

TreatAsFemale(PlayerRef)

The player is already technically female so using this on them may technically return them to "default" after having used TreatAsMale(PlayerRef) on them. However sexlab is still going to see them as being forced into a gender and do necessary checks on them, furthermore if the player ever does a sexchange from the console or showracemenu, they'll still have that forced gender on them and be viewed as female to sexlab despite now technically being male from Skyrim's point of view.

 

ClearForcedGender(PlayerRef) 

The player is now removed from the sexlab forced gender faction, and sexlab will return to simply using PlayerRef.GetLeveledActorBase().GetSex() when checking their gender.

 

 

 

Essentially all these functions do, is change the output of SexLab.GetGender(actor), which is what sexlab uses to check the sex of people. They don't change the actor in any physical way or how Skyrim itself see's the actor, just SexLab.

 

SexLab.SortActors() would move a female to the back of an array instead of the front if they had TreatAsMale() on them, a male+female animation would return as an animation with 2 females if male had TreatAsFemale() on them. Females being treated as male also don't require the "Use FF Cum" option to be enabled for cum to apply in a 2 female animation, because as far as sexlab knows there's not 2 females, theres 1 male and 1 female.

 

The point is to allow for having "futanari" or "ladyboy" characters in sexlab mods. Where for example you have a female player character with an SOS schlong equipped, so you want them to be used as the male in animations.

Posted

Okay now I really got it lol. Thanks.

So the better option for such a mod would be instead of having 3 buttons, have 2 but the spell would detect the player's default gender; If the player is by Skyrim's default a female, the spell's 2 buttons would be "Male" and "Default"... if anything just to make sure people don't actually go back and forth without ever reverting to default.

Admittedly though this is probably too much for such a tiny little plug-in lol.

 

Either way, again, thanks for being so helpful :)

 

EDIT: Okay, the little mod is done and ready :D

http://www.loverslab.com/topic/26431-sexlab-gender-change-v10/

 

Thanks to you both as well as TheDriedFinger :D

  • 6 months later...
Posted
player.SetFactionRank SexLabGenderFaction 0

In console to make player treated as male.

player.SetFactionRank SexLabGenderFaction 1

To make character treated as female

player.SetFactionRank SexLabGenderFaction -1

To clear forced gender and make sexlab use the players default Skyrim gender.

 

Changes to player sexlab gender are permanent until removed with either the above -1 command or SexLab.ClearForcedGender() from script.

 

 

I'm having an issue with my character not being recognized as male in sexlab animations, but when i try to enter "player.setfactionrank sexlabgenderfaction 0" the console returns "Item 'sexlabgenderfaction' not found for parameter Faction. Compiled script not saved." Any ideas what's going on?

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...