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

XML editing: CIV4LeaderHeadInfos

Discussion in 'Civ4 - Creation & Customization' started by Asjo, May 13, 2008.

  1. Gagonite

    Gagonite Irishman

    Joined:
    Nov 6, 2005
    Messages:
    208
    Ah nice, these definitions are helping me alot in reworking the AI on my new leaderheads for me mod. Thanks for posting them :D
     
  2. Asjo

    Asjo Warlord

    Joined:
    Jan 23, 2006
    Messages:
    115
    I can see that this thread has resurfaced. I'm not around on these forums anymore, since I stopped playing Civilization after my attempt to convert what I made in my Warlords scenario into Beyond the Sword failed. I just got the urge to play a couple of custom game hot seat games with my friend who was visiting last weekend, which is what gave me the idea to check these forums.

    Yamps, I'm sorry that I cannot go into more depth with the bagground of my info; it's a mix between various sources on the net and on these forums. I'm sure more could be added, but I don't have my heart into doing this anymore.

    I'm glad that my descriptions and explanations, though a few points short, could be helpful to people making mods and scenarios. I wanted to make sure you only had to look wanted place to find out about CIV4LeaderHeadInfos, which is why I'm glad that deanej has apparantly expanded on the information in this topic, although leaving out a bit of the info from what I can see by skimming the page.
     
  3. PsiCorps

    PsiCorps FF: Babylon 5 mod team

    Joined:
    Dec 30, 2007
    Messages:
    1,425
    Location:
    Britain
    I'm glad that this post has resurfaced, the information in here is invaluable to me for the B5 mod we've been working on. At last i can now put in the modifiers that each leader should have as opposed to just guessing at figures and not knowing what the figures mean.
    Awesome.
     
  4. TheMeInTeam

    TheMeInTeam Top Logic

    Joined:
    Jan 26, 2008
    Messages:
    25,318
    Ooooh, just what I was looking for. Thanks OP, even though I looked here long after you created it :). I figured most of this stuff, but some wasn't as clear.

    How does one make sure these changes work from custom assets? Do you have to turn your custom assets into some kind of mod folder?
     
  5. Yared

    Yared That Guy

    Joined:
    May 21, 2009
    Messages:
    4,516
    Location:
    Hufvudstaden
    Does PRODUCTION counts as a flavor?

    EDIT: I found the answer.
     
  6. MetalMilitia-

    MetalMilitia- Warlord

    Joined:
    Nov 22, 2004
    Messages:
    132
    What does it actually do? Does it effect which religions the AI will tech for?
     
  7. Yared

    Yared That Guy

    Joined:
    May 21, 2009
    Messages:
    4,516
    Location:
    Hufvudstaden
    I suspect it might have some relevance to the Choose Religion option.
     
  8. jauggy

    jauggy Warlord

    Joined:
    Dec 18, 2008
    Messages:
    240
    Can somebody explain how this works? How can the limit of different religion be -1?
     
  9. Afforess

    Afforess The White Wizard

    Joined:
    Jul 31, 2007
    Messages:
    12,239
    Location:
    Austin, Texas
    Try looking at this page. The modiki is more up to date.
     
  10. deanej

    deanej Deity

    Joined:
    Apr 8, 2006
    Messages:
    4,859
    Location:
    New York State
    The sign specifies if the leader likes or dislikes the factor. - means the attitude goes down. The game does not know which way to go based on modifier (and some modifiers go both ways depending on leader). You can actually mod a leader that likes you when you have a different religion and hates you when you have the same one.
     
  11. jauggy

    jauggy Warlord

    Joined:
    Dec 18, 2008
    Messages:
    240
    I was wondering why iDifferentReligionAttitudeChangeLimit was always -1.

    I mean the negative diplo you get from different religion normally EXCEEDS -1. I'm trying to figure out how the religion penalty is capped (if it is at all).
     
  12. ViterboKnight

    ViterboKnight King

    Joined:
    Feb 6, 2006
    Messages:
    786

    BTS 3.19. iDemandRebukedWarProb is actually implemented. It is called by python (CvDiplomacy), not by SDK. I tested it right yesterday, and it worked.
     
  13. Yamps

    Yamps Deity

    Joined:
    Aug 30, 2007
    Messages:
    2,728
    Location:
    Zagreb, Croatia
    Oh, that's important to know. You should post your find in that war thread as well, it will get far more attention there.
     
  14. Pfeffersack

    Pfeffersack Deity

    Joined:
    May 10, 2003
    Messages:
    2,235
    Location:
    Germany
    I was exactly confused by that as well, when modifying the leaderhead file for the Planetfall Mod. I wasn't able to explain the strange original BTS values, but at least I was able to found out, what happens if you change the tags by a lot of trial-and-error and close observation:

    1. iDifferentReligionAttitudeChange - the instant penalty you get when your religion differs

    2. iDifferentReligionAttitudeDivisor - is used to determine in which intervals the relations further detoriate (see 3)

    3. iDifferentReligionAttitudeChangeLimit - the maximum penalty which can get added to 1) over time

    So the confusing thing is that 1 and 3 are two seperate things, which stack. And on the top of evervthing there is the hardcoded effect that another -1 gets added on top of everything, if the AI leader has the shrine of his/her religion...

    Again, something mysterious happens here in BtS - take Isabella for example, there is just no logical explanation why she can get to -8, while Hannibal cannot despite having the exactly the same values. Nonetheless, even if that explanation does not fit for the actual BTS values, it worked perfectly for me when trying it outside in Planetfall.
     

Share This Page