Starsickle Posted March 14, 2010 Share Posted March 14, 2010 Heh. I made an addiction as part of a a mod of mine, and Now I can't seem to get it removed. The game checks just the addiction effect, Right? AM I missing something? IN most cases, a chem equiptype item has an addiction with withdrawl effects, which contains some actoreffects and an addiction effect. Mine is a stim equiptype, with an addiction that have some effects that aren't actor effects but are defined there. So I'm not sure what to change first to make it work, I also don't know what the doctors of the wasteland are checking to see if you are addicted. Link to comment Share on other sites More sharing options...
amcclell Posted March 14, 2010 Share Posted March 14, 2010 How are you trying to remove it? Doctor scripts actually remove addictions to chems on an individual name basis, so you need to modify their scripts to check for your new addiction in order for them to recognize it (Everything you need to modify should be in the quest "Doctors"). Make sure to add "Player.removeSpell (Your addiction name)" to the script they run to remove addictions as well - it's all well and good if they recognize that you have it, but they won't remove it unless you add that in. If you're really stuck, you can make an effect that uses the base effect "CureAddiction", which will wipe out anything flagged as an addiction on your character. Just to be sure, your custom addiction is an ActorEffect with a type "Addiction", right? Link to comment Share on other sites More sharing options...
Starsickle Posted March 14, 2010 Author Share Posted March 14, 2010 How are you trying to remove it? Doctor scripts actually remove addictions to chems on an individual name basis, so you need to modify their scripts to check for your new addiction in order for them to recognize it (Everything you need to modify should be in the quest "Doctors"). Make sure to add "Player.removeSpell (Your addiction name)" to the script they run to remove addictions as well - it's all well and good if they recognize that you have it, but they won't remove it unless you add that in. That's what I expected, but I can't find the doctor script that removes addictions by name. If you're really stuck, you can make an effect that uses the base effect "CureAddiction", which will wipe out anything flagged as an addiction on your character. Just to be sure, your custom addiction is an ActorEffect with a type "Addiction", right? That actoreffect is an effect under addictions that is typed s an addiction. I just can't find the script that removes it with those doctors. I know the script is working, because I can get addicted to other ones and have them remove them...so I just need to add mine to their check and remove scripts. But...which ones re they? Link to comment Share on other sites More sharing options...
amcclell Posted March 14, 2010 Share Posted March 14, 2010 Ah, there's your issue. You need to look at the "Doctors" QUEST itself - there's no script. Curing addictions is handled under the "Quest Stages" tab, index 20. The Result Script there is the script you're looking for - it's kind of a subscript for the quest, so you won't find it saved under Scripts. Just add the removeSpell line to the bottom there, just before "Set Generic.Addicted to 0" (I'm not actually sure how the game uses that variable but it's best to leave it alone if you don't know what it does). Link to comment Share on other sites More sharing options...
Recommended Posts