ger4 Posted April 15, 2013 Posted April 15, 2013 I am making some new quests for lovers situations http://www.loverslab.com/topic/10727-loverssituations-was-loversextortion/, but my coding knowledge is poor at best and the lovers system involves some very advanced system. What I basically need is a script that can be used to call up specific animation up to play, not just a category. Additionally since I use the loverspk extender, it needs to be compatible with the extender. A tremendous thanks to anyone who can help out. Cheers.
WappyOne Posted April 15, 2013 Posted April 15, 2013 Here's a full example with some annotations. You can remove parts that aren't needed. if 0 != Call xLoversCmnIsReady rMale ; Make sure Male actor is ready for sex. if 0 != Call xLoversCmnIsReady rFemale ; Make sure Female actor is ready for sex. Call xLoversCmnInitQuestInterface ; Reset Lovers to default state. Can crash if not done before setting up your variables. set xLoversQuest.SPos to 7 ; This is the specific animation you want to use. set xLoversQuest.Offence to rMale ; Offensive/Male actor set xLoversQuest.Deffence to rFemale ; Defensive/Female actor set xLoversQuest.OffNudeFlag to 0 ; You can specify certain clothing to strip here by adding flags. Add 128 to signify this is a rape. set xLoversQuest.DefNudeFlag to 0 ; Same for the Defensive/Female actor. set xLoversQuest.DefResetAnim to xLoversResetAnimStun ; This line causes the defensive/female actor to stay stunned after sex on the ground for a few seconds longer before standing. let rBed := Call xLoversCmnGetUsableNearestBed rMale rFemale 0 0 ; Look for a nearby available bed if rBed set xLoversQuest.ExtFlag to 1 ; Using a bed reference set xLoversQuest.ExtRef to rBed ; Here it is endif Call xLoversMainSafeStart ; And start the sex endif endif Should cover everything you need.
ger4 Posted April 16, 2013 Author Posted April 16, 2013 Here's a full example with some annotations. You can remove parts that aren't needed. if 0 != Call xLoversCmnIsReady rMale ; Make sure Male actor is ready for sex. if 0 != Call xLoversCmnIsReady rFemale ; Make sure Female actor is ready for sex. Call xLoversCmnInitQuestInterface ; Reset Lovers to default state. Can crash if not done before setting up your variables. set xLoversQuest.SPos to 7 ; This is the specific animation you want to use. set xLoversQuest.Offence to rMale ; Offensive/Male actor set xLoversQuest.Deffence to rFemale ; Defensive/Female actor set xLoversQuest.OffNudeFlag to 0 ; You can specify certain clothing to strip here by adding flags. Add 128 to signify this is a rape. set xLoversQuest.DefNudeFlag to 0 ; Same for the Defensive/Female actor. set xLoversQuest.DefResetAnim to xLoversResetAnimStun ; This line causes the defensive/female actor to stay stunned after sex on the ground for a few seconds longer before standing. let rBed := Call xLoversCmnGetUsableNearestBed rMale rFemale 0 0 ; Look for a nearby available bed if rBed set xLoversQuest.ExtFlag to 1 ; Using a bed reference set xLoversQuest.ExtRef to rBed ; Here it is endif Call xLoversMainSafeStart ; And start the sex endif endif Should cover everything you need. cheers, ill give this a try
ger4 Posted April 16, 2013 Author Posted April 16, 2013 Could someone give me a full list of the different flags and what they do for the set xLoversQuest.OffNudeFlag and set xLoversQuest.DeffNudeFlag comands please?
WappyOne Posted April 16, 2013 Posted April 16, 2013 OffNudeFlag / DefNudeFlag values are listed below. Added up all the numbers for what you want. Slot flags will have no effect unless flag 1024 or 2048 is also present. 1 - Upper body slot. 2 - Lower body slot. 4 - Hands slot. 8 - Feet slot. 16 - Head slot. 32 - Shield slot. 64 - Weapon slot. 128 - This is a rape, offender is raping defender. ** 256 - Reverse the animations positions so that offender is in the female position and defender is in the male position. ** 512 - This sex does not cause nearby NPCs to come over and watch. ** 1024 - Equipment slots flagged are stripped in addition to normal Lovers settings. 2048 - Equipment slots not flagged will not be stripped. 4096 - Causes the flag on the Callback initialization (trg = 1) to be 1 instead of 0. ** 8192 - Torch slot. 16384 - Tail slot. ** - This flag is effective if added to either OffNudeFlag or DefNudeFlag, but is usually added to both for clarity. Quick notes about 1024 & 2048. 1024 alone lets you specify additional slots to strip. 2048 alone restricts Lovers stripping to the slots flagged, but does not force it to strip them. Using both together tells Lovers to strip all flagged equipment slots. An example: set xLoversQuest.OffNudeFlag to 1+2+128+256+1024 set xLoversQuest.DefNudeFlag to 2+128+256+1024+2048 The offender in this case will have upper & lower body slots stripped in addition to whatever else the Lover's settings are, and is raping the defender while in the animation's defensive/receiving position. The defender will have ONLY lower body stripped not caring about Lover's settings, and is being raped by the offender while in the animation's offensive/giving position.
WappyOne Posted April 17, 2013 Posted April 17, 2013 Prior post has been heavily edited/corrected. I wasn't exactly clear on how the equipment slots in the flags worked or the existence of flags 1024/2048. All should be present and correct now.
GMac2021 Posted July 5, 2013 Posted July 5, 2013 So long and thanks for all the fish, WappyOne. Very helpful information.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.