Need Help with Civ specific religious beliefs

Lolisto

Chieftain
Joined
Jun 9, 2021
Messages
4
I'm having trouble creating Follower and Founder beliefs that only specific civs can get. Pantheons seem to use this code just fine, but the other Belief types do not.

This works.

INSERT INTO Beliefs
(Type, Description, ShortDescription, Pantheon, CivilizationType)
VALUES ('FOLLOWER_BELIEF', 'TXT_KEY_FOLLOWER', 'TXT_KEY_FOLLOWER_SHORT', '1', 'CIVILIZATION_FOLLOWER')

But this doesn't.

INSERT INTO Beliefs
(Type, Description, ShortDescription, Follower, CivilizationType)
VALUES ('FOLLOWER_BELIEF', 'TXT_KEY_FOLLOWER', 'TXT_KEY_FOLLOWER_SHORT', '1', 'CIVILIZATION_FOLLOWER')

Founder also has this same issue. Adding anything else after Follow or Founder causes it to stop working.

INSERT INTO Beliefs
(Type, Description, ShortDescription, Follower)
VALUES ('FOLLOWER_BELIEF', 'TXT_KEY_FOLLOWER', 'TXT_KEY_FOLLOWER_SHORT', '1')

This works just fine, but I want the follower belief to be civ specific.

I've been having trouble with this for a few days and would appreciate some help.
 
Table Beliefs has no column called CivilizationType. Even if it did, it would reference a valid "Type" from table Civilizations, and there is no such thing as 'CIVILIZATION_FOLLOWER'.

If you enable error logging ( whoward69's enable error logging tutorial ) you will see an error report in Database.log for attempting to a use a column name that is invalid for table Beliefs. This means that anything at or after that SQL code chunk is simply ignored by the game and is not added to the game's database.

You cannot make a Belief regardless of whether it is a Pantheon, Follower, Founder, Enhancer, or Reformation belief specific to a particular civilization.

Additionally, the "Type" designations in table "Beliefs" do not work in the way you appear to be attempting to use them. Table Beliefs has to have a unique designation for the "Name" given to a Belief as its "Type" value for each and every new belief added to the table. So having multiple inserts where "Type" is set to 'FOLLOWER_BELIEF' will simply make the second such insert fail (and the game will cease to use anything else within that file).

-----------------------

And also all your code examples are missing the required terminating semi-colon character, so if they are a direct copy of the code within your SQL file, then no, none of it is working, and instead of an invalid column error you would be getting a Near "INSERT" : syntax error or very similar error message depending on how the game's SQL parser interprets the last valid thing it saw within the file prior to the missing semi-colon
 
Last edited:
Could the Belief be assigned to a Trait or Leader, or is there maybe a way for only specifics civs or traits to be able to choose it?
 
Nope. The belief system has no way to make such limitations.

You could re-write and import into the game a new Panel for the Belief Selection UI to limit the choices displayed to the player, but this would only work for the human player since AI players don't use and are not affected by anything in a User Interface panel.
 
Top Bottom