dongding Posted January 17, 2022 Posted January 17, 2022 Hello, short question: Is there a function to determine what type of sex will be started in a script? For example, I am using the SexoutSex mod which lets me start the act with other NPCs by simply pressing a key, and I want the game to always start vaginal sex when pressing the key. I tried using call fnSexoutActSetInt "IsVaginal" 1 but it doesn't seem to work (used like that in the script below): ... elseif player.GetIsSex Female && partnr.GetIsSex Female if player.hasperk SexoutZetaBreeder 0 set rnd to GetRandomPercent if rnd < 50 set SexoutNG.ActorA to player set SexoutNG.ActorB to partnr else set SexoutNG.ActorA to partnr set SexoutNG.ActorB to player endif endif if player.hasperk SexoutZetaBreeder 1 set SexoutNG.ActorA to player set SexoutNG.ActorB to partnr call fnSexoutActSetInt "IsVaginal" 1 endif ... .... partnr.CIOS SexoutBegin
emo877 Posted January 18, 2022 Posted January 18, 2022 I can't help about using function fnSexoutActSetInt "IsVaginal", but i want to improve your script where it deals with "IF" operator. Instead of this fragment if player.hasperk SexoutZetaBreeder 0 set rnd to GetRandomPercent if rnd < 50 set SexoutNG.ActorA to player set SexoutNG.ActorB to partnr else set SexoutNG.ActorA to partnr set SexoutNG.ActorB to player endif endif if player.hasperk SexoutZetaBreeder 1 set SexoutNG.ActorA to player set SexoutNG.ActorB to partnr call fnSexoutActSetInt "IsVaginal" 1 endif i'd suggest such if 1 != player.hasperk SexoutZetaBreeder if 50 > rand 0 99 ;; i hate GetRandomPercent, it's too often NOT random at all. set SexoutNG.ActorA to player set SexoutNG.ActorB to partnr else set SexoutNG.ActorA to partnr set SexoutNG.ActorB to player endif else set SexoutNG.ActorA to player set SexoutNG.ActorB to partnr call fnSexoutActSetInt "IsVaginal" 1 ;; maybe set SexoutNG.isVaginal to 1 ?? endif About sexout functions usage, you may found something in there: the-sexoutng-api-how-to-for-modders
Recommended Posts
Archived
This topic is now archived and is closed to further replies.