1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Preventing AI from choosing "No State Religion"

Discussion in 'Civ4 - SDK/Python' started by Matty R, Aug 29, 2007.

  1. Matty R

    Matty R Veteran Newbie

    Joined:
    Jun 17, 2006
    Messages:
    416
    Location:
    Bolton, England
    Could anyone help me change the Python files to prevent AI civs from choosing "No State Religion"? As soon as 3 or 4 of the most advanced civs stop using a state religion, all hell breaks loose and its ruining my end games. I still want them to have state religions though.

    Any help would be much appreciated. :)
     
  2. Zebra 9

    Zebra 9 Emperor

    Joined:
    May 17, 2006
    Messages:
    1,554
    Location:
    Middle of Cyberspace
    Well the only thing I can think of would be to change the CvEventManager.py so when a civ adopts no state it sets them to thier last state religion.
     
  3. Matty R

    Matty R Veteran Newbie

    Joined:
    Jun 17, 2006
    Messages:
    416
    Location:
    Bolton, England
    OK thanks. I'll have a mess around with it and see what I can get. :)
     
  4. Vrenir

    Vrenir King

    Joined:
    Oct 11, 2006
    Messages:
    888
    Location:
    Maryland
    Or you could just reduce the AI value for the Free Religion civic, then fewer of them would automatically choose it when it became available to them.
     
  5. Matty R

    Matty R Veteran Newbie

    Joined:
    Jun 17, 2006
    Messages:
    416
    Location:
    Bolton, England
    Would that be in the Python files? I've searched through but can't find anything about civics.
     

Share This Page