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

War Weariness Mechanics

Discussion in 'Civ4 Strategy Articles' started by KrikkitTwo, Aug 9, 2006.

  1. cabert

    cabert Big mouth

    Joined:
    Dec 14, 2005
    Messages:
    7,710
    Gender:
    Male
    Location:
    France
    well, if 5 AIs are in the modern age, it's 5 times 11%,
    55% is a lot, isn't it?
     
  2. Roland Johansen

    Roland Johansen Deity

    Joined:
    Apr 29, 2003
    Messages:
    4,292
    Location:
    the Netherlands
    I see no reason to believe that it is related to the number of AI in the modern age. It would destabalize the game if you play against many opponents. Do you have a reason to think that it works like that? :confused:

    My guess would be that all the game elements affected by the 'AI per era modifier' get affected by the modifier once one civilization reaches a new age.
     
  3. cabert

    cabert Big mouth

    Joined:
    Dec 14, 2005
    Messages:
    7,710
    Gender:
    Male
    Location:
    France
    I may be totally mistaken, but that's how I understood this formula :
    x (100+AI Per Era Modifier * Era)% [-1 for everly Level above Noble].

    I will read it again, and try to understand better.
     
  4. Roland Johansen

    Roland Johansen Deity

    Joined:
    Apr 29, 2003
    Messages:
    4,292
    Location:
    the Netherlands
    The AI Per Era Modifier is a value from the file CIV4HandicapInfo.xml (to be exact, the modifier is called iAIPerEraModifier). I think it means 'a modifier for the AI which increases for each era of the game'. But I haven't looked in the SDK to know this.

    It's just a matter of interpretation, I guess.
     
  5. cabert

    cabert Big mouth

    Joined:
    Dec 14, 2005
    Messages:
    7,710
    Gender:
    Male
    Location:
    France
    Ok, and what are the values for era and AIpereramodifier?
    You stated +11% max, but I was under the impression that it somehow doubled for each era.

    nevermind, that's only for AIs.
     
  6. Roland Johansen

    Roland Johansen Deity

    Joined:
    Apr 29, 2003
    Messages:
    4,292
    Location:
    the Netherlands
    The AIperEraModifier is '-1 for everly Level above Noble', thus -1 at prince, -2 at monarch, -3 at emperor, etc. The modifier is 0 for the levels noble and below. I guess that the era's are numbered 1 till 6 (ancient, classical, medieval, renaissance, industrial, modern).

    You mean that only the war weariness of the AI is modified (lessened) by the AIpereramodifier? That could be true. If you read the formula exactly, then this modifier seems to decrease war weariness. It would be unlikely that the people at Firaxis would decrease war weariness at the higher difficulty levels for the human player.

    Only the OP, Krikkitone could tell us what he has read in the SDK. Maybe the modifier is only applied for the AI.
     
  7. cabert

    cabert Big mouth

    Joined:
    Dec 14, 2005
    Messages:
    7,710
    Gender:
    Male
    Location:
    France
    well, seems fair but only a guess




    yep, lower ww on deity than on settler probably is AI only.
    But I'll peek into the SDK (not right now) to check if there is a different formula for the human.

    Or anyone who understands the code ;)
     
  8. Roland Johansen

    Roland Johansen Deity

    Joined:
    Apr 29, 2003
    Messages:
    4,292
    Location:
    the Netherlands
    Uh, of course. Let me know what you find.
     
  9. cabert

    cabert Big mouth

    Joined:
    Dec 14, 2005
    Messages:
    7,710
    Gender:
    Male
    Location:
    France
    hum, Maybe I sounded like I was some kind of professional.
    I'm not.
    Not at all.
    It was more like asking some good wills out there to look it up.
     
  10. Bushface

    Bushface Deity

    Joined:
    Nov 28, 2005
    Messages:
    2,550
    Location:
    Torquay, England
    Krikkitone, in post #7, said that WW from each adversary is kept separate. But if you are fighting two or more opponents then presumably you are affected by the sum of whatever weariness is applied by each. And what happens if one war ends - which should start to reduce weariness - while another continues ?
    Also, nobody has answered the question of air warfare: does this affect WW or not ?
     
  11. _alphaBeta_

    _alphaBeta_ King

    Joined:
    Dec 28, 2005
    Messages:
    976
    Location:
    NJ, USA
    Good question about air power - I would like to know the answer. Did we ever discuss if fighting barbarians affects WW?
     
  12. cabert

    cabert Big mouth

    Joined:
    Dec 14, 2005
    Messages:
    7,710
    Gender:
    Male
    Location:
    France
    there is no ww for barbarians
    (and barbarians don't suffer ww neither)

    I can't answer the question about airfights for sure, but I suspect it doesn't affect ww.
     
  13. ZB2

    ZB2 New wave Ideology

    Joined:
    Aug 1, 2006
    Messages:
    678
    Location:
    Europe
    loosing an aircraft counts as a loss though... i might have missed it, but do you/they get war weariness from loosing a worker? its a unit yes, but not a military one with actual combat..
     
  14. cabert

    cabert Big mouth

    Joined:
    Dec 14, 2005
    Messages:
    7,710
    Gender:
    Male
    Location:
    France
    from post 1
    So I assume that having a worker captured counts as +2 in the ww total.
    Could it be the same for planes? Or is a bombing counted as an attack?
    dunno
     
  15. Mutineer

    Mutineer Deity

    Joined:
    Feb 20, 2006
    Messages:
    3,715
    In time of plances WW tend to be so hight it does not matter.
    One has to run full combination of Polica state/Rasmore/Jail to survive anyway.
     
  16. ZB2

    ZB2 New wave Ideology

    Joined:
    Aug 1, 2006
    Messages:
    678
    Location:
    Europe
    Oh right, thankyou.

    [quute]One has to run full combination of Polica state/Rasmore/Jail to survive anyway.[/quote]

    you can say that again, haha. long wars end up with 6 population cities.. all drafted. :)
     
  17. Nacht

    Nacht Chieftain

    Joined:
    Aug 27, 2006
    Messages:
    29
    Location:
    Amsterdam
    It is indeed. And it is applied to almost any modifier in the game for the AI; multiplied by 0 in the ancient age to 5 in the modern age.
     
  18. Roland Johansen

    Roland Johansen Deity

    Joined:
    Apr 29, 2003
    Messages:
    4,292
    Location:
    the Netherlands
    Ok, thank you. The modifier then works as expected. Good to have a confirmation.
     
  19. Perugia

    Perugia Prince

    Joined:
    Jun 18, 2001
    Messages:
    524
    Location:
    Lancing, UK
    Reading the OP, I could understand the formula as it relates to human players but like others got confused on the last 2 lines with the iAIWarwearinessPercent & iAIPerEraModifier. So I copied the relevant rows of CIV4HandicapInfo.xml into a spreadsheet and applied the formulas for the AI WW reduction.


    As you can clearly see from the table, at Deity, in the Ancient Age, the AI gets 20% of the WW of a human falling to 15% in the Modern Age which is indeed a modest 25% reduction (Roland J gave 24% in post #40).

    The table is rounded to the nearest 1% but a spreadsheet is attached for anyone that wants to check.
     

    Attached Files:

  20. Roland Johansen

    Roland Johansen Deity

    Joined:
    Apr 29, 2003
    Messages:
    4,292
    Location:
    the Netherlands
    Ah, yes. That was based on the assumption that the first age of the game would be numbered 1, but it is instead numbered 0 according to the post by Nacht a few posts above yours.

    It's the difference between 125/100 and 130/105. You are right of course. :)

    The table looks nice and clear.
     

Share This Page