Seth Posted August 31, 2013 Posted August 31, 2013 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!
Someone92 Posted September 1, 2013 Posted September 1, 2013 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.
Seth Posted September 1, 2013 Author Posted September 1, 2013 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.
Seth Posted September 1, 2013 Author Posted September 1, 2013 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 Â
Ashal Posted September 2, 2013 Posted September 2, 2013 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 September 2, 2013 Posted September 2, 2013 Can you post a esp of this plz it would be nice I don't know how to script.
Seth Posted September 2, 2013 Author Posted September 2, 2013 I'm trying very different specific things.. you should just stick to normal loverslab for it's stabilty I think.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.