Jump to content

Sexlab sexuality in the Creation Kit


BurnyD

Recommended Posts

Posted

Making a mod, and I would love to have it activate depending on the player-chosen sexuality from the Sexlab MCM.  Unfortunately, I don't know how to access that in the Creation Kit or Papyrus (I'm kind of a scripting noob).  Is it possible?  I don't see any globals or factions for it.  I could set a global in the quest script fragments if necessary but I'd need direction on how to access it in Papyrus.

Posted

I have 2 followup questions...

 

1) That says it is set by the partner history, but in the MCM you can select a sexuality.  Does the selected sexuality overwrite the calculated one?  How does that work?

 

2) For NPCs, does sexlab assign sexualities as well?  I think I've read that it does in the past but I just want to be sure.

 

Thanks!

Posted

Also, I'm trying to use this and I'm getting this error  "GetPlayerSexuality is not a function or does not exist"

 

The relevant code is: 

string Sexuality = SexLab.GetPlayerSexuality()
...
SexlabFramework Property Sexlab Auto
 
 
Full code:
 

int Gender = Game.GetPlayer().GetActorBase().GetSex()
string Sexuality = SexLab.GetPlayerSexuality()

if Sexuality == "Bisexual"
OfferMale.SetValue(1)
OfferFemale.SetValue(1)

elseif Sexuality == "Gay"
OfferMale.SetValue(1)
OfferFemale.SetValue(0)

elseif Sexuality == "Lesbian"
OfferMale.SetValue(0)
OfferFemale.SetValue(1)

elseif Sexuality == "Straight"

if Gender == 0
OfferMale.SetValue(0)
OfferFemale.SetValue(1)

elseif Gender == 1
OfferMale.SetValue(1)
OfferFemale.SetValue(0)

endif

endif
...

SexlabFramework Property Sexlab Auto
GlobalVariable Property OfferMale Auto
GlobalVariable Property OfferFemale Auto

Posted

I did some ctrl+f in the SexlabFramework script and found the following functions:

 

GetSexuality()

GetSexualityTitle()

GetPlayerSexualityTitle()

 

No mention of GetPlayerSexuality().

 

Now I need to figure out what values these return.  I'm guessing for my purposes (which I would like to apply to the player and NPCs both if possible) that GetSexuality() or GetSexualityTitle() would be what I need, since GetPlayerSexualityTitle() is just running GetSexualityTitle() on the player.

 

Anyone with more knowledge that can help me out would be appreciated.

Archived

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

  • Recently Browsing   0 members

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