Jump to content

Determine type of sex via script


Recommended Posts

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
Link to comment

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
 

Edited by emo877
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use