Jump to content

Need help/advice with a script


Guest Jezzy

Recommended Posts

Guest Jezzy
Posted

Hello community ^.^

 

 

Firstly, please remember that i'm a novice scripter with the GECK before considering answering my question. I know that my logic isnt probably A-1 but, hey! At least i try ;) LOL

 

So i have this project with SFX and arts and stuff i had in mind for quite a while that i wanted done. I took SexoutLust (lastest version) by ChaseRoxand and added some flavor in it. So far, i have revamped the perks with dds arts, tweaked the npc orgasm script, added man sfx, etc. 
 
I am now working on a SFX manager for the player character in the quest script. This manager will manage the SFX in place of SexoutNG. For example, if you give a BJ, you will heard BJ SFX instead of the generic SFX of moaning of SexoutNG, etc. So far it work pretty well but i cannot figure out how to tell if the sexing is oral, vaginal or anal.
 
I have tried something like this :
 
if( SexoutNG.isOral || Sexout.sextype == Oral )
    if(SexoutNG.ActorB == PlayerREF || Sexout.female == PlayerREF)
      if(playerGivingOral == 0)
	   PrintToConsole "JezzyCumShotScript debug : You are giving a blowjob"
        set playerGivingOral to 1
      endif
    endif
endif

But it doesnt work... 

 

Chase original script does a check but it always get to V/A even if i call a oral scene.

	if ( (playerREF.NX_GetEVFl "Sexout:Core:Sextype:Oral" && playerREF.getItemCount SexoutNGAnimPositionB) == 0 )
			set arousal to arousal + ( ( (getSecondsPassed * ( 1 - ((playerREF.getAV Endurance - 5) * 0.085) ) * sexRateModifier * (1 - ((playerREF.getIsSex Female) * 0.425)) ) / baseSexTime ) * 100 )
			set fSexFatigue to fSexFatigue + ( (getSecondsPassed / baseSexTime) * 100 * 0.201 * (1 - ((playerREF.getIsSex Female) * 0.425)) * (1 - ((playerREF.getAV Endurance - 5) * 0.1) ) * (1 - (rateModifier * 0.001)) )
			;printC "SexoutLust: V/A Sex"
		else
			set fSexFatigue to fSexFatigue + ( (getSecondsPassed / baseSexTime) * 0.1 * (1 - ((playerREF.getAV Endurance - 5) * 0.1) ) * (1 - (rateModifier * 0.001)) )
			;printC "SexoutLust: Giving Oral"
		endif

Anyone have a idea how I can get this information from SexoutNG?

 

Thanks ^.^

Guest Jezzy
Posted

this isnt working either ...

if(playerRef.NX_GetEVFl "Sexout:Start::IsOral" == 1)
			printC "ORAAAAAAAAAAAAAAAAAAAL"
		else
			printC "NOOOOOOOOPE"
		endif
Posted

First post here gives a lot of info on Sexout.  Sometime after the sex starts, Sexout's variables are cleared.  Sometimes you can catch them.  Sometimes you can't.  That's been my experience, anyway.

 

I don't know if you're just looking to activate the sfx if the player is giving or if anyone is giving.  You can look at the SexoutNGMain and SexoutNGEffectBaseScriptF (yes, the F one) to see what variables are allowed.

 

I don't know how much you're changing Lust.  You might be better off using a callback spell like what's mentioned in the thread that I linked you to.

Posted

I'm pretty sure that you can't do a Get_evfl in a conditional.  Try setting a variable to it and putting that variable in the conditional.

 

Set iOralTest to playerRef.NX_GetEVFl "Sexout:Start::IsOral"

if (iOralTest)

Posted

As far as I know, those particular NX Vars are only written to the target of SexoutBegin/SexoutNGBegin... however, spellTarget should be written to all the actors.

 

So first do:

ref refTarget
set refTarget to playerRef.NX_GetEVFo "Sexout:Start::spellTarget"

Then do:

int iOralTest
set iOralTest to refTarget.NX_GetEVFl "Sexout:Start::IsOral"
Posted

Although... I might be wrong... something tells me that they should be written to:

 

ActorB if there is an actor B.

ActorA if there is no actor B.

ActorC if there is no actors A or B.

Guest Jezzy
Posted

I'm pretty sure that you can't do a Get_evfl in a conditional.  Try setting a variable to it and putting that variable in the conditional.

 

Set iOralTest to playerRef.NX_GetEVFl "Sexout:Start::IsOral"

if (iOralTest)

omg thanks! this works! 

Posted

Not to toot my own horn, but Spunk needs to detect all this intel anyway, and sets it as "Spunk:Act:Role:Sucker" EVFLs etc. Very handy that way. I'm also doing my own arousal/orgasm stuff, planting arousal vars etc, so you could just work off my stuff :)

Posted

planting arousal vars etc

 

So that's your plan for world domination, huh?  And funny.  I thought Lust was created by you.

Posted

No, I annexed it and am gradually replacing it, like some big evil corporation ruining your favorite product brand ;)

 

The spelltarget EVFo should be on all actors involved. At least that's what I remember from looking inside nx's csv for a save made during an act.

Guest Jezzy
Posted

Not to toot my own horn, but Spunk needs to detect all this intel anyway, and sets it as "Spunk:Act:Role:Sucker" EVFLs etc. Very handy that way. I'm also doing my own arousal/orgasm stuff, planting arousal vars etc, so you could just work off my stuff :)

 

@DoctaSax :

 

Interesting! I had no idea about your coding agenda. I have a custom version of SexoutLust with a very clumsy coding script based on those of CR (here). Feel free to salvage any assets or <cough>code<cough> you might want/need/whatever from it. As i told i am brand new in programming. I am just goofing around with the geck only because i'd like some stuff added and i have patience issue lol :P Programming is somewhat out of my field of expertise lol

Posted

Well, I don't mean to just take over everything, but I do think that if you want to tap into some arousal functionality for the purpose of sound, and need to know who does what, a reliance on spunk will be your best bet. SOSreplacer also touches this somewhat, even if it's on hold a little, if I'm right. It might be good to combine all these efforts somehow.

Posted

No, I annexed it and am gradually replacing it, like some big evil corporation ruining your favorite product brand ;)

 

The spelltarget EVFo should be on all actors involved. At least that's what I remember from looking inside nx's csv for a save made during an act.

 

Yeah that was what I was saying... you can obtain spellTarget from any actor involved in the sex act and THEN check IsOral on the spellTarget ref.

 

spellTarget itself will be (it has nothing to do with the target of SexoutBegin/SexoutNGBegin... it's based on SpunB, SpunA and SpunC):

 

ActorB if there is an actor B.

ActorA if there is no actor B.

ActorC if there is no actors A or B.

Archived

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

  • Recently Browsing   0 members

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