File Name: Random Sex Mod for SexLab - 2014-01-25
File Submitter: Arizona_Steve
File Submitted: 13 Oct 2013
File Category: Misc SexRequires: SkyUI MCM 4.1 or above, SexLab Framework 1.35 or above, FNIS 4.1 + Creature Addon
A spell has fallen over the denizens of Skyrim. From the priestess in the temple to the blacksmith at his forge. From the ice wolf in the frozen tundra to the draugr in the tombs. None are able to resist their carnal urges, now plunged into an orgy of sexual depravity that threatens to destroy the world. Some try to resist, but cannot. Heimskr, desperately preaching his sermons to Talos while being subdued by Ysolda. Lydia loving every second of it. Only the children appear to be immune to the effects.
This mod pairs random NPCs and Creatures together for sex using the SexLab framework.
Full credit goes to WaxenFigure for the concept and his original implementation as part of the Sex Addicts mod.
SkyUI MCM 4.1 or above
SexLab Framework 1.35 or above
FNIS 4.1 + creature addon
I set up an MCM screen for my options as, quite honestly, it's a little hard to cast a configuration menu spell when Lydia is grinding one out on the player's face. When my mod is first loaded, it is switched off. You will need to go into the MCM menu and switch the mod on before you will see any action.
Each time the code loops, a victim is selected along with one or more attackers and zero to four masturbating onlookers. As of the latest version, the draugr and falmer gangbangs are working, but difficult to actually witness as the creatures are hostile. If you want to see these animations, I highly recommend adding the Fucktoy Critters mod to your set-up and spawning a few draugr or falmer to try this out. While there are no animations at present, this mod will detect and make use of any four or five NPC animations that are added to SexLab in the future.
Creature percentage is evaluated before threesome percentage. If the creature percentage check is passed and no creatures are available, processing continues with the threesome check. If the threesome percentage check is passed and no threesomes are available, twosomes are evaluated. Checks can fail because of a lack of animation selections in either the SexLab or the Random Sex menus (or simply because there are not enough available participants), so check settings in both menus if expected participant combinations are not showing up.
Upon selecting participants, the sequence of events is this:
(1) Each attacker runs towards the victim.
(2) If this is a threesome, the first attacker to reach the victim follows the victim until the second attacker reaches the victim.
(3) The sex act is started.
(4) Any assigned masturbators now make their way to the sex act in progress.
(5) Upon reaching the sex act, masturbators start masturbating.
The time between each loop is fully adjustable by specifying minimum and maximum intervals between iterations. Up to 90 minutes can be set up between iterations of the loop, so you can happily explore Skyrim with only the occasional surprise, or you can set up a 10 second loop and get a major orgy going in Whiterun or Solitude!
Random Sex now comes with a distance slider that can be used to determine the radius around the player from which NPCs and creatures can be selected for sex acts. Minimum is 10 meters, maximum is 120 meters or a radius of approximately 2 in-game cells. At the minimum it is possible to stand between the gate guard and Adrianne at the WhiteRun blacksmith and get those two to go at it. At the maximum setting, the whole of Whiterun is at the mercy of this mod.
Update versions prior to 20140109 - Due to the extensive rework to the script structure, I can only recommend that this mod is added to a game that has never been used with Random Sex, or with a new game. Anything else will probably CTD.
Update versions 20140109 and newer - Ensure that no sex acts are in progress, then save your game, quit and overwrite the Random Sex mod with the latest version.
Rewrote most of the code. See update instructions above.
3 on 1 and 4 on 1 ability added. Works with draugr and falmer. NPCs should work too once animations are added to SexLab
Calm option added to calm hostile creatures and NPCs for 60 seconds after sex.
Distance slider added to configure maximum distance from player at which participants are selected.
Fixed seekers in Apochrypha, who were not "seeking" when they should've been.
Calm spells no longer applied to the player.
Save actors as sex is started to get around an infrequent issue where the animation end event is not processed before a SexLab thread is closed.
Added auto-update code driven by the configuration script so that this version is a drop-in update.
SexLab forbidden actor faction is taken into account when selecting participants.
Added SC07CleanQuest, see usage below.
This is a simple script that was originally written to test the clean-up code for the various sex acts, which was subsequently updated to remove the sex selected faction from NPCs and creatures throughout the world. It is possible, due to the sequence in which SexLab events are processed by the Random Sex clean-up code, that the sex selected faction could remain attached to an NPC thereby preventing that NPC from being selected for future sex acts. If it is suspected that an NPC is not participating in Random Sex acts, turn off Random Sex, wait for all sex acts in progress to cease, open the console and type in the following:
Almost immediately a dialog box will pop up indicating how many NPCs were cleaned. The quest will clean up to 8 NPCs at a time, so if it is indicated that 8 NPCs were cleaned, it is recommended that the quest be run again.
With the latest changes to Random Sex, I was able to run a 10 second cycle with 12 followers, Interesting NPCs and Inconsequential NPCs in the Whiterun market place for an hour, following which I ran the clean-up script and no NPCs were cleaned up. So this should not be an issue going forward.
Note that this is a test mod
While I have added OnUnload() logic to the participants, attempting to leave an area could be problematic as there is no formal OnUnload() logic in SexLab (leaving an area will result in a slew of stack traces in the logs, although Ashal has stated that it should be safe). If you wish to move on from where you are I recommend setting the intervals to the maximum (90 minutes) and uncheck the activate toggle. Then wait for all humping to cease at which point you should be safe.
For those using the Aggressor/Victim setting
By default, SexLab only has a few sex acts tagged under the aggressive setting. If you are using threesomes or masturbators make sure that the appropriate animations have been set up in SexLab under the aggressive setting otherwise no sex acts of those types will occur.
Use BOSS - this mod has finally found its way into the BOSS data files! Following reports from several people, it is also highly recommended that Random Sex is placed above all other SexLab mods in the load order.
As I intend for this to be a stable version (minor bug fixes excepted), feel free to translate and forward to me so that I can add them to the mod. Anyone providing translation files will be credited here. The translation files have been added as loose files to facilitate this.
Translation files should overwrite the corresponding file under Interface/Translations.
Added: French Translation by aravis7.
Added: German Translation (fixed file here) and .esp file by CGi - Can be found here.
Added: Italian Translation by RockMic.
Added: Russian Translation by Huili (included in Random Sex download).