ClayPidgeon162 Posted January 16, 2011 Posted January 16, 2011 I just wanted to know if there was a script command to change an NPC's AI Mood (as in "cocky", "drugged", "annoyed", etc). Basically, I'm working on a quest where one of your options is to frame someone as a drug runner, part of that option involving injecting them with some concentrated Med-x, and I wanted that NPC's mood to change to "drugged".
rickerhk Posted January 16, 2011 Posted January 16, 2011 On 1/16/2011 at 1:00 PM, ClayPidgeon162 said: I just wanted to know if there was a script command to change an NPC's AI Mood (as in "cocky", "drugged", "annoyed", etc). Basically, I'm working on a quest where one of your options is to frame someone as a drug runner, part of that option involving injecting them with some concentrated Med-x, and I wanted that NPC's mood to change to "drugged". Thanks for bringing this up. It never occured to me to check it out. It will come in handy fo the companion mod I am working on ;) Mood is an actor value. The numbers aren't documented, but playing around with it: ActorREF.SetAV mood 4 ;drugged ActorREF.SetAV mood 1 ;Afraid ActorREF.SetAV mood 5 ;Pleasant When I set it to 4 her eyelids are a tad lower and lower lip slightly drooped - definitely a drugged look ;)
llamaRCA Posted January 16, 2011 Posted January 16, 2011 Ooh, this is great to know. That could come in very useful. Thanks, rickerhk. :) llama
ClayPidgeon162 Posted January 17, 2011 Author Posted January 17, 2011 On 1/16/2011 at 7:30 PM, rickerhk said: On 1/16/2011 at 1:00 PM, ClayPidgeon162 said: I just wanted to know if there was a script command to change an NPC's AI Mood (as in "cocky", "drugged", "annoyed", etc). Basically, I'm working on a quest where one of your options is to frame someone as a drug runner, part of that option involving injecting them with some concentrated Med-x, and I wanted that NPC's mood to change to "drugged". Thanks for bringing this up. It never occured to me to check it out. It will come in handy fo the companion mod I am working on ;) Mood is an actor value. The numbers aren't documented, but playing around with it: ActorREF.SetAV mood 4 ;drugged ActorREF.SetAV mood 1 ;Afraid ActorREF.SetAV mood 5 ;Pleasant When I set it to 4 her eyelids are a tad lower and lower lip slightly drooped - definitely a drugged look ;) Thanks Rickerhk. I appreciate the help.
rickerhk Posted January 17, 2011 Posted January 17, 2011 You're welcome.I'd always wondered why certain NPCs had one side of their lips kinda curled up, like Sydney and Karen Schenzy. It's their mood being set to 'Cocky' that does it.
llamaRCA Posted January 17, 2011 Posted January 17, 2011 On 1/17/2011 at 5:55 AM, rickerhk said: I'd always wondered why certain NPCs had one side of their lips kinda curled up, like Sydney and Karen Schenzy. It's their mood being set to 'Cocky' that does it. That's really good to know, and sounds like something definitely worth playing with. Thanks very much for following up with that. It's just something I never messed with so had no idea. :)
Recommended Posts