triplehex Posted December 15, 2014 Posted December 15, 2014 Hello, apparently I decided I wanted to develop a mod for Skyrim (I don't know what's got into me), anyway, I want to build this mod in which sex grants temporary magicka increase to the player and syphons magicka from the target on orgasm. But first (and because I really don't know anything about scripting yet), I decided to build a location and a quest to get started with Creation Kit. I already did my location, NPCs and some cheesy dialog and now I want to get started with SexLab. According to SexLab's wiki I have to create a property on my script fragment to enable it, but I can't compile it. It doesn't let me add the SexLabFramework property through the CK dialog box and it outputs a huge list of errors. I installed SkyUI SDK (got a few errors when creating a new script, I don't know if they were ok or not, I just put it's contents in my /Data). Scriptname FSXSultanaSex0 extends TopicInfo SexLabFramework Property SexLab Auto ; comment Starting 1 compile threads for 1 files... Compiling "FSXSultanaSex0"... C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslActorLibrary.psc(80,25): GetWornForm is not a function or does not exist C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslActorLibrary.psc(110,12): UnequipItemEX is not a function or does not exist C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslActorLibrary.psc(116,12): UnequipItemEX is not a function or does not exist C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslActorLibrary.psc(125,40): GetMaskForSlot is not a function or does not exist C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslActorLibrary.psc(125,40): cannot call the member function GetMaskForSlot alone or on a type, must call it on a variable C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslActorLibrary.psc(125,22): GetWornForm is not a function or does not exist C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslUtility.psc(344,12): variable StringUtil is undefined C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslUtility.psc(344,23): none is not a known user-defined type ............ If anyone could help me on this I'd appreciate. https://dl.dropboxusercontent.com/u/666005/SkyrimAlbum/2014-12-15_00003.jpg <<< pic of my pretty room =>
Khe Posted December 15, 2014 Posted December 15, 2014 I know what's wrong, not how to fix it. those are all skse functions, but idk how to get the CK to load SKSE code, which sucks. anyone who can help with that, much appreciated.
zax Posted December 15, 2014 Posted December 15, 2014 You need to install '7z archive' SKSE version. Installer version does not contain source (.psc) files.
triplehex Posted December 15, 2014 Author Posted December 15, 2014 Awesome, it worked. Thank you very much guys!
FinalCloud Posted December 15, 2014 Posted December 15, 2014 Incase it happens again (if u have to re-setup your Skyrim for whatever reason) if you installed SKSE first, then the SkyUI sdk, always install (from the zip) Skse again after installing SkyUI sdk
RebelInfernal Posted December 16, 2014 Posted December 16, 2014 This is probably a really bad idea, but sounds to me like you could just install Sexlab Util and customise it's settings? For example I changed the food option to feed my character Skooma at the end of rape as a victim to work in conjunction with Skooma Whore, just open the mod file and customise the ini's to fit what you want to happen. Here is the comment from the person who showed me how to do it, have fun: I've been using sex lab utility ( http://www.loverslab...il1-2014-08-16/)in conjunction with this mod to add a custom event where I am randomly fed skooma under certain conditions (e.g. raped by low morality). I find it adds the slippery slope that wasn't there for me. i.e I can't so easily avoid getting exposed to skooma and control how much I use it. Also seems to affect NPCs strangely if it triggers on them, making them look like they are tripping out which is a bonus (although sometimes they die from it). This might be because I also have health reducing effects triggering though. I wouldn't know how to patch it. I just used sexlab util to create a new effect. I wrote the following code in a file I named Skooma.ini [Main] Name=Skooma Page=0 Type=cmd Id=314 Cmd=item:skyrim.esm:00057A7A+equip:skyrim.esm:00057A7A+msg:You Feel lightheaded snd:SexLab.esm:02067524:5 00057A7A is the item code for skooma and what appears after msg: is what will appear in the top left corner of the screen if the effect goes off (even if it's not "you"). As far as I know sexlab util doesn't allow you to vary the message or recall the pc/npc's name so it had to do. "equipping" a drink or any item that you can't actually equip makes you use it. Poison would be something else you could use to trigger a blurry effect. removing item:skyrim.esm:00057A7A will only have you use skooma if you are carrying some. Removing equip:skyrim.esm:00057A7A will dump the skooma in your inventory (if you want to whore it out for skooma, anywhere and anytime). And then placed it in ModOrganizer\mods\SexlabUtil1 15\INI\SexlabUtil1.esp I then customized the MCM menu to have it trigger when I want it. (I recommend using at sex end so the effect isn't wasted while you are locked in an animation). Unless you want the effect to go off on anyone and anything having sex, I would restrict it to "victim" and "player" (the player flag sets it to only happen when you are involved and the victim flag makes it so only the victim gets the effect). If you set off the event to trigger at 100%, maybe setting the fear effect already included in sexlab util at 100% would make some trippy behaviour:) By editing the duration, you could have it force feed you more than 1 skooma if you want to get addicted faster. Making multiple entries with a % below 100% would also feed you a random amount of skooma so even if you think you are safe from the next addiction level, you might get unlucky...
triplehex Posted December 17, 2014 Author Posted December 17, 2014 Infernas17, that actually sounds like it's more complicated than scripting, but it's nice to know that exists, might be useful. Anyway, I got everything working more or less. After several hours of scavenging this forum, google and other mods, I built a frankenstenian script for the main mechanic (get magicka through sex). I'm just happy to see the basic buff working. It would be nice now to have it stacking and then have negative effects when you become too powerful => You can take a look if you want I do not recommend saving after visiting the location or anything, this is far from complete. All my objects on CK start with FSX. if you want to teleport there ingame COC AnghRuins, but the effect should work on orgasm on any kind of sex anywhere.
triplehex Posted December 18, 2014 Author Posted December 18, 2014 I now have horny draugrs that will check for victims every 5 seconds xD > https://dl.dropboxusercontent.com/u/666005/SkyrimAlbum/2014-12-18_00001.jpg Here's the script that will give extra magicka. blunt but effective. It doesn't stack though, I think I'll be dropping that idea in favor of a larger effect. I believe I should unregister the modevent somewhere? Scriptname FSXQHandler extends Quest SexLabFramework Property SexLab Auto SPELL Property FortifySpell Auto SPELL Property DrainSpell Auto MagicEffect Property FortifyEffect Auto event OnInit() ; // Register globally onto AnimationEnd, with our callback PlayerFortify whenever the script is first initialized RegisterForModEvent("OrgasmStart", "PlayerFortify") endEvent event PlayerFortify(string eventName, string argString, float argNum, form sender) ; // Use the HookController() function to get thread controller that triggered this event sslThreadController Controller = SexLab.HookController(argString) Actor PlayerRef = Game.GetPlayer() actor[] ActorList = Controller.positions int ActorListLenght = Controller.ActorCount if Controller.HasPlayer ; fortify the player if !PlayerRef.HasMagicEffect(FortifyEffect) Debug.Notification("You feel your magicka flowing stronger!") endif FortifySpell.cast(PlayerRef) ; do the drain spell int i = 0 while i < ActorListLenght if ActorList[i] != PlayerRef DrainSpell.cast(ActorList[i]) endif i += 1 endwhile endIf endEvent and this is the script for the draugr. for some reason they were following me like crazy, but not attacking, I think the problem is some setting on their spelllist Scriptname SxDraugrScript1 extends Actor SexLabFramework Property SexLab Auto Event OnInit() RegisterForUpdate(5.0) ; Before we can use OnUpdate() we must register. EndEvent Event OnUpdate() ; This event occurs every 5 seconds if SexLab.isActorActive(Self) == false int girls = 1 actor[] sxActors = new actor[2] sxActors[0] = Self sxActors[1] = SexLab.FindAvailableActor(Self, 500, girls) ; todo: change code to findavailablepartners to start gangbangs sslBaseAnimation[] anim anim = SexLab.GetAnimationsByTag(2, "Sex") SexLab.StartSex(sxActors, anim, victim=sxActors[1]) endif Debug.Notification("Draugr is looking for fresh meat!") EndEvent Event OnDying(Actor akKiller) UnregisterForUpdate() ; when we're done with it, make sure to unregister EndEvent
triplehex Posted December 20, 2014 Author Posted December 20, 2014 I've fixed a few things, including the incessant raping from the part of the draugr and I've only activated them to look for partners onLoad() instead of onInit() https://dl.dropboxusercontent.com/u/666005/triplehex/FSXS05.zip There are a few things broken with the quest that I don't understand. The stages aren't updating, I think the problem is with the Book, I also don't know how to update the quest stage after every Draugr is dead. Will look into it later.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.