Jump to content

Removing Addictions


billybob72

Recommended Posts

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 by billybob72
Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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