Jump to content

Setting up a sex interaction?


Recommended Posts

Posted

How do I go about setting up an encounter?

 

two examples I want to attempt-

1. Player on NPC-Conversation, begin sex (either random or some options via dialogue? ec: Footjob, handjob, etc)

2. NPC on NPC. Just two NPCs repeatedly having sex in a set location. putting on a show. Randomized animations or different acts for different couples.

 

So any tutorials for something like this?

Posted

1) Via dialogue

 

Make a quest and make some dialogue for that quest

In the dialogue that is supposed to trigger the scene, you write a script in the "On End" box:

[My SexLab Proeprty].QuickStart([My Player Property], akSpeaker)

If you want the animation to use specific tags you use

[My SexLab Property].QuickStart([My Player Property], akSpeaker, none, none, none, none, "", "(my Tags)")

Replace "(my tags)" with something like "Oral"

If you want to give the player a small choice of dialogue options you make a bigger dialogue tree with mutliple choices and put the latter in each box, each using a diffrent string instead of "(my Tags)"

 

2) NPC on NPC

for this you first need to get the two NPCs. You can do that by a targeting spell or via quest allias, a claok spell scanning for surrounding NPCs. There are a lot of diffrent options to do that. Im only going to cover quest aliases

Open a new quest and go to the Aliases tab. From there create two aliases "My NPC1" and "My NPC2". Those aliases are filled by "Find matching reference" with "In loaded Area" ticked. In the conditions tab, you can(should) add "Is Actor" == 1 and "Is Child != 1" to make sure the quest only looks for actual adult NPCs

When you start the quest, the quest will fill those two aliases with nearby NPCs

 

Now we make a script in the quests "Script" tab

This script will look like this:

; --------------------- Properties
SexLabFramework Property SL Auto
ReferenceAlias Property MyNPC1 Auto
ReferenceAlias Property MyNPC2 Auto

; --------------------- Variables
Actor[] SLActors
sslBaseAnimation[] SLAnims

; --------------------- Functions
Event OnInit()
	While(!MyNPC1) && (!MyNPC2)
		Utility.Wait(1)
	EndWhile ;(Im actually unsure if this is needed here, does the OnInit wait until aliases are filled..?)
    StartCycle()
EndEvent

Function StartCycle()
	SLActors = new Actor[2]
	SLActors[0] = MyNPC1.GetReference() as Actor
	SLActors[1] = MyNPC2.GetReference() as Actor

	SLAnims = SL.GetAnimationsByTags(2, "[My Tags]")

	SL.StartSex(SLActors, SLAnims, none, none, false, "MySLHook")
;Everything below is if you want an "endless Loop of 2 NPCs playing scenes"
;If you dont want this, just put EndFunction here
	RegisterForModEvent("HookAnimationEnding_MySLHook", "MySLEvent")
EndFunction

Event MySLEvent()
	ContinueCycle()
EndEvent

Function ContinueCycle()  
	SL.StartSex(SLActors, SLAnims, none, none, false, "MySLHook")
EndFunction

You then still need a way to start the Quest. Id recommend just using the Event Manager with an "OnLocationChange" Event. When the quest finds 2 aliases to loop it will just start the above

You have to replace "[My Tags]" with tags of your choice

 

Note that this script as it is now has no way for you to stop this cycle once it starts

  • 2 weeks later...
Posted

Thank you just got around to trying it last night before LL crashed. First time working with quests, dialogue, or scripts so bear with me.

 

I set up a very short dialogue tree and applied this to the "End" (I didn't see any "on End") box:

 

[My SexLab Property].QuickStart([My Player Property], akSpeaker, none, none, none, none, "", "Feet")

 

Then I clicked compile script, saved and tested. I enter dialogue, but nothing happens. back in the CK I tried checking the script but I only get errors. I would post screenshots, but CK takes a while to boot up.

 

Any ideas? I'll post again if I get the time to boot up the CK and get those screencaps.

Posted

Youre supposed to replace everything inside the brackets ( "[" and "]") with your own properties

 

In the "Papyrus Fragment" Box put a ";" before you write anything and click "Ok" for the Topic Info to save. Then open it up again and click on your Fragment Script (What you named "neeseifeet" (?))

Now add 2 Properties:

1) Type "SexLabFramework" and Name SL (SL can be anything you want), you need to fill this property manually. Click on the property after the CK created it and fill it (Using... "Fill Property"(?) on the right side). There should only be 1 option

2)  Type "Actor" and Name "PlayerRef", this should autofill. You can use another name for it but then you need to manually fill the property

 

Then replace with "[My SexLab Property]" with SL (or if you renamed it, the name you used)

and "[My Player Property]" with PlayerRef (or if you renamed it, the name you used)

and remove the semicolon

It should compile now

 

Also remember to fill properties on the large script on your quest

