Jump to content

Can it be done somehow?


Recommended Posts

Hi :)

 

I'm looking for a way to make the player and npcs change 'facial expressions/phonemes/modifiers' more than once on each stage during SL animations. Is that possible?

I know i can "mfg save xxxx" a batch file, and then execute it with the "bat xxxx" command, but is it possible to make it happen automatically so that they change facial expressions more often ... like evey 5 seconds?

 

Perhaps adding several expressions in a batch file and then adding a "delay-command" (if such one exists?) in between each expression?

 

Or am I far out on this one? :s

 

 

It's amazing what you've accomplished so far with the framework and modding in general here on LL.

 

Keep cool guys n girls.

Link to comment

Pressing the "Realign Actors" hotkey (defaults to the [ key), essentially tells the actors to restart the current stage over again, which apart from forcing actors to reposition at their expected coords will also force actors to re-evaluate what their current enjoyment level should be, which feeds into them also evaluating what their current expression phase should be. So if their enjoyment has progressed enough in that stage to use a new expression phase, pressing this hotkey will force them to use it without going to the next stage.

 

In a more automatic sense, whenever an actor plays their moan sound effect, or every 3 seconds in the case of actors that have their moan disabled, they also re-evaluate their enjoyment and expression. So technically they already do change expressions during stages automatically; it's just a matter of them getting their enjoyment up high enough during that stage, which is calculated via their partners sex skills in relation to the current animation, how long the animation has been playing, and the stage progression of the animation.

Link to comment

Yes, it's easy with the framework.

http://git.loverslab.com/sexlab/framework/wikis/expression-functions

 

Here is the code I use to make both the npc and player open their mouth, wait 2 seconds then close it, along with a sultry expression.

 

So it goes like this:

 

OpenMouth()

Wait 2 seconds

CloseMouth()

Repeat

 

I use the code in a kissing animation for an upcoming voiced, follower companion mod.

 

Here is the code, ask questions if need be:

 

 

event onupdate()

;if in kissing stage dot he following
if iskissing == 1
;is mouth open or closed
if iskissingmouthopened == 1
;set this to open mouth next update
iskissingmouthopened = 0
;function that handles opening the mouth
openit()
else
;set this to close mouth on next update
iskissingmouthopened = 1
;function that handles closing the mouth
closeit()
endif
;we'll keep doing the above events every 1.8 seconds until the kissing scene is stopped, iskissing gets set to 0 during the animation end sequence
registerforsingleupdate(2.0)
endif

;do we do one last clearmfg?
if queueclearmfg == 1
;turn it off
queueclearmfg = 0
;clear mfgs for player and katreena
sexlab.clearmfg(game.getplayer())
sexlab.clearmfg(kd_katreenadarkmoore)

;sets their expressions back to default or else they will have weird facial expression
endif

endevent

function openit()

int[] facialsettinsg1 = new int[31]

 

;mouth open plus sultry look
facialsettinsg1[0] = 0
facialsettinsg1[1] = 0
facialsettinsg1[2] = 0
facialsettinsg1[3] = 0
facialsettinsg1[4] = 0
facialsettinsg1[5] = 0
facialsettinsg1[6] = 0
facialsettinsg1[7] = 0
facialsettinsg1[8] = 0
facialsettinsg1[9] = 0
facialsettinsg1[10] = 0
facialsettinsg1[11] = 0
facialsettinsg1[12] = 100
facialsettinsg1[13] = 0
facialsettinsg1[14] = 0
facialsettinsg1[15] = 0
facialsettinsg1[16] = 0
facialsettinsg1[17] = 0
facialsettinsg1[18] = 0
facialsettinsg1[19] = 0
facialsettinsg1[20] = 0
facialsettinsg1[21] = 0
facialsettinsg1[22] = 35
facialsettinsg1[23] = 35
facialsettinsg1[24] = 0
facialsettinsg1[25] = 0
facialsettinsg1[26] = 0
facialsettinsg1[27] = 0
facialsettinsg1[28] = 25
facialsettinsg1[29] = 25
facialsettinsg1[30] = 0
facialsettinsg1[31] = 7
facialsettinsg1[32] = 100

sexlab.clearmfg(game.getplayer())

sexlab.clearmfg(kd_katreenadarkmoore)

sexlab.applypreset(game.getplayer(), facialsettinsg1)
sexlab.applypreset(kd_katreenadarkmoore, facialsettinsg1)

endfunction

function closeit()

 

;mouth close plus sultry look
int[] facialsettinsg1 = new int[31]

facialsettinsg1[0] = 0
facialsettinsg1[1] = 0
facialsettinsg1[2] = 0
facialsettinsg1[3] = 0
facialsettinsg1[4] = 0
facialsettinsg1[5] = 0
facialsettinsg1[6] = 0
facialsettinsg1[7] = 0
facialsettinsg1[8] = 0
facialsettinsg1[9] = 0
facialsettinsg1[10] = 0
facialsettinsg1[11] = 0
facialsettinsg1[12] = 0
facialsettinsg1[13] = 0
facialsettinsg1[14] = 0
facialsettinsg1[15] = 0
facialsettinsg1[16] = 0
facialsettinsg1[17] = 0
facialsettinsg1[18] = 0
facialsettinsg1[19] = 0
facialsettinsg1[20] = 0
facialsettinsg1[21] = 0
facialsettinsg1[22] = 35
facialsettinsg1[23] = 35
facialsettinsg1[24] = 0
facialsettinsg1[25] = 0
facialsettinsg1[26] = 0
facialsettinsg1[27] = 0
facialsettinsg1[28] = 25
facialsettinsg1[29] = 25
facialsettinsg1[30] = 0
facialsettinsg1[31] = 7
facialsettinsg1[32] = 100

sexlab.clearmfg(game.getplayer())

sexlab.clearmfg(kd_katreenadarkmoore)

sexlab.applypreset(game.getplayer(), facialsettinsg1)
sexlab.applypreset(kd_katreenadarkmoore, facialsettinsg1)

endfunction

 

 

If you improve on this code please share it so I can adapt it to my own.

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...