Jump to content

Make children leave the room with scripting when a sexact starts


MissBling2000

Recommended Posts

Posted

So I wanted to make a mod called 'Safespace' where basically the cell that the Player occupies becomes the monitored and you use a spell or similar to mark a specific position 'the safespace'. 

 

If a sexact starts in the cell / nearby the Player, a script kicks in. I have looked through the hooks in Sexlab but my idea seems very script heavy. I cannot hook up all actors in a room, everytime the player enters a room. I also do not want to add code directly in the SexLabFramework.psc file.

 

1) Have someone done this? Please give the a link, the script or similar.

 

2) What is the best/script lightest way to start a script X 'when sex happens in the room, by any actor with any actor'?

 

YES, a good alternative is to make the children flee the current room. But my script-fu fails me.

 

Basically I was thinking of listing all Actors within X area and loop through them, if they register as children according to the formula below I will move them to the position defined as 'the safespace'.


If(akTarget.IsChild() || IsChild2(akTarget))
     ; MOVE TO SAFESPACE
Endif


Bool function IsChild2(Actor a)
    Race ActorRace = a.GetLeveledActorBase().GetRace()
    String RaceName = ActorRace.GetName()
 
    if (ActorRace.IsRaceFlagSet(0x4) || StringUtil.Find(RaceName, "Child") != -1 || StringUtil.Find(RaceName, "Little") != -1 || StringUtil.Find(RaceName, "117") != -1 || (StringUtil.Find(RaceName, "Monli") != -1 && a.GetScale() < 0.93) || StringUtil.Find(RaceName, "Elin") != -1 || StringUtil.Find(RaceName, "Enfant") != -1)
        return true
    endIf
    return false
Endfunction
Posted

Perhaps make a quest, with a main script that listens for sex-start. Then increases stage, fill Actor-Aliases with nearby children and overrides AI with some kind of "play outside" package?

Posted

The quickest and lightest way to do something when a SexLab animation starts is to set a hook.

For all of them, you just need two lines of code:

 

RegisterForModEvents("HookAniimationStarting", "myHandler")

...

 

Event myHandler(int tid, bool hasPlayer)

  sslThreadController tc = SexLab.GetController(tid)
  ...
endEvent
 
 
But checking is actors around are children is heavy.
Like said, the best way is to have a filler quest, with a set of aliases with just the condition "IsChild==1".
You can put some "go away" package inside. (This actually can be complicated.)
And reset/restart the filler quest when you receive the animation starting event.
 
Posted

Why ?

Historically, children and parents slept in the same bed... because they need to spare the heat.

And wood is expensive.

 

Ivist old houses in Italy, Swiszerland, France...

- ground floor : the stable.

- 1st floor : the house. One big bed, for all the familly. Little animals and pets lives under the bed, and babies are in basket upper the bed. There is one fireplace.

So, the house is heated by woodfire and cows farts.

 

You can also visit old houses in Itally, greece, Norway... all the same...

Posted

Why ?

Historically, children and parents slept in the same bed... because they need to spare the heat.

And wood is expensive.

 

Ivist old houses in Italy, Swiszerland, France...

- ground floor : the stable.

- 1st floor : the house. One big bed, for all the familly. Little animals and pets lives under the bed, and babies are in basket upper the bed. There is one fireplace.

So, the house is heated by woodfire and cows farts.

 

You can also visit old houses in Itally, greece, Norway... all the same...

 

Heidi's, (1970's TV version), at her 'grandfathers'... ummm. I suspect old world realism isn't what is required here.

 

Actually what about just creating a shout, (i.e. 'Go', 'To', 'Your', 'Room', or whatever the Skyrim version could be, and push any children out of the cell. It is your responsibility after all).

Posted

 

Why ?

Historically, children and parents slept in the same bed... because they need to spare the heat.

And wood is expensive.

 

Ivist old houses in Italy, Swiszerland, France...

- ground floor : the stable.

- 1st floor : the house. One big bed, for all the familly. Little animals and pets lives under the bed, and babies are in basket upper the bed. There is one fireplace.

So, the house is heated by woodfire and cows farts.

 

You can also visit old houses in Itally, greece, Norway... all the same...

 

Heidi's, (1970's TV version), at her 'grandfathers'... ummm. I suspect old world realism isn't what is required here.

 

Actually what about just creating a shout, (i.e. 'Go', 'To', 'Your', 'Room', or whatever the Skyrim version could be, and push any children out of the cell. It is your responsibility after all).

 

 

It's no so ancient... in Savoie or switzerland, some villages only bet current water, showers, and bath... during the 80'...

 

A shout can be good yes... the kid just leave the cell...

Posted

 

Your grandfather used to sleep with his pig believe it or not.

 

Heidi's, (1970's TV version), at her 'grandfathers'... ummm. I suspect old world realism isn't what is required here.

 

Actually what about just creating a shout, (i.e. 'Go', 'To', 'Your', 'Room', or whatever the Skyrim version could be, and push any children out of the cell. It is your responsibility after all).

 

 

'Go', 'To' would have to be one word as there are only three word shouts in Skyrim unless somebody knows how to make four word shouts.

Posted

Would definitely welcome something like this. Lucia once opened my bedroom door in Breezehome and walked in on Lydia and me in the middle of some hardcore lesbian animation. She stared at us for a few seconds, then walked out, lol.

 

RIP, immersion.

Posted

lel...let them see the reality and start them young...lmao...once had an orgy with SLEN in dragon's reach and all of Jarl balgruf's kids are on the table eating nonchalantly while sex acts that will make Caligula proud are going in the background...

 

Dagny: So they are at it again?

 

Frothar: what did you expect? it's that time of the month...

 

Dagny: *sigh* well just tell the servants if they're not fucking or being fucked that I want my meat rare and free of bodily fluids...

 

Fothar: Don't be such a spoiled brat Dagny...I'm busy getting my sausages not mixed up with uncle Hrongar's...thing...

 

Nelkir: I'm...gonna...kill...them...all...

 

 

Posted

While More devious quests is quite script heavy, the Sexual Fame Framework afaik isn't and has the same function, it'll just remove (or only hide?) children in general. Can be toggled off in MCM, though. It's not "immersive" in the way that they walk away, but should do it... if you want an own solution: maybe just copy the function from SLSF or DD-mdq and attach a hotkey or shout to that function? Both are from the same author, Versh, so it's likely that this part isn't that much different from each other, but SLSF was done later and is supposed to be light, in case of doubt it would probably be better to look there how it's done.

Posted

While More devious quests is quite script heavy, the Sexual Fame Framework afaik isn't and has the same function, it'll just remove (or only hide?) children in general. Can be toggled off in MCM, though. It's not "immersive" in the way that they walk away, but should do it... if you want an own solution: maybe just copy the function from SLSF or DD-mdq and attach a hotkey or shout to that function? Both are from the same author, Versh, so it's likely that this part isn't that much different from each other, but SLSF was done later and is supposed to be light, in case of doubt it would probably be better to look there how it's done.

 

Sexlab Fame Framework is ok for a casual user and if one wants to avoid children on a togglable basis. Thanks!

 

Archived

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

  • Recently Browsing   0 members

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