Jump to content

Chem Dependency System?


Volbrand

Recommended Posts

Was wondering if it's possible to make chem effects act like hunger or thirst do. Had a late night thought about making a mod where chems would slowly affect the player more and more like Thirst or Hunger, say maybe mentats would begin with a -1 to Charisma, the next stage -1 Charisma and Intelligence, third stage would be -1 CH, INT, and PER. The idea was that it would mean a bit more depth to the addiction penalties and also mean you would need more and more to function normally. As a brand spanking new modder, I'm expecting this to be pretty damn complicated but I didn't know if anyone already tried it or could maybe point me in the right direction? This is something I just want to play around with and see if I can understand how it works, but would like to eventually be able to create my own chems and add this type of addiction consequence to them.

Link to comment
Share on other sites

That's totally possible.

 

Look at the Survival potions, effects, quests and scripts. (all of them start with HC_ for HardCore)

 

That's where the hunger and thirst effects are handled. The actual logic is in the scripts (especially HC_ManagerScript.psc, which is the source file. You should have it if you've installed the CK). There are separate effects (administered as 'potions' for different levels of severity)

 

Things like thirst are added to a pool, which as it exceeds increasingly higher thresholds changes the level of severity, which in turn causes the actual effects to be applied. (also handled in HC_ManagerScript)

Link to comment
Share on other sites

ok so I'm starting to really look into this and there's a ton to do so I figured I'd start with specifically Alcohol to learn what I'm doing. I'm looking at the HC quest and I saw that it has an alias for the player. Do I need to make one for the addiction quest as well? Also, I need to figure out if there's a way to apply a conditional to this now that I'm thinking about it. Basically so that you don't need the drug right off the bat, rather you'll become addicted upon use and then the quest kicks in. How would I do that? I know these are really simplistic questions and honestly this project should probably be left up to a veteran modder but I'm curious and want to learn all I can.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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