Jump to content

Need scripting help


Santr

Recommended Posts

Posted

I'm trying to learn some basic scripting by conducting lab experiments on Jbezorg's Sexout addon for IMCNNV.

Currently, the script can't do two things:

- Differentiate men from women, which makes female actors produce cum like men.

- Apply its effects to oral rapes just as it would to consensual oral sex.

 

Prideslayer and DoctaSax gave me some advice over here (for which I'm definitely grateful), but after several days of beating my head on the keyboard I still can't figure out a way to fix both shortcomings.

 

I think I managed to make the script only give cum from male NPCs, but Prideslayer's first answer above makes me doubt it isn't a glitch.

 

Here's the script so far (in red is my attempt at gender differentiation):

scn 00SexoutIMCNNVQuestScript

 

short triggerCumming

short triggerOral

short playerGivingOral

short isCumming

short femPartner

ref partner

 

begin GameMode

 

if(SexoutNG.ActorB == Player || Player == Sexout.female)

set partner to SexoutNG.ActorA

endif

 

if(partner.getIsSex Female)

set femPartner to 1

else

set femPartner to 0

endif

 

if(Player.IsSpellTarget SexoutNGCum || Player.getItemCount 00SexoutRecovering > 0)

set isCumming to 1

else

set isCumming to 0

endif

 

if(SexoutNG.isOral || Sexout.sextype == Oral) && (femPartner == 0)

if(playerGivingOral == 0)

set playerGivingOral to 1

endif

endif

 

if(triggerOral == 0 && playerGivingOral && isCumming)

Player.addItem SexoutIMCNNVCum 1

Player.equipItem SexoutIMCNNVCum

set triggerOral to 1

elseif(triggerOral && isCumming == 0)

set triggerOral to 0

set playerGivingOral to 0

endif

 

if(triggerCumming == 0 && isCumming)

Player.CIOS SexoutIMCNNVCumming

set triggerCumming to 1

elseif(triggerCumming && isCumming == 0)

set triggerCumming to 0

endif

 

end

 

Posted

I don't think SexoutNG.ActorB or ActorA actually saves itself after sex has begun. I don't think anyways, you should wait until someone who actually knows drops by. To get sex participants you need to do something a bit more complicated involving checking formlists that are used to store actors.

 

But it could be something else.

Posted

(I think there oughta be a space between your if's & your brackets.)

 

In 'giving oral to females' anims, ActorA is actually the female receiving, & B the person licking. 'Female' in old sexout didn't always mean gender, but more the undergoing/serving role. The transition to ActorA/B followed that. So the player, if female, is not always ActorB to begin with.

 

However, like user says, lots of the NG vars are erased immediately after they're set, & your script won't catch them. Digging into the formlists will be far more reliable; that way you will be able to account for multiple partners too. You will need commands like ListGetCount & ListGetNthForm probably (have a look at NVSE docs) & figure out which lists NG writes the actors to.

Posted

Och. This formlist business is going to be what tips over the rest of my sanity, I just know it. ;)

 

 

(I think there oughta be a space between your if's & your brackets.)

I could add spaces for readability' date=' but they aren't needed to function, per se. :)

 

In 'giving oral to females' anims, ActorA is actually the female receiving, & B the person licking. 'Female' in old sexout didn't always mean gender, but more the undergoing/serving role. The transition to ActorA/B followed that. So the player, if female, is not always ActorB to begin with.

Yep, I know. The script isn't trying to determine the PC's gender there (which doesn't matter), the 'PlayerREF == Sexout.female' is just there for backwards-compatibility, as I understand it (Jbezorg placed such conditions there and it's probably a good idea).

 

 

Oh, another thing: will FOMM's TESsnip break anything if I use it to edit and compile scripts? GECK is such a finicky pain in the arse to use.

Posted

Yep' date=' I know. The script isn't trying to determine the PC's gender there (which doesn't matter), the 'PlayerREF == Sexout.female' is just there for backwards-compatibility, as I understand it (Jbezorg placed such conditions there and it's probably a good idea).

 

Oh, another thing: will FOMM's TESsnip break anything if I use it to edit and compile scripts? GECK is such a finicky pain in the arse to use.

[/quote']

 

Ah, I see. Only the player would matter of course.

 

TESSnip: no idea what it does to scripts. I use Notepad +++ with the geck syntax plugin

Posted

I use Notepad +++ with the geck syntax plugin

 

Where has this been all of my life?!

 

Also, pride has some ways to access the actor info via NX_GetEVFo, but last time we spoke he wanted me to do wait for NVSEE v12. I think.

You could, uhh, piggyback off of SexoutLust. >_>

Archived

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

  • Recently Browsing   0 members

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