FreedomsFlame Posted February 9, 2016 Share Posted February 9, 2016 Okay, the title is rather silly, but to the meat of the issue: how do doctors in FO4 work? I'm trying to make an overhaul for the addiction effects, which includes adding a new addiction. Basically what I want to know is how do doctors remove all the addictions? Do they use the CureAllAddictions from Addictol, just attached to a dialogue option or does activating that dialogue just run a script that removes addictions, separate from how Addictol works? I'm trying to make it so that doctors can only alleviate your addiction temporarily, rather than remove it, but Addictol does completely cure you. While on the subject of addictions, how does using a chem remove the addiction effect and replace it with the relevant chem's effect then re-apply it? Link to comment Share on other sites More sharing options...
JTL2 Posted February 9, 2016 Share Posted February 9, 2016 If Fallout 4 is like other Bethesda games, it's a Quest. It may have a generic title like QT005 or be more specific like DoctorsDialogueQuest or some variation. How it actually removes them, I'm not sure. When I did mods for FO3/NV it simply ran multiple gamebryo commands player.removespell xxxxx (for each addiction type). Since Skyrim/Paprus doesn't allow gamebryo commands, you would probably have to dig through the quest dialogues (and any command options) to determine how they are removed. Anyone with more experience in Paprus can probably tell you more about the scripting. But to answer your first question, look at your Quests. Link to comment Share on other sites More sharing options...
FreedomsFlame Posted February 10, 2016 Author Share Posted February 10, 2016 Thank you for the advice, but unfortunately looking through the Story Manager Quest Node I haven't found anything on doctors. Looking at doctor NPCs such as Doctor Sun it would appear that in FO4 all dialogue is packaged with their AI in some proprietary package file, I have no idea how I would go about opening that up. Any suggestions? Link to comment Share on other sites More sharing options...
ThoraldGM Posted February 10, 2016 Share Posted February 10, 2016 I need the same read access for my plans. I dug into FO4Edit to answer your question, but found the same doctor dialogues and hit a wall. Somebody in another thread* decompiled a Nuka Cola script, then changed it so drinking cloned an empty bottle instead of a bottlecap. I wonder if outside programs like F4SE are the only way to read scripts. * http://forums.nexusmods.com/index.php?/topic/3436040-is-it-possible-to-compile-very-simple-scripts-for-fo4/ Link to comment Share on other sites More sharing options...
ThoraldGM Posted February 10, 2016 Share Posted February 10, 2016 I found an update* to the last link but it involves hexadecimal editing. I'm on my phone and the script photos in that link aren't showing. I don't know if that is the best method or if something easier has been developed. * http://forums.nexusmods.com/index.php?/topic/3448190-posting-this-so-anyone-else-with-the-same-question-can-get-answers/ Link to comment Share on other sites More sharing options...
lilkandeekid Posted February 11, 2016 Share Posted February 11, 2016 I need the same read access for my plans. I dug into FO4Edit to answer your question, but found the same doctor dialogues and hit a wall. Somebody in another thread* decompiled a Nuka Cola script, then changed it so drinking cloned an empty bottle instead of a bottlecap. I wonder if outside programs like F4SE are the only way to read scripts. * http://forums.nexusmods.com/index.php?/topic/3436040-is-it-possible-to-compile-very-simple-scripts-for-fo4/ I found an update* to the last link but it involves hexadecimal editing. I'm on my phone and the script photos in that link aren't showing. I don't know if that is the best method or if something easier has been developed. * http://forums.nexusmods.com/index.php?/topic/3448190-posting-this-so-anyone-else-with-the-same-question-can-get-answers/ You need something like Caprica Papyrus Compiler to work with scripts. Working with things like scripts for items is easy to do with just Caprica and using FO4Edit to work with VMAD parameters.Dont think F4SE has its normal addition of functions for scripting yet, so nothing that useful for modders (last time I checked), so probably only needed if you want to "hook" into some of the deeper game functions. As for doctors - I think JTL2 nailed it, the quest DialogueGenericDoctors "Doctor Dialogue System" FormID 0005F76B is linked to all the doctors threw the Faction DialogueDoctorsFaction FormID 0007925A.Seems this quest and its script are probably what you're looking for. Link to comment Share on other sites More sharing options...
FreedomsFlame Posted February 11, 2016 Author Share Posted February 11, 2016 Oh, wow, I feel silly. Didn't even see that tab, XD Thanks for pointing that out. Now I can get to work. Probably. Link to comment Share on other sites More sharing options...
Recommended Posts