Posted

Alright, this is what I got:

 

Spoiler

1278519793_pt1.aftersaving.png.ae25d8f8e91a18d6f5fb6102dffbd7da.png

I get a Papyrus Error after saving the ; making note of it in case it means something-

 

Spoiler

1530459898_Errorswhenclickproperties.png.70823255b1fcf6213959196b5250275d.png

Error pops up when I click "properties" for "NeeseiFeet". Once again, don't know if it means anything.

 

Spoiler

270135853_NoFramework.png.367e290cf31c0fe9c995ff787e6206ac.png

SexLabFramework does not appear in the dropdown menu.

 

Spoiler

proof.png.379394db4b1a149947ccb9883d105a8d.png

Proof that I have SexLab enabled in the CK

 

Spoiler

ok.png.e94971333c39af64802cc182b0d60e20.png

Since nothing shows up in the dropdown menu, I typed it manually.

 

Spoiler

1727219772_Compileresultsblank.png.688614ceb4a6ba333f42420426c07854.png

After pressing okay, this empty Papyrus Errors: Compile Results box pops up.

 

Spoiler

nothing.png.c1f57618e78247da5505ba921580157f.png

Press okay, it didn't seem to save. No SexLabProperty, no autofill.

 

Anyway, that's what I got so far. Any ideas?

 

>Also remember to fill properties on the large script on your quest

 

I'm sorry, but I'm not sure what you meant by this? Do you just mean to save the dialogue script? Either way, I'll cross that bridge when I get there. Thank you again for the help.

 

Edit: Oh, and here is the CK warnings. I usually just ignore them, but maybe it'll help?

Spoiler

image.png.45ba7fc3c431667e995cdb601d32b417.png

 

Posted
On 8/11/2020 at 9:28 AM, S0urceHunter said:

I get a Papyrus Error after saving the ; making note of it in case it means something-

I was confused when you showed this screen the first time with the empty error box. There seems to be something else off with your CK or script

Can you compile other scripts without problem? Maybe try to rename this fragment script, doing so will create new one in its place. Not sure if or why that would fix smth but theres something off with either your script or your CK install (Reinstall the CK)

 

On 8/11/2020 at 9:28 AM, S0urceHunter said:

Error pops up when I click "properties" for "NeeseiFeet". Once again, don't know if it means anything.

That happens when the script doesnt compile but as said, I dont understand why it wouldnt here. There isnt exactly a lot of room for errors

 

On 8/11/2020 at 9:28 AM, S0urceHunter said:

Since nothing shows up in the dropdown menu, I typed it manually.

Which is what you have to do here. When creating property that points to a script, you need to type that script in manually 

 

On 8/11/2020 at 9:28 AM, S0urceHunter said:

Press okay, it didn't seem to save. No SexLabProperty, no autofill.

Again that happens because the Script doesnt compile, youre doing it correctly theres just something else wrong

 

On 8/11/2020 at 9:28 AM, S0urceHunter said:

>Also remember to fill properties on the large script on your quest

 

I'm sorry, but I'm not sure what you meant by this? Do you just mean to save the dialogue script? Either way, I'll cross that bridge when I get there. Thank you again for the help.

I typed you a slightly larger script in my first post, when you get there you also need to fill in properties on it by doubleclicking it. Tho I assume you have other issues that need to be solved first

 

 

Btw, it would be easier to read if you put screens in a spoiler, especially when there are so many at once

 

Posted
1 hour ago, Scrab said:

 

Btw, it would be easier to read if you put screens in a spoiler, especially when there are so many at once

 

Apologies, I'll edit those now.

 

I have the SSE CK installed via Bethesda.net and run it via Mod Organizer (because that's where Sexlab and my other mods are). I'll reinstall and try again. Will also try deleting and remaking the script.

 

Update: 

Spoiler

gotthis.png.487ad0ef42ac8ffbc26482999096d30d.png

 

That popped up when I started after the reinstall. Hopefully this fixes it.

Posted

Okay, my problem spiraling into a whole other thing. Scripts just won't download onto the fresh install. No idea why, already tried messing with my firewall. I'm just stuck with this:

Spoiler

ugh.png.81f8bb33b55e4b7b62518cf343abdfaa.png

I'll try figuring this out tomorrow and get back to this.

Posted
14 hours ago, S0urceHunter said:

Damn. no luck. After figuring out what was wrong with the reinstall nothing has changed. Nothing but Papyrus errors, I have no idea what is up. ugh

Do you get Errors now? or is the log still empty? 

Those warnings CK throws into its own log are usually there to ignore. In 99.9999999% of all cases they are stuff that isnt worth fixing - pretty much all of them have no effect IG whatsoever and chances are that all of them are even caused by Skyrim.esm + DLCs itself

Archived

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

  • Recently Browsing   0 members

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