Jump to content

Sexlab trigger strapon for specific race, how?


Seth

Recommended Posts

Posted

So, I wanted to have males use strapons also and I found that if I make the following change to sslthreadcontroller:

 

if SexLab.GetGender(position) <= 1 && Animation.GetGender(slot) == 0 && SexLab.Config.bUseStrapons && Animation.UseStrapon(slot, stage)
SexLab.EquipStrapon(position)
endIf
 
That does the trick, however, now I want only the Nord race to use it, is there a way to add this? I'm really new to modding so if someone could help me with this that would be great!
Posted

Properly:

actor position
if position.GetLeveledActorBase().GetRace() == "Nord"
    ; do stuff
endIf

However I haven't used .GetRace() myself yet so run a test first (e.g. with debug.Notification("...")) to know what .GetRace() returns for a Nord.

Posted

I don't understand where to put that, should that be above the part that I posted or in the same if/endif? Excuse my noobishness.

Posted

This is the complete function by the way:

 

function EquipExtras(actor position)
int slot = GetPosition(position)
form[] extras = Animation.GetExtras(slot)
if extras.Length > 0
int i = 0
while i < extras.Length
if extras != none
position.EquipItem(extras, true, true)
endIf
i += 1
endWhile
endIf
; Strapons are enabled for this position, and they are female in a male position
if SexLab.GetGender(position) <= 1 && Animation.GetGender(slot) == 0 && SexLab.Config.bUseStrapons && Animation.UseStrapon(slot, stage)
SexLab.EquipStrapon(position)
endIf
endFunction
 
Posted

Ugly untested hack:

string raceName = position.GetLeveledActorBase().GetRace().GetName()
if (SexLab.GetGender(position) == 1 && Animation.GetGender(slot) == 0 && SexLab.Config.bUseStrapons && Animation.UseStrapon(slot, stage)) || (StringUtil.Find(raceName, "Nord") != -1)
Guest Jenova23
Posted

Can you post a esp of this plz it would be nice I don't know how to script.

Posted

I'm trying very different specific things.. you should just stick to normal loverslab for it's stabilty I think.

Archived

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

  • Recently Browsing   0 members

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