So I'm trying to make a mod that gives reformed African all benefits from animistic doctrine. I first made a text file named reformed african:
[snip]
For whatever reason this didn't work, so I had to make a copy of "00_religions.txt", make the above changes and then it worked. I don't understand why the first txt file didn't work. Is there a way to do this without copying the entire file?
edit: Ok it looks like I was mistaken re:animistic doctrine. According to the wiki it only gives +5% morale. Is there a way to verify that bonus is in reformed african?
Nope, if you want to edit an existing religion, you have to override the whole file. I don't know why they made it that way, it's very inconsistent about how you are allowed to override scripting elements. They did the same thing for scripted triggers, meaning that if you want to modify an existing scripted trigger you have to override a 9000-line file.
However, editing the religion isn't the only way to do what you want. You could also override the pagan reformation event to apply the changes you want at the time that west_african_pagan is being reformed. IIRC, this is event 670 in on_action_events.txt, and you can override it by simply copying the existing event definition into a new file in your events folder and making your changes there, and making sure that your file loads after the vanilla file (I like to do this by putting "zzz" on the front of the file). That event already applies various effects to reformed religions that can't be applied elsewhere, so this would be in following with the current conventions. There are even clauses in that event where unit modifiers are added to Romuva and Slavic if the player lacks Holy Fury that you can copy.
Last edited: