Jump to content

Add Expressions with Aroused Idles


Recommended Posts

The SexLab Aroused Idle mod enables you to have different idle animations based on your arousal level (Link Below).

 

Since SexLab already have expressions, I would like to add a feature that, when your arousal reaches certain level, not only your idle animation changes but your default expression also changes (to one of the SexLab expressions).

 

I am only a novice at scripting. Upon looking through the script files, I noticed this part in BB_ArousedSexyIdlesAliasScript.psc:

 

Scriptname BB_ArousedSexyIdlesAliasScript extends ReferenceAlias  

 

BB_ArousedSexyIdlesQuestControlScript Property Mod Auto
GlobalVariable Property Threshold1 Auto
GlobalVariable Property Threshold2 Auto
GlobalVariable Property Threshold3 Auto
Faction Property sla_Arousal Auto

 

Event OnInit()
    SetCustomAnimations()
endEvent

 

Function SetCustomAnimations()
    Actor thisActor = GetRef() as Actor
    if (thisActor != None)
        bool IsSexLabFemale = false
        if (SexLabUtil.GetGender(thisActor) == 1)
            IsSexLabFemale = true
        endif
        zadLibs myzadLibs = Quest.GetQuest("zadQuest") as zadLibs
        if (myzadLibs == None) || (myzadLibs.GetWornHeavyBondageInstance(thisActor) == None)
            int Arousal = thisActor.GetFactionRank(sla_Arousal)
            if IsSexLabFemale && (Arousal > Threshold3.Value)
                thisActor.SetAnimationVariableInt("FNIS_NPC_SingleIdle", 1)
                FNIS_aa.SetAnimGroup(thisActor, "_mtidle", Mod.mtidle_base, 2, "ArousedSexyIdles", true)
            elseif IsSexLabFemale && (Arousal > Threshold2.Value)
                thisActor.SetAnimationVariableInt("FNIS_NPC_SingleIdle", 1)
                FNIS_aa.SetAnimGroup(thisActor, "_mtidle", Mod.mtidle_base, 1, "ArousedSexyIdles", true)
            elseif IsSexLabFemale && (Arousal > Threshold1.Value)
                thisActor.SetAnimationVariableInt("FNIS_NPC_SingleIdle", 1)
                FNIS_aa.SetAnimGroup(thisActor, "_mtidle", Mod.mtidle_base, 0, "ArousedSexyIdles", true)
            else
                thisActor.SetAnimationVariableInt("FNIS_NPC_SingleIdle", 0)
                FNIS_aa.SetAnimGroup(thisActor, "_mtidle", 0, 0, "ArousedSexyIdles", true)
            endif
        endif
    endif
endFunction

 

I know that I'm probably should add lines that play expressions under the bold lines but I don't know what to add. Can anyone help me on this? Thank you in advance.

 

 

Mod Link:

 

 

 

Link to comment
  • 4 weeks later...

you should probably look at 

SexLabFramework.psc

function ApplyPreset(Actor ActorRef, int[] Preset)

 

add property for sexlab

and call something like

where you need actor and preset, can probaly find those in sexlab mcm
sexlab.ApplyPreset(Actor ActorRef, int[] Preset)

 

or maybe just OpenMouth(Actor ActorRef) and CloseMouth(Actor ActorRef)

Link to comment

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