Religion

Keraunos

Chieftain
Joined
Jan 30, 2006
Messages
75
Ok, now I'll try to mod religions. I've already figured out how to change state religion to give happiness, another religions unhappiness (if the negative value in <iNonStateReligionHappiness>-1</iNonStateReligionHappiness> will work;) )

Now I have diffrent question. Is it possible to get rid of religion that is in your city? Example - I have buddhism as state religion and I want to get rid of islam in one of my cities.

I'm thinking about creating special mission for missionaries - "counter-mission", that will enable "missionary wars" similar to "culture wars". But I have no idea how to do it :( And how to force AI to use it..
 
Keraunos said:
if the negative value in <iNonStateReligionHappiness>-1</iNonStateReligionHappiness> will work;)

But it doesn't :(

Is there any other way with which I can modify civics to give unhappiness?

EDIT: Or anything else, not only civics. I search for something => unhappiness per each religion in a city..
 
ocedius said:
Maybe you should post this at the main forum. These threads are under the reference & guides forum. :)

My mistake:blush:
I shall post it in the main section. Thanks:goodjob:
 
Keraunos said:
Now I have diffrent question. Is it possible to get rid of religion that is in your city? Example - I have buddhism as state religion and I want to get rid of islam in one of my cities.

Yes, you just need to call setHasReligion from CyCity.

Eusebius
 
Ocedius. I have run into the exact same problem you have with Non-State Religion Happiness, and AG gave me the solution.

Step 1: Place all of your State Religion Booleans into government civics (i.e. in the government civics, set all <bIsStateReligion></bIsStateReligion> to 1.

Step 2: Change ALL of your Religion Civic Booleans for StateReligion to 0.

Step 3: Go ahead and change all of the non-state religion happiness modifiers to your hearts content :).

Aussie_Lurker.
 
@Eusebius, @Aussie_Lurker - I'm modding beginner and I'm afraid I don't know what you are talking about :(

Could you explain in detail?
 
OK, in more detail. The problem appears to be that negative values for Religion Happiness (State or Non-State) conflict with the IsStateReligion Boolean (a Boolean, by the way, is a simple binary system: 1 for yes and 0 for no. Tags starting with i are Integer values, which can have a range of numerical values for them.)
So, the solution is to set all of the booleans for Religious civics from 1 to 0 (so, as I said above, you will find a line in your CivicsInfo.xml file which is <bIsStateReligion>1</bIsStateReligion> Whereever this value currently says 1, switch it to 0 instead!) With me so far?
This on its own, however, creates a new problem. If all the IsStateReligion tags are set to 0, then you can't have a State Religion-EVER!! However, Arbitrary guy showed me the solution. You just place all the 1's into any Civic Category, like Government or Economics (we both went with government.) This should allow you to both have state religions AND have negative values for religious civics. Anyway, hope that helps!

Aussie_Lurker.
 
Aussie_Lurker, thanks for an extensive feedback. However, there is always an easier solution :)

<Define>
<DefineName>INITIAL_NON_STATE_RELIGION_HAPPINESS</DefineName>
<iDefineIntVal>-1</iDefineIntVal>
</Define>

This are the lines I found in GlobalDefines.xml; you probably know what to do with it..:) Happy moding :D
 
Yes, but I was referring specifically to Civic-related happiness changes. Global defines effects religion happiness AT ALL TIMES!

Aussie_Lurker.
 
Aussie_Lurker said:
Yes, but I was referring specifically to Civic-related happiness changes. Global defines effects religion happiness AT ALL TIMES!

Aussie_Lurker.

Ok. I want to keep changes as limited as possible, so I decided to use my solution above. Maybe I'll use yours in the future..:)
 
Back
Top Bottom