Jump to content

Need some help coding...


Recommended Posts

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.

Link to comment

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.

Link to comment

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 :)

Link to comment

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.

Link to comment
  • 2 months later...

Archived

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

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use