Jump to content

How can I edit the DD gag script to make it apply a facial expression?


Mud

Recommended Posts

Posted

I would like to edit the gags for Devious Devices to apply a mood expression when worn, specifically Fear at 75 strength, but my attempts to figure it out don't seem to be working. I'd done this prior to the last Integration update, adding something to one of the DD gag scripts, but forgot about it before updating and now I can't remember what I did.  Could someone lend me a hand?

Posted
Import MfgConsoleFunc

Event OnEquipped(Actor akActor)

     akActor.SetExpressionOverride(1, 75)

EndEvent

Event OnUnequipped(Actor akActor)

     akActor.ClearExpressionOverride()
 
EndEvent

Or something like that

Posted

Well, DD's script isn't quite that simple, it doesn't operate off a simple OnEquipped event when it applies its gag mouth movements, so I was trying to figure out where and what I needed to add some code to have it change the expression on top of the phoneme modifier it already has. I was trying to put in ActorRef.SetExpressionOverride(9, 75) or akTarget.SetExpressionOverride(9, 75) inside zadLibs.psc' DoApplyExpression function and in zadGagEffect.psc's OnEffectStart event, but it didn't have the desired effect after I compiled it, so I must've been putting them somewhere wrong.

Posted

Bumping. Anybody got any insight to share? Just cramming a SetExpressionOverride in there doesn't seem to be working out.

Posted

I was looking in there, zadGagEffect appears to apply the phoneme modifiers defined in zadLibs. I attempted to add a SetExpressionOverride in the portions that applied to those in either script, but they don't change in-game.

Archived

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

  • Recently Browsing   0 members

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