prideslayer Posted October 28, 2011 Posted October 28, 2011 I don't really mind' date=' although I'm not sure how soon I'll get around to adding it into the thread version. Â Problem right now is I've basically hit the max script size. In order for this project to move forward in a useful way, I'll need to get some way of splitting scripts without sacrificing anything. [/quote'] Â There's no rush to get it in the main list or anything like that, just wanted to make sure you don't mind me messing with it and uploading modified versions. Â I could do it in an ESP and get around that whole issue, except there are ESMs using sexout, and ESMs can't use resources in ESPs. Â I'm thinking of ways to make the existing scripts more modular and split them up a bit as well.
Halstrom Posted October 29, 2011 Posted October 29, 2011 I'm starting to work on Pregnant companions and have a little issue trying to detect them with Sexout, I tried the following variation of whats's working fine for the player and it's not happy with the reference. Any Ideas? ref self ref male ref scan ref gender ref partner short isRape short scanLoop Set self to RoseofSharonCassidy if scan.GetDistance RoseofSharonCassidy < 100 && scan.getItemCount 00SexoutActor set partner to scan if scan.GetItemCount 00SexoutRaper Set isRape to 1 endif else set scan to GetNextRef Goto scanLoop endif endif  Strangely enough it sems to accept replaceing "RoseofSharonCassidy" with self in the Get distance, though not sure if it will actually work yet.  I also seem to have found an issue with numVaginal in the main scripts incrementing during oral sex somehow, it's causing some suprise pregnancies, though this may be another plugin issue.
prideslayer Posted October 30, 2011 Posted October 30, 2011 I'm starting to work on Pregnant companions and have a little issue trying to detect them with Sexout' date=' I tried the following variation of whats's working fine for the player and it's not happy with the reference. Any Ideas? ref self ref male ref scan ref gender ref partner short isRape short scanLoop Set self to RoseofSharonCassidy if scan.GetDistance RoseofSharonCassidy < 100 && scan.getItemCount 00SexoutActor set partner to scan if scan.GetItemCount 00SexoutRaper Set isRape to 1 endif else set scan to GetNextRef Goto scanLoop endif endif  Strangely enough it sems to accept replaceing "RoseofSharonCassidy" with self in the Get distance, though not sure if it will actually work yet.  I also seem to have found an issue with numVaginal in the main scripts incrementing during oral sex somehow, it's causing some suprise pregnancies. [/quote'] Self is a Reference, RoseOfSharonCassidy isn't (it's a basetype). RoseOfSharonCassidyREF is.. try that. Â
Guest Loogie Posted October 30, 2011 Posted October 30, 2011 I have been trying to get this to work, but I don't know what I'm doing wrong, so I'm going to post the ESP here. I don't recommend anyone who isn't a modder download it, as it would be utterly useless to them. Â Attached is my WIP NCR Tryout ESP. I know little about scripting, so I've hit a roadblock. In the mod as it is, you go up to Major Dhatri at Camp McCarran and initiate dialog where he contracts you as a hooker. You then get an Offical NCR Prostitute Outfit. The script I've made and attached to the outfit should turn on the scanner quest when worn, and turn it off when de-equipped. I tested the scanner itself and it works for any male NPC in the NCR military dialog faction. Â If somebody could take a look at why the script 00SexoutNCROutfitTrigger doesn't set the variable "init" in 00SexoutNCRQuestScript to 1 when the outfit SexoutNCRWhore is equipped, I'd be thankful because it would A) be a good learning experience for doing stuff like this in the future and get the damn thing one step closer to working.
jaam Posted October 30, 2011 Posted October 30, 2011 I have been trying to get this to work' date=' but I don't know what I'm doing wrong, so I'm going to post the ESP here. I don't recommend anyone who isn't a modder download it, as it would be utterly useless to them.  Attached is my WIP NCR Tryout ESP. I know little about scripting, so I've hit a roadblock. In the mod as it is, you go up to Major Dhatri at Camp McCarran and initiate dialog where he contracts you as a hooker. You then get an Offical NCR Prostitute Outfit. The script I've made and attached to the outfit should turn on the scanner quest when worn, and turn it off when de-equipped. I tested the scanner itself and it works for any male NPC in the NCR military dialog faction.  If somebody could take a look at why the script 00SexoutNCROutfitTrigger doesn't set the variable "init" in 00SexoutNCRQuestScript to 1 when the outfit SexoutNCRWhore is equipped, I'd be thankful because it would A) be a good learning experience for doing stuff like this in the future and get the damn thing one step closer to working. [/quote']   Variable init in the main quest only controls initial variables values. If you set it to zero, then it will revert back to one on the next iteration.  To start working only when the outfit is worn, you should wrap the scan with  if PlayerRef.GetEquipped SexoutNCRWhore scan... endif  also watch for NPC already onto the spell, to avoid constantly starting over and never finishing.  and remove the outfit script altogether.  Begin GameMode if init == 1 set approach to 36 set while to 0 set endwhile to 1 endif short scanChance set scanChance to GetNumRefs 200 set scanChance to 500 / scanChance ; Average of 5 people per scan ref scanner if PlayerRef.GetEquipped SexoutNCRWhore set scanner to GetFirstRef 200 Label while if scanner if scanner.IsEssential || scanner.GetDead || scanner.GetDisabled || scanner.GetCombatTarget || scanner.GetIsSex Female || scanner.IsChild || scanner.GetPCIsSex Male || scanner.IsSpellTarget SexoutNCROldEffect || scanner.IsSpellTarget SexoutNCREffect ; Non valid person elseif scanner.GetinFaction vNCRMilitaryDialogueFaction == 1 scanner.CIOS SexoutNCREffect endif set scanner to GetNextRef Goto while endif endif End  Note: Sorry but I can't test the code right now.
Guest Loogie Posted October 30, 2011 Posted October 30, 2011 Thanks, Jaam! Your code got it working. Â Now I just need to make the dialog and implement the payment system!
jaam Posted October 30, 2011 Posted October 30, 2011 Thanks' date=' Jaam! Your code got it working. Â Now I just need to make the dialog and implement the payment system! [/quote'] Â By the way, you really want to give them "chits" ? I'd rather they have chips, no? Â Lastly could you change the MCM script like the following code ? I pretty much change all esp to esm on download so I can tweak around them without directly modifying them. Â thank you. Â scn 57SexoutNCRMCMScript short iMaster short iMouseover short iOption short iTemp float fTemp float fValue reference rList short iSelf begin GameMode if GetGameRestarted if IsModLoaded "The Mod Configuration Menu.esp" set iMaster to GetModIndex "The Mod Configuration Menu.esp" set rList to BuildRef iMaster 2790 ListAddForm rList 57SexoutNCRMCMItem set iSelf to GetModIndex "SexoutNCR.esm" if 0 == iSelf set iSelf to GetModIndex "SexoutNCR.esp" endif endif endif end begin MenuMode 1013 if IsModLoaded "The Mod Configuration Menu.esp" else Return endif if GetUIFloat "StartMenu/MCM/_ActiveMod" == iSelf set iOption to GetUIFloat "StartMenu/MCM/_ActiveOption" set fValue to GetUIFloat "StartMenu/MCM/_Value" if GetUIFloat "StartMenu/MCM/_Reset" ;1 - RESET SetUIFloat "StartMenu/MCM/_Reset" 0 SetUIFloat "StartMenu/MCM/*:1/_columns" 1 SetUIFloat "StartMenu/MCM/*:1/*:1/_enable" 1 SetUIString "StartMenu/MCM/*:1/*:1/_title" "Approach Chance" SetUIFloat "StartMenu/MCM/*:1/*:1/_type" 2 SetUIFloat "StartMenu/MCM/*:1/*:1/_value" SexoutNCR.Approach SetUIFloat "StartMenu/MCM/*:1/*:1/_suffix" 1 SetUIString "StartMenu/MCM/*:1/*:1/_suffixText" "%" elseif GetUIFloat "StartMenu/MCM/_Default" ;2 - DEFAULT SetUIFloat "StartMenu/MCM/_Default" 0 SetUIFloat "StartMenu/MCM/_Reset" 1 set SexoutNCR.Approach to 36 elseif GetUIFloat "StartMenu/MCM/_NewValue" ;3 - NEW VALUE SetUIFloat "StartMenu/MCM/_NewValue" 0 SetUIFloat "StartMenu/MCM/_Reset" 1 if iOption == 1 set SexoutNCR.Approach to fValue endif elseif GetUIFloat "StartMenu/MCM/_ShowList" == 1 ;4 - SHOW LIST SetUIFloat "StartMenu/MCM/_ShowList" 2 elseif GetUIFloat "StartMenu/MCM/_ShowScale" == 1 ;5 - SHOW SCALE SetUIFloat "StartMenu/MCM/_ShowScale" 2 if iOption == 1 SetUIFloat "StartMenu/MCM/_Value" SexoutNCR.Approach SetUIFloat "StartMenu/MCM/_ValueDecimal" 0 SetUIFloat "StartMenu/MCM/_ValueIncrement" 1 SetUIFloat "StartMenu/MCM/_ValueMax" 100 SetUIFloat "StartMenu/MCM/_ValueMin" 0 SetUIString "StartMenu/MCM/*:2/_suffixText" "%" SetUIString "StartMenu/MCM/*:2/_title" "Approach Chance" endif elseif GetUIFloat "StartMenu/MCM/_DefaultScale" ;6 - DEFAULT SCALE SetUIFloat "StartMenu/MCM/_DefaultScale" 0 SetUIFloat "StartMenu/MCM/_ShowScale" 2 if iOption == 1 SetUIFloat "StartMenu/MCM/_Value" 36 endif endif if iMouseover != GetUIFloat "StartMenu/MCM/*:1/_optionID" ;7 - MOUSE-OVER set iMouseover to GetUIFloat "StartMenu/MCM/*:1/_optionID" if iMouseover SetUIFloat "StartMenu/MCM/MCM_Info/visible" 1 if iMouseover == 1 SetUIString "StartMenu/MCM/*:9/string" "This controls the percent chance NCR will solicit you." else SetUIFloat "StartMenu/MCM/MCM_Info/visible" 0 endif else SetUIFloat "StartMenu/MCM/MCM_Info/visible" 0 endif endif endif end
Guest Loogie Posted October 30, 2011 Posted October 30, 2011 Thanks for the input Jaam. I'll look into the MCM script -going to be away from my computer for the next 9 hours
zippy57 Posted November 3, 2011 Posted November 3, 2011 For any modders that want MCM support for their mods but don't know how to do it, I've started a thread specifically for that purpose.
Halstrom Posted November 6, 2011 Posted November 6, 2011 Just bouncing an Idea here, it could warrant it's own thread later if someone wanted to run with it.  I'm considering at this point with the body & clothing scripts potentially becoming so big, that perhaps I should split it into a seperate esp or esm that everyones mods access.  I'm thinking 2 globals iNewBellySize (0-5) & iNewBreastSize (0-3) with iPrevBellySize & iPrevBreastSize then at least all the outfits and perhaps Naked Bodies would be under one file?  Later we could add other body shapes too, our own version of Body by Race perhaps. It would be a good simple project for anyone with intermediate scripting knowledge to handle once it was set up too, not sure if I have the time for it myself with too many other ideas  We should probably put all the new non pregnant outfits in there too to make things simpler. It means we would need to merge data files a lot and using a common basis of some sort.  Does this interest you guys or does it make things even more complex in too many ways?
tamaster92 Posted March 3, 2012 Posted March 3, 2012 Just discovered this thread and it's a godsend! Thank you!
Halstrom Posted March 3, 2012 Posted March 3, 2012 Just discovered this thread and it's a godsend! Thank you! Ohh God, I just saw some of my early scripting work! MY EYES! MY EYES! Â
zippy57 Posted March 3, 2012 Posted March 3, 2012 This seems like one of those threads that should be stickied. Â EDIT: Or replaced with a version updated for SexoutNG, this post appears to be rather out-of-date.
prideslayer Posted March 3, 2012 Posted March 3, 2012 Quick! Lock it before Halstrom goes back and changes history!!
tamaster92 Posted March 3, 2012 Posted March 3, 2012 Hahai didn't mean to start anything bad! Just was very useful for showing the basic concepts since I presume that hasn't changed.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now