Jump to content

(F04) Help with papyrus?


Recommended Posts

Hi, I'm working on a small mod at the moment (my first one, yay!). It's a companion appearance modifier. I've created a few versions with slight facial differences, and I had an idea that I would like to build on to take it even further.

 

If anyone with an understanding of papyrus is reading this, do you know how I would go about using 'if' checks to change appearance as affinity reaches certain points?

 

E.G: When you first meet, one face is loaded, and once they reach 250 it's the next one, and so on until you reach max affinity. I would actually do it more subtly and at more frequent intervals, but this is just an example.

 

I have a basic background in coding but not with papyrus so I'm not sure where to start. I already have a few faces waiting, but I just need to compile them into a working script. I'm going to watch some videos and I've already done a little reading about it, but I'm hoping for a nudge in the right direction from someone who knows what they're doing.

 

If it's even possible, I'm hoping to push the mod toward upload by the end of the weekend, so any help is appreciated in making it happen! :smile: (I wonder if anyone could tell that I'm trying not to give too much away lol)

 

Thanks!

 

 

Link to comment
Share on other sites

 

theres the reference for statements in papyrus, now you need the function that modifies the desired value and the object you're running it on. check the function reference on that same site (it includes F4SE functions so you might need that too.)

I've already read that page and used it as a base for my own script, but thanks for your advice!

 

I have the if statement set up, but now I'm mainly struggling with finding the scripts for when a companion reaches affinity thresholds, or even just to check affinity. If I can find and use those functions, it might actually work!

 

I'll look at the function reference now, thanks!

Link to comment
Share on other sites

Just an update, I found the affinity threshold flags and have implemented them into my script, but I'm still having so many issues.

 

1. I don't actually know how to make the script change the face to my created presets once these thresholds are reached. If this isn't possible, I need to know how to add facial details, such as blemishes, from within a script. I've tried using ChangeHeadPart but I'm not sure it's the right function for blemishes.

 

2. I would like to create new, more frequent invisible thresholds so I can have smaller changes rather than three big ones, but that seems to be impossible for now.

 

 

I'm thinking that for now I'll upload what I've actually done face-wise as two versions, then continue working on the script for a possible future release.

 

If anyone has any ideas about how to do any of this, please let me know! I'd be so grateful for the help!

Edited by Skysimmer
Link to comment
Share on other sites

  • Recently Browsing   0 members

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