billybob72 Posted May 1, 2016 Posted May 1, 2016 (edited) Hey everyone, I'm finally back to working on my mod and am having trouble figuring out how to make doctors cure the new addictions I have added to several of the new food items. I've gone back and added the withdrawal effects to the AddictionRemovalEffectSCRIPT but the main problem I am having now is getting the doctor (Doc Mitchell in this case) to acknowledge that my character is actually addicted (option for addiction removal is not appearing when addicted to one of the new food items) and was just wondering how I can make this dialogue option appear. Any help is greatly appreciated. Edited May 1, 2016 by billybob72
Jokerine Posted May 2, 2016 Posted May 2, 2016 I think the doctors remove the withdrawal "spell" effects that are applied when the player is addicted, so you could add a condition to Doc's dialogue to check if the player has yours and then remove it with the result script. To get an idea, look at the HD00LabScript script to see how the First Laboratory removes addictions. Basically this chunk here. elseif ( Button == 1 ) Player.RemoveSpell WithdrawalQuantumNukacola Player.RemoveSpell WithdrawalAlcohol Player.RemoveSpell WithdrawalBuffout Player.RemoveSpell WithdrawalJet Player.RemoveSpell WithdrawalMentats Player.RemoveSpell WithdrawalMorphine Player.RemoveSpell WithdrawalPsycho ShowMessage HDLabDetoxify Hope that helps a bit :)
Ladez Posted May 2, 2016 Posted May 2, 2016 The topic is conditioned to show up only if the Addicted variable in the Generic quest is set to true. You're going to need to add new conditions to that quest script.
billybob72 Posted May 3, 2016 Author Posted May 3, 2016 Thanks heaps for the help so far, So I figured out where I went wrong and it was as Ladez said I needed to create and add the addicted variable to the Generic script and quest for it to appear in dialogue. Thanks again guys.
Recommended Posts