Jump to content

Question about xLoversMainScriptStepWaitReady function.


Recommended Posts

Posted

So, testing out some scripting, trying to get a better idea about some of the API.  Does xLoversMainScriptStepWaitReady act as a block script?  Meaning, if I use "call xLoversMainScriptStepWaitReady" will it pause the script progression until both actors are ready for sex?

 

And more importantly...if I call it after sex has started, will it pause the script until sex has finished?

Posted

xLoversMainScriptStepWaitReady is internal to Lovers w PK.esp and should generally not be called by a mod.  It expects to be passed a valid Lovers array and a timer.  It does not block/wait, but just checks the timer against the array's timer to see if next step in pre-sex checking should start.

 

If you are looking for a way to make a script pause until sex is over you can simply use

if actor.IsSpellTarget xLoversMain

   return

endif

Posted

Ah, that's a shame.

 

Here's my basic issue...I have a conversation topic that initiates sex.  I then want to remove/add items immediately after sex, but not before or during.

 

 

...thinking about it now, I suppose I could use StartConversation, and have the item changing take place in a second topic.

Archived

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

  • Recently Browsing   0 members

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