Jump to content

Looking for a little scripting help.


Drow-chan

Recommended Posts

Posted

As the title suggests, I'm in need of assistance.

 

I'm trying to add various sexual dialogue topics to a custom companion. I've succeeded in making mutual sex animations (oral, anal...) work. Now, I'm trying to insert a dialogue topic that will make the NPC masturbate instead, but while I've followed various scripting tips here (including the SexoutNG-API how-to), I can't seem to make it work. What kind of script would I have to use? Do I have to call a specific animation or is there a way for masturbation anims to be randomly selected (if there is even more than one)?

 

Any help would be much appreciated.

Posted

No, I don't usually use beta versions.

 

Anyway, the code is this:

 

set SexoutNG.actorA to kulani

CIOS SexoutBegin

 

Kulani is obviously my custom NPC.

Posted

Uh, Dialogue. I'm using SexoutCompanions and set it as master for this. The other animations work, as I said, I just can't seem to get masturbation to work.

Posted

Uh' date=' Dialogue. I'm using SexoutCompanions and set it as master for this. The other animations work, as I said, I just can't seem to get masturbation to work.

[/quote']

 

Is it in "Result Script (Begin)" or "Result Script (End)"? If it's in the former you may want to move it to the later.

 

Also is the "Goodbye" checkbox checked?

Posted

It is in 'End', and the Goodbye flag is set for the topic.

 

I enabled the debug messages, and here's what I get:

 

SexoutNGBES: v04 in use flag unset on A!

SexoutNGBES: v04 in use flag unset on B!

SexoutNGBES: v04 in use flag unset on A!

SexoutNGBES: v04 in use flag unset on B!

Posted

Uh' date=' Dialogue. I'm using SexoutCompanions and set it as master for this. The other animations work, as I said, I just can't seem to get masturbation to work.

[/quote']

 

Dialog scripts are called in the context of the NPC doing the speaking, so an explicit ref for the CIOS may be needed if that isn't the companion.. try "kulani.CIOS SexoutBegin" instead.

Posted

If I try that, the GECK refuses to compile the script and calls 'kulani' an invalid reference, saying that only object references and reference variables are allowed in that context.

Posted

Well that's why it's not working then. If kulani isn't a ref, then "set SexoutNG.actorA to kulani" isn't actually working either, though I'm a bit surprised that it isn't throwing an error on that line as well.

Posted

It doesn't make sense though, it worked on other scripts...though, now that I look at it, those scripts seem to have replaced 'Kulani' with 'GetSelf'.

 

Edit: Yeah, replacing 'Kulani' with 'GetSelf' seems to have fixed it. Without adding anything before the CIOS, though. It works now. I have no idea why the other scripts automatically replaced 'Kulani' with 'Getself' and this one didn't, but now that I did that as well, it works.

Posted

Glad it's working, but I really doubt any of them did anything 'automatically'. That is something I've never seen or heard of despite all the ESMs and ESPs I've worked on. If you had anyone else look at the script, they may have done it for you.

 

If the kulani NPC is a persistent ref (as I imagine he/she must be), then you should be using that and not getself, you're probably just using the wrong name.

Posted

While I'm still not sure about the scripts (I wrote them and no one else took a look at them), you're right about the name. I used the NPC's name, rather than the reference name that actually adds the NPC to the world. Using the reference name, the script compiles. :/ Welp, I learned something new today. Considering this was my first try at scripting, it still could've gone better.

Posted

Okay, once again I need some help. I find that the non-player actors redress far too quickly...like, they're orgasming yet they already have their clothes back on. Any way I can delay that? I only really noticed that since updating to 2.5.68, I don't think it happened before that.

Posted

Okay' date=' once again I need some help. I find that the non-player actors redress far too quickly...like, they're orgasming yet they already have their clothes back on. Any way I can delay that? I only really noticed that since updating to 2.5.68, I don't think it happened before that.

[/quote']

 

1. What do you mean 'too fast'? Why should it be slower?

 

2. Check your MCM settings for consensual KO duration.

Posted

No, I mean 'too quickly' in the sense of 'too soon after the sex anim'. It's like...the sex animation plays, vaginal, oral, whatever, and then when both actors cum, the player character still stays naked, but while still cumming, the non-player actor is already wearing clothes again.

 

I'll try that, though.

 

Edit: It seems SexoutLust is causing this issue. It alters the duration of the sex depending on how long it takes to reach orgasm somehow, and it seems that doesn't play nice with the redressing.

Posted

It's possible, I haven't looked too closely at how it works, but it might not be. When testing stuff to bug/problem hunt, before reporting the bug, it's best to disable all the other sexout plugins to try and track down the mod causing the issue.

 

That said, I still don't really see the 'problem'. If we had a 'real' cumming effect it would be nice if the giver kept their clothes off until it was done, but since we have more of a squirter/spray effect, I don't see any benefit to controlling how 'soon' after sex the giver(s) gets dressed.

Guest user29
Posted

Yeah, I was about to say it sounds like your npc doesn't have a properly named persistent reference associated with her.

Archived

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

  • Recently Browsing   0 members

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