Jump to content

Advice for a complete noob?


oleglo

Recommended Posts

Posted

Hey there,

 

I've been into modding skyrim for years now and I love the mods this community has come up with.

I recently started to explore the idea of modding things myself and have had an idea for a mod. I've successfully made the first steps using the Creation Kit (which is nothing more than adding an item to leveled lists...) but when it came to trying to integrating a sex mechanic I pretty much hit a brick wall...

 

I've took a look at SexLabFramework.psc and it's pretty much like trying to read chinese...

 

So I was wondering if anyone has advice for someone that has no particular experience in programming who would like to create a first simple sexlab mod?

I was thinking of trying to create some bare bones mod, like asking an npc for sex through dialogue which then would trigger a sex scene to try to understand how things work.

The problem right now is that I don't even have any idea where to begin, or where to look for any kind of guides?

 

I know it's probably a big task to go from no programming experience to creating a mod using Sexlab but I do have a lot of free time on my hands for a couple of months.

If some of you would indulge in sharing some advice I'd be very thankful.

Posted
4 hours ago, oleglo said:

Hey there,

 

I've been into modding skyrim for years now and I love the mods this community has come up with.

I recently started to explore the idea of modding things myself and have had an idea for a mod. I've successfully made the first steps using the Creation Kit (which is nothing more than adding an item to leveled lists...) but when it came to trying to integrating a sex mechanic I pretty much hit a brick wall...

 

I've took a look at SexLabFramework.psc and it's pretty much like trying to read chinese...

 

So I was wondering if anyone has advice for someone that has no particular experience in programming who would like to create a first simple sexlab mod?

I was thinking of trying to create some bare bones mod, like asking an npc for sex through dialogue which then would trigger a sex scene to try to understand how things work.

The problem right now is that I don't even have any idea where to begin, or where to look for any kind of guides?

 

I know it's probably a big task to go from no programming experience to creating a mod using Sexlab but I do have a lot of free time on my hands for a couple of months.

If some of you would indulge in sharing some advice I'd be very thankful.

 

Look at a mod that already does that for an example of how it's done.  I recommend Sexlab Solutions since it is a bunch of scenes where you talk to someone and some paths lead to sex acts.

Posted

Humm thanks, will do.

 

Edit: Might still be a bit too complex, I do understand some small parts of if but I still can't figure out how the mod works on a bigger scale. Found a simpler mod I think though, SexLab Paycrime by Mazoky, seems like I might get some ideas of how things work thanks to this mod.

 

Edit: Yeah that seems more understandable but I still can't really warp my head around how exactly things work.

 

I'm trying to understand the "bountypaidsex.psc" script right now and from what I understand it takes the speaker (the guard arresting you in this case) and you and starts a sex interaction between the two of you using the "agressive" tag, and then cancels your bounty?... not sure about that last part.

 

So either way, could someone who understands how scripting works explain how the script works in more detail?...

 

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 1
Scriptname bountypaidsex Extends TopicInfo Hidden

;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
actor[] activeActors = new actor[2]
activeActors[0] = SexLab.PlayerRef
activeActors[1] = akspeaker
sslBaseAnimation[] anims = SexLab.GetAnimationsBytag(2, "Aggressive")
SexLab.StartSex(activeActors, anims, victim = SexLab.PlayerRef)

(getOwningQuest() as WEBountyCollectorScriptsex).payMyCrimeGold()
getOwningQuest().setstage(100)
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

SexLabFramework Property SexLab  Auto 

 

I'd appreciate your help a lot. I don't really like the idea of using this forum as a translator between myself and the script but I think that if I start getting my mind around the way these basic things work thanks to your guy'es help I'd more easily understand things later on on my own.

Posted
48 minutes ago, oleglo said:

Humm thanks, will do.

 

Edit: Might still be a bit too complex, I do understand some small parts of if but I still can't figure out how the mod works on a bigger scale. Found a simpler mod I think though, SexLab Paycrime by Mazoky, seems like I might get some ideas of how things work thanks to this mod.

 

Edit: Yeah that seems more understandable but I still can't really warp my head around how exactly things work.

 

