Announcement

Collapse
No announcement yet.

Defense Multipliers

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    A battle is resolved in a series of exchanges, with the loser losing the attacker's hit points, and deductint it from it's reserve of hitpoints*10.
    In the given example, the alpine's defense basic defense is 5 which is increased to 7 for vet status(rounded down). Tripling for walls, the defense factor is 21. The attacker, a vet armour is 10, increased to 15 for vet status. The alpine will have a reserve of 20 hit points, and the armour 30. The odds of winning a round for the defending alpine is 21/(21+15) or 21/36 or 58%. The odds of the armour losing are therefore 42%. --decimals dropped---
    On the average, the alpine will lose .42 hitpoints each turn from it's reserve of 20, making it last(20/.42) or 47.6 exchanges. The armour, will lose more exchanges, but it has more hit point reserves. It will expect to lose .58 points each turn when attacking from it's reserve of 30, lasting(30/.58) 51.7 turns, making it a winner by a 51.7 to 47.6 margin.
    If you put the alpine on a river or forest, it adds .5 of 7 to the defense of 21, giving it a total defense of 24 which is enough to turn the tables, giving it a likelyhood of surviving of 52 to 48.

    Comment


    • #17
      correction; the loser loses the attacker's firepower, not hit points. In this case, the firepower of both units is 1. That is why artillery with 2 firepower is so powerful.

      Comment


      • #18
        Other question:

        I always thought that defence bonusses were added up, nut multiplied. That is,
        A vet(+50%) fortified(+50%) rifleman(def 4)on a river(+50%)= 4+2+2+2=10.
        Or have I been wrong, and is it like this:
        A vet(+50%) fortified(+50%) rifleman(def 4)on a river(+50%)= 4*1.5*1.5*1.5=13 (with 13,5 rounded down)?



        ------------------
        Ceterum censeo Romanem esse delendam.
        Hasdrubal's Home.
        Ceterum censeo Romam esse delendam.

        Comment


        • #19
          Dave V: If the musk is not vet (attack 3), then the pikemen (defense 2*1.5*1.5) gets twice the difference between attack and defense. So pikemen is really 4.5+(4.5-3)=6. Then we consider HP and FP and conclude that the chance for a non-vet musk attacking a vet fortified pikemen is 50%.

          Comment


          • #20
            Xin Yu - you lost me. Are you saying the pike gets an extra bonus, even against a two-legged unit?

            Comment


            • #21
              Remember that the Pikeman bonus only applies to units with 1 HP. Pikemen are no better than Phalanx against 2 HP units like Dragoons or Cavarly.

              Defensive bonuses are always multiplied together, not added. Fractions are not dropped.

              Xin Yu's odds are per-round odds, not the odds that one unit will defeat another. One reason Armor can beat Alpine behind walls is that they have 3 HP vs the Alpines's 2 HP. As geofelt notes, FP makes a difference too. Artillery needs to win only 10 rounds against a 2 HP unit because of its FP of 2. High FP is also what makes air units so devastating.

              Comment


              • #22
                A more linear way of testing the combat formula is using the simplified combat. The test result is less tedious to collect because if you use traditional combat, whenever one does combat testing, it is too tedious to mark down the HP left for each result. This would make the estimation of the correct mean more difficult given same number of testing.
                Xin Yu's description is very good. But I have some doubt about the multiplier 8. It is most likely to be a 2^n. 4 is unlikely. But 16 is also possible.
                I don't know if Xin Yu gets it from experience or through rigorous testing.
                As an aside, anyone has the proper trade formula? The one claimed to be tested by some of the veterans here are not in the archives. I am not talking about the one from the strategy guide.

                PS I also have doubt on the case where the more powerful unit having twice the advantage as the lesser unit as stated by Xin Yu in his first answer, last paragraph.
                We have to do more empirical testing or just try to hack into the code to get a confirmed result.
                [This message has been edited by pikachu (edited June 12, 2000).]

                Comment


                • #23
                  Thanks everyone for sheading more light on the battle calc. I have recently downloaded the battle calc Vbasic program, but I haven't used it yet - IIRC one of you guys (edit Mark Wagner - thanks) designed the thing... is it correct? -> Yes!

                  quote:

                  <font size=1>Originally posted by Sieve Too on 06-12-2000 09:27 AM</font>
                  Remember that the Pikeman bonus only applies to units with 1 HP. Pikemen are no better than Phalanx against 2 HP units like Dragoons or Cavarly.


                  In Capt Nemo's Red Front scenario there is an anti-tank unit 7a/3*d/1m 2hp/4fp that is supposed to be bonus defensively vs armor. Since the armor has 2 or 3 HP it doesn't work that way.

                  Does anyone know if the bonus is also limited to attacking units with 2move and no more??
                  [This message has been edited by Sten Sture (edited June 13, 2000).]
                  Be the bid!

                  Comment


                  • #24
                    First it is not my formula, I just simplified it. Somebody needs to dig this forum to find the original thread.

                    Let's compare the odds of 'attacker wins a round' in this formula with the one suggested in the strategy guide:

                    Strategy Guide: a/(a+d)

                    This Formular: (a+(a-d)+)/(a+d+|a-d|)
                    Where (a-d)+ is the positive part of (a-d), and |a-d| is the absolute value of (a-d).

                    Example: non-vet musk attack fortified vet pikemen. a=3, d=2*15*1.5=4.5.

                    Using Strategy Guide Formula: a/(a+d)=0.4. Musk wins 4 rounds out of 10, or 10 rounds (enough to defeat the pikemen) out of 25. Since Musks have 2*10 hp, on the average the Musk will eliminate the pikemen with 5 hp left.

                    Using This Formula: (a+(a-d)+)/(a+d+|a-d|)=(3+0)/(3+4.5+1.5)=1/3. Musk wins 10 rounds out of 30. Since Musks have 2*10 hp vs the 1*10 hp of pikemen, on the average the Musk will have 0 hp left when the pikemen is eliminated. In other words, a 50-50 chance. (Since the defender has an edge in civ2, the pikemen is more likely to survive).

                    Now somebody needs to do a test using 100 musks against 100 fortified pikemen. Then we'll know which formula is wrong.

                    Comment


                    • #25
                      First, I want to thank everyone for the detailed discussion of the battle calculations. I can even follow the math (yes, I remember absolute values, too). But what's next, the square root of i? *s*

                      Second, "ARGGGHHH!" In a practical sense, I am completely lost. Unless the relative values of the units (on a unit by unit comparison) is captured intuitively somehow, I see little hope of being able to estimate how to proceed in multiple unit affairs.

                      How can I possibly make a decent estimate of how 4 dragoons, 2 musketeers, and a pikesman will do against an unknown size 5 city (probably 2 musketeers and a pikesman behind city walls on grass)?

                      Mainly, though, I mean how can I best (in real time) estimate a battle outcome? Any idea within 20% of accurate would probably be good enough (is even *that* achievable?).

                      Granted that the game is an art, and you only get to do detailed calculations against the AI, but isn't there a workable "rule of thumb" that can help? What is the simplest expression of factors that is meaningful?
                      Civ2 Demo Game #1 City-Planner, President, Historian
                      Civ2 Demo Game #2 Minister of War,President, Minister of Trade, Vice President, City-Planner
                      Civ2 Demo Game #3 President, Minister of War, President
                      Civ2 Demo Game #4 Despot, City-Planner, Consul

                      Comment


                      • #26
                        Cavebear - I estimate battle odds by comparing attack*HP*FP to defense*HP*FP, and don't ever recall being shocked by the results. In your example (assuming all units are vets), the defending musketeers are 3*2*1.5(base)*3(walls) = 27 on defense; the pikeman is 2*1.5(base)*3(walls) = 9. The dragoons will be 5*2*1.5 = 15 on attack; the musketeers will be 9 on attack. So, as the attacker, I'd expect to lose a dragoon and have another badly damaged against each musketeer, and probably lose a musketeer against the pikeman. If the attacker uses his last musketeer to finish off the pikeman, his pikeman can take the city. Pretty dicey for my tastes.

                        Comment


                        • #27
                          WARNING!! WARNING!!
                          The formula here for factoring multipliers has been proven to be incorrect. Combat multipliers are multiplied, not summed. It's left in it's original form so the debate on this thread will be easier to follow.


                          quote:

                          How can I possibly make a decent estimate of how 4 dragoons, 2 musketeers, and a pikesman will do against an unknown size 5 city (probably 2 musketeers and a pikesman behind city walls on grass)?



                          Cavebear,

                          As DaveV pointed out, it seems the heuristic is:

                          rating = combatvalue*hitpoints*firepower

                          where, for the attacker, combatvalue =
                          unit's attack * [1 + (.5 if vet)]

                          and for the defender, combatvalue =
                          unit's defense * [1
                          + (.5 if vet)
                          + (.5 to 2 for terrain modifier)
                          + (only the best of: 1.5 if fortified, 1 if in fort, 2 if in city walls, 1 if with SAM battery, 1 if in coastal fortress)
                          + (1 if there's any special unit to unit stuff like pikeman vs. knight)
                          ]

                          (I think Hasdrubal is correct, modifiers are summed, not multiplied; much like the fact that a library and university combo doubles a city's research (1*[1+.5+.5]), NOT (1*1.5*1.5 = 2.25) times as much research. I'm in the minority on this view.)

                          Compare the ratings of the attacker and the defender. The higher rating will most likely win the battle. The greater the difference, the more accurate the prediction. The greater the hitpoints involved in the battle, the more accurate the prediction.

                          To help you do this in real-time, you can see that for healthy units you don't need to remember the hitpoints, firepower, etc. Just make a chart where each unit only has one number (attack*firepower*hitpoints) for attack and one number (defend*hitpoints*firepower) for defense. Right before the battle you can modify for city walls and vet status. If a unit is in the yellow or red, multiply his rating by 2/3 or 1/3 respectively.

                          Due to loss of hitpoints, the victorious unit will come out with a rating, on average, of (victor's rating - loser's rating). Therefore to predict whether a city will be sacked, you can add up all the attacking units' ratings and compare with the sum of the defending units' ratings. Of course this is VERY rule-of-thumbish.

                          For your example (assuming no vets):
                          I look at my chart (or remember after a while):
                          dragoons are rating = 10 on attack (5*2*1)
                          musketeers are rating = 6 on attack (3*2*1), 18 if defending behind city walls (3*2*1)*(1+2).
                          pikemen are rating = 1 (1*1*1) on attack, 6 if defending behind city walls (2*1*1)*(1+2).

                          So the attackers are (4*10) + (2*6) + 1 = 53.
                          The defenders are (2*18) + 6 = 42.

                          Looks like you'll take the city. (But at only 5 to 4 odds, it'd be risky.)

                          DaveV used a similar formula to run through individual wins/losses and I'm sure arrived at a more accurate prediction of the battle's outcome.
                          [This message has been edited by Edward (edited June 13, 2000).]

                          Comment


                          • #28
                            I tried Xin Yu's experiment, but only used 20 units because I'm lazy. I put 20 vet pikemen on river squares (2*1.5*1.5=4.5 defense) and attacked with 20 non-vet musketeers (3 attack). Results: 11 musketeers, 9 pikemen survived. This tends to bear out the 50-50 odds theory.

                            Comment


                            • #29
                              quote:

                              Hasdrubal is correct, modifiers are summed, not multiplied;


                              This is incorrect. My tests show the opposite.

                              I started with the assumption that the higher value (either attack or defense) should win more often against the lower value. From there, I changed all unit hitpoint values to 10, i.e. 100, and all FP values to 1. This way a very large sample of pseudo-random numbers would be used in each battle, reducing the effects of localized bias. I ran 20 trials of each of the below tests:

                              1) Vet Warrior attacks non-vet Warrior on grass. Both summing and multiplying predict the Vet Warrior to win - and he did all 20 times. This test was run just to prove that fractions are not rounded down.

                              2) Horseman (a=2) attacks Vet Warrior in a forest. Summing predicts an even match. d = (1+.5+.5 = 2). Multiplying predicts a likely win for the Warrior. d = (1*1.5*1.5 = 2.25).
                              Outcome: Warrior wins all 20 battles.

                              3) Horseman (a=2) attacks Vet Warrior fortifying on grass. Same as #2. Summing predicts an even match. d = (1+.5+.5 = 2). Multiplying predicts a likely win for the Warrior. d = (1*1.5*1.5 = 2.25).
                              Same outcome: Warrior wins all 20 battles.
                              This test and the next one prove that all bonuses are treated the same, i.e. all are multiplied.

                              4) Horseman (a=2) attacks non-vet Warrior fortifying in a forest. Same as #2 and #3. Summing predicts an even match. d = (1+.5+.5 = 2). Multiplying predicts a likely win for the Warrior. d = (1*1.5*1.5 = 2.25).
                              Same outcome: Warrior wins all 20 battles.

                              5) Archer (a=3) attacks Vet Warrior fortifying in a forest. Summing predicts a win for the Archer. d = (1+.5+.5+.5 = 2.5). Multiplying predicts a win for the Warrior. d = (1*1.5*1.5*1.5 = 3.375).
                              Outcome: Warrior wins 19 battles, Archer wins 1 battle.

                              Conclusion: Bonuses are multiplied, not summed.

                              The only anomaly is the one Archer win during test #5. I explain that one away due to the quirkiness of the pseudo-random number generator.

                              [This message has been edited by Sieve Too (edited June 13, 2000).]

                              Comment


                              • #30
                                DaveV,

                                My formula predicts that the musketeers have a rating of (3*2*1) = 6. The pikemen have a rating of (2*1*1) * (1+.5+.5) = 4. The odds are 3 to 2. The musketeers will win, on average, 12 of 20; the pikemen will win 8 of 20. I'm only off by one battle! Of course it's also only off of 50-50 odds by one battle.

                                I suggest you repeat the experiment until the results conform to my formula.

                                Comment

                                Working...
                                X