Jump to content

Help, Initiate Sex through dialogue


Recommended Posts

Posted

I am still mostly unexperienced when it comes to Skyrim scripting and modding. Well with Bodyslide and xEdit I have done a lot, but just almost nothing with CreativeKit.

However, I am now working on my first comment mod. Mainly comments from NPCs as a reaction to special clothes you wear. However, I would also like to include some sex requests.

Unfortunately I have no idea how to do that and I couldn't find a tutorial. Maybe someone can help me with a few basics. For example, how to initiate a Boobjob through a dialogue.
 

Posted

Just some hints here.

 

1) Create a dialogue inside a new quest. Assign it to the actors you want.

2) Add a script in the dialogue that does a SexLab.QuaickStart with the speaker and the player. Add boobjob tag if you want

 

It is literally just this

Posted

CPU is, of course, correct. I have done just this in all my mods. Try downloading Some Consensual Sex. If it does, more or less, what you want, then simply open it in CK to see how I did it. What I didn't do is add any tags (as CPU mentions) but this is just a matter of adding ,"Boobjob") to the QuickStart.

 

If you still have problems let me know and I will see if the Thread I started to learn how to do it is still available (it's fairly old and is likely to have been deleted).

Posted
6 hours ago, Psalam said:

CPU is, of course, correct. I have done just this in all my mods. Try downloading Some Consensual Sex. If it does, more or less, what you want, then simply open it in CK to see how I did it. What I didn't do is add any tags (as CPU mentions) but this is just a matter of adding ,"Boobjob") to the QuickStart.

 

If you still have problems let me know and I will see if the Thread I started to learn how to do it is still available (it's fairly old and is likely to have been deleted).


Unfortimately, I fail at that...
How would the script have to look exactly?

I had looked at SexLab Romance and tried to make something out of it, but it doesn't work like that...

 

actor[] sexActors = new actor[2]
sexActors[0] = akSpeaker
sexActors[1] = Game.GetPlayer()
sslBaseAnimation[] anims
anims = SexLab.GetAnimationsByTag(2, "Boobjob")
SexLab.StartSex(sexActors, anims)

 

Result:
 

Starting 1 compile threads for 1 files...
Compiling "GetBoobjob"...
<unknown>(0,0): Unable to find flags file: TESV_Papyrus_Flags.flg
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\GetBoobjob.psc(3,0): Unknown user flag Hidden
No output generated for GetBoobjob, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on GetBoobjob

 

Posted
1 minute ago, GerdWagner said:


Unfortimately, I fail at that...
How would the script have to look exactly?

I had looked at SexLab Romance and tried to make something out of it, but it doesn't work like that...

 

actor[] sexActors = new actor[2]
sexActors[0] = akSpeaker
sexActors[1] = Game.GetPlayer()
sslBaseAnimation[] anims
anims = SexLab.GetAnimationsByTag(2, "Boobjob")
SexLab.StartSex(sexActors, anims)

 

Result:
 

Starting 1 compile threads for 1 files...
Compiling "GetBoobjob"...
<unknown>(0,0): Unable to find flags file: TESV_Papyrus_Flags.flg
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\GetBoobjob.psc(3,0): Unknown user flag Hidden
No output generated for GetBoobjob, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on GetBoobjob

 

All right. First, what I do is a script fragment rather than a script. It's simpler. Make your dialogue (arrange choices like all female NPCs get the dialogue, whatever). Then, when everything else is set you will want to go to the End Fragment box - below is my "cheat sheet" for doing this:

 

Spoiler

Click into EndFragment area, hit spacebar, then click out. (This generates a TIF File)
Click OK on the dialogue to temporarily close it. (Usually works best before modifying TIF)
Go back to End Fragment, advanced tab, rename script (usually best to rename immediately, name something that makes sense)
Right click on ScriptName and hit edit source.
Below all the fragment stuff, type: SexLabFramework Property SexLab Auto
Optionally type underneath that: Actor Property PlayerRef Auto ; (otherwise you'll use slightly less efficient Game.GetPlayer() to ref the Player)
Save the script to compile your new properties.
*
SexLabFramework Property SexLab Auto
Actor Property PlayerRef Auto
*
Go back to the end fragment field: Sexlab.Quickstart(PlayerRef, AkSpeaker)  ; AkSpeaker refers to whoever you're in dialogue with.

*  Sexlab.Quickstart(PlayerRef, AkSpeaker) ; for player as female (that is in the traditional female positions)
*  Sexlab.Quickstart(AkSpeaker, PlayerRef) ; for player as male (that is in the traditional male positions)

 

Click into the properties.
Hit autofill for Player.
Click into the Sexlab property (by hitting the Edit Value button) and select the Quest (only 1 thing should be available, the Quest the script is attached to).
Hit OK on your dialogue, it should compile without issue as long as you didn't make a mistake.
* Click on ScriptName so it highlights. Hit Properties key to the right. Highlight each property. Autofill PlayerRef.
  With SexLab choose SexLabQuestFramework from drop down box on the right.

I hope this helps.

Posted
41 minutes ago, Psalam said:

All right. First, what I do is a script fragment rather than a script. It's simpler. Make your dialogue (arrange choices like all female NPCs get the dialogue, whatever). Then, when everything else is set you will want to go to the End Fragment box - below is my "cheat sheet" for doing this:

 

  Hide contents

Click into EndFragment area, hit spacebar, then click out. (This generates a TIF File)
Click OK on the dialogue to temporarily close it. (Usually works best before modifying TIF)
Go back to End Fragment, advanced tab, rename script (usually best to rename immediately, name something that makes sense)
Right click on ScriptName and hit edit source.
Below all the fragment stuff, type: SexLabFramework Property SexLab Auto
Optionally type underneath that: Actor Property PlayerRef Auto ; (otherwise you'll use slightly less efficient Game.GetPlayer() to ref the Player)
Save the script to compile your new properties.
*
SexLabFramework Property SexLab Auto
Actor Property PlayerRef Auto
*
Go back to the end fragment field: Sexlab.Quickstart(PlayerRef, AkSpeaker)  ; AkSpeaker refers to whoever you're in dialogue with.

*  Sexlab.Quickstart(PlayerRef, AkSpeaker) ; for player as female (that is in the traditional female positions)
*  Sexlab.Quickstart(AkSpeaker, PlayerRef) ; for player as male (that is in the traditional male positions)

 

Click into the properties.
Hit autofill for Player.
Click into the Sexlab property (by hitting the Edit Value button) and select the Quest (only 1 thing should be available, the Quest the script is attached to).
Hit OK on your dialogue, it should compile without issue as long as you didn't make a mistake.
* Click on ScriptName so it highlights. Hit Properties key to the right. Highlight each property. Autofill PlayerRef.
  With SexLab choose SexLabQuestFramework from drop down box on the right.

I hope this helps.


I must be doing something wrong...
 

Starting 1 compile threads for 1 files...
Compiling "test_GetBoobjob"...
<unknown>(0,0): Unable to find flags file: TESV_Papyrus_Flags.flg
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\test_GetBoobjob.psc(3,0): Unknown user flag Hidden
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\test_GetBoobjob.psc(18,0): no viable alternative at input 'SexLabFramework'
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\test_GetBoobjob.psc(18,25): no viable alternative at input 'SexLab'
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\test_GetBoobjob.psc(21,0): missing EOF at 'EndFunction'
No output generated for test_GetBoobjob, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on test_GetBoobjob

 

Unbenannt.jpg

Posted
53 minutes ago, GerdWagner said:


I must be doing something wrong...
 

Starting 1 compile threads for 1 files...
Compiling "test_GetBoobjob"...
<unknown>(0,0): Unable to find flags file: TESV_Papyrus_Flags.flg
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\test_GetBoobjob.psc(3,0): Unknown user flag Hidden
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\test_GetBoobjob.psc(18,0): no viable alternative at input 'SexLabFramework'
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\test_GetBoobjob.psc(18,25): no viable alternative at input 'SexLab'
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\test_GetBoobjob.psc(21,0): missing EOF at 'EndFunction'
No output generated for test_GetBoobjob, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on test_GetBoobjob

 

Unbenannt.jpg

Yep. You need to hit the Properties button and define the properties as specified at the very end of the instructions that I put in the spoiler.

Posted
17 minutes ago, Psalam said:

Yep. You need to hit the Properties button and define the properties as specified at the very end of the instructions that I put in the spoiler.

When i press the properies button i get an error message > Errors encountered while attempting to reload the script

If i click on ok, this window appears, like on the left side of the picture.

Posted
18 minutes ago, GerdWagner said:

When i press the properies button i get an error message > Errors encountered while attempting to reload the script

If i click on ok, this window appears, like on the left side of the picture.

Be sure you compile the script before you try to add properties.

A quick solution is to just put a semicolon (;) in the papyrus fragment before starting coding.

Posted
27 minutes ago, CPU said:

Be sure you compile the script before you try to add properties.

A quick solution is to just put a semicolon (;) in the papyrus fragment before starting coding.

 

even if i only enter a semicolon, i can't compile:
 

Quote

Starting 1 compile threads for 1 files...
Compiling "test_GetBoobjob"...
<unknown>(0,0): Unable to find flags file: TESV_Papyrus_Flags.flg
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\test_GetBoobjob.psc(3,0): Unknown user flag Hidden
No output generated for test_GetBoobjob, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on test_GetBoobjob
 


Is perhaps this the problem: "Unable to find flags file: TESV_Papyrus_Flags.flg" ?
I don't have this file on the computer either...

Edit: Found the file in an old backup :)

Now:

 

Starting 1 compile threads for 1 files...
Compiling "TIF__0B01EF093"...
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\TIF__0B01EF093.psc(9,0): no viable alternative at input 'SexLabFramework'
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\TIF__0B01EF093.psc(9,25): no viable alternative at input 'SexLab'
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\TIF__0B01EF093.psc(12,0): missing EOF at 'EndFunction'
No output generated for TIF__0B01EF093, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TIF__0B01EF093


 

Posted

Damn. You are on SE, right?

Yu should unzip the scripts folder and place it in the right directory. The papyrus.flag file is inside the scripts archive.

Posted

If I remember correctly it is a file called scripts.rar

(but keep in mind are years I do not check this)

Posted
9 hours ago, CPU said:

Damn. You are on SE, right?

Yu should unzip the scripts folder and place it in the right directory. The papyrus.flag file is inside the scripts archive.

Yes, i'm on SE.

So besides the one missing file, a few scripts seemed to be missing as well. Restored everything from the backup now. Now it also works with the semicolon ;)
But when I try to compile the script (same as on the picture), I get this result:

 

Starting 1 compile threads for 1 files...
Compiling "TIF__0B02911F"...
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\TIF__0B02911F.psc(9,0): no viable alternative at input 'SexLabFramework'
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\TIF__0B02911F.psc(9,25): no viable alternative at input 'SexLab'
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\TIF__0B02911F.psc(12,0): missing EOF at 'EndFunction'
No output generated for TIF__0B02911F, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TIF__0B02911F


That's why I don't even get as far as the step with the properties.

Posted
37 minutes ago, GerdWagner said:

Yes, i'm on SE.

So besides the one missing file, a few scripts seemed to be missing as well. Restored everything from the backup now. Now it also works with the semicolon ;)
But when I try to compile the script (same as on the picture), I get this result:

 

Starting 1 compile threads for 1 files...
Compiling "TIF__0B02911F"...
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\TIF__0B02911F.psc(9,0): no viable alternative at input 'SexLabFramework'
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\TIF__0B02911F.psc(9,25): no viable alternative at input 'SexLab'
E:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\TIF__0B02911F.psc(12,0): missing EOF at 'EndFunction'
No output generated for TIF__0B02911F, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TIF__0B02911F


That's why I don't even get as far as the step with the properties.

Hah! Found it! It's 3 years old but here is the Thread that taught me to do dialogue scripting. You'll find that some of my earlier response comes directly from this:

 

 

Archived

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

  • Recently Browsing   0 members

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