I'm trying to understand the "bountypaidsex.psc" script right now and from what I understand it takes the speaker (the guard arresting you in this case) and you and starts a sex interaction between the two of you using the "agressive" tag, and then cancels your bounty?... not sure about that last part.

 

So either way, could someone who understands how scripting works explain how the script works in more detail?...

 

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 1
Scriptname bountypaidsex Extends TopicInfo Hidden

;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
actor[] activeActors = new actor[2]   <--- Creates a new array of Actor with space for two actor references
activeActors[0] = SexLab.PlayerRef   <--- Assigns the Player to the first entry in that array
activeActors[1] = akspeaker             <--- Assigns the person speaking to the player to the other entry in that array
sslBaseAnimation[] anims = SexLab.GetAnimationsBytag(2, "Aggressive") <--- Asks the Sexlab Framework for a list of animations with the "Aggressive" tag for 2 actors
SexLab.StartSex(activeActors, anims, victim = SexLab.PlayerRef) <--- Tells the Sexlab Framework to start the sex act and that it is a rape (victim is the player)

(getOwningQuest() as WEBountyCollectorScriptsex).payMyCrimeGold()
getOwningQuest().setstage(100)
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

SexLabFramework Property SexLab  Auto 

 

I'd appreciate your help a lot. I don't really like the idea of using this forum as a translator between myself and the script but I think that if I start getting my mind around the way these basic things work thanks to your guy'es help I'd more easily understand things later on on my own.

Note that while you have posted the full PSC file, you would edit this in the CK on the dialogue step that is to initiate this sex act.  One edit was made to the PSC file outside that in order to add a reference to the Sexlab Framework, note that it was placed outside the zone marked by comments as "Do not edit". 

Posted

Thanks for the help Waxen!

It's all a bit more clear and I'm trying to see if I can create a button that when activated starts a masturbation scene. I've been trying to figure things out here for an hour or so but I still can't manage to compile it. It just gives me errors on line 7, 9 and 16...

 

Maybe you could take a look at it?

 

Scriptname MasturbationButtonScript02 extends ObjectReference  

SexLabFramework Property SexLab  Auto
Actor property PlayerRef auto

Event OnActivate(ObjectReference akActionRef)
    sslThreadController function QuickStart(Actor Actor1, Actor Actor2 = none, Actor Actor3 = none, Actor Actor4 = none, Actor Actor5 = none, Actor Victim = none, string Hook = "", string AnimationTags = "")
    Actor[] Positions = SexLabUtil.MakeActorArray(Actor1, Actor2, Actor3, Actor4, Actor5)
    Actor 1 = PlayerRef
    sslBaseAnimation[] Anims = SexLab.GetAnimationsBytag(1, "Masturbation")
    if AnimationTags != "Masturbation"
        Anims = AnimSlots.GetByTags(Positions.Length, AnimationTags, "", false)
    endIf
    return ThreadSlots.GetController(StartSex(Positions, Anims, Victim, none, true, Hook))
    endFunction
EndEvent

 

Also how do I avoid using an array when I'm only using one actor in a scene anyways? Here I tried using an array since that's what I found in Mazoky's script, figured that would work if you only define one actor in the array?

Posted
13 hours ago, Nazzzgul666 said:

I'm rather hitting a wall with the creation kit, but this is where i'll start once i find the patience to deal with it: https://www.loverslab.com/files/file/3038-papyrus-for-skyrim-guide/

While learing by doing isn't bad, imho reading about options and limitations and theory in general is always worth it in the long run. :smile: 

Oh sweet, thanks for the link that should come in handy!

 

Edit: I started reading it and yeah that should be really useful, thanks a lot!

 

Edit: Thanks to the super hero that is CPU, I finally managed for the script to work. For those interested, this is the script:

 

Scriptname MasturbationButton03 extends ObjectReference  

SexLabFramework Property SexLab Auto
Actor property PlayerRef auto

Event OnActivate(ObjectReference akActionRef)
    if akActionRef == PlayerRef
        SexLab.QuickStart(PlayerRef, AnimationTags = "Masturbation")
    endIf
EndEvent

 

Don't forget to fill the properties for Sexlab and PlayerRef, because I did.

Archived

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

  • Recently Browsing   0 members

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