Jump to content

Determine type of sex via script


dongding

Recommended Posts

Posted

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
Posted

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
 

Archived

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

  • Recently Browsing   0 members

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