Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > Civ2-Strategy-Archive > Defense Multipliers
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread   
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
Edward is offline Edward
Warlord

Apr 2000
time: 00:12
Post  Old Post 13-06-2000 18:22
Edit/Delete Message Reply w/Quote
#31 Report this post to a moderator
Support Apolyton, buy Civilization 2

Sieve Too,

Civ II multiplies in a random number (0 to 7?, 0 to 8?). Defenders win ties. That means that with even odds, defenders win slightly more often than the attacker. Notice that the winner was always a defending warrior with (using summing) even odds of winning. He won due to defender bias.

(Edward reads #5, where the archer's extra attack point with summing should easily overcome any 8-sided die defender bias)

Hey!!! Are you using MGE or 2.42? Double production? Were those NON warriors? (sputter sputter)

Another theory dashed by cruel reality.

Thanks, Sieve Too, for straightening me out. I think I should refrain from posting until I learn a bit more about this game.

Sieve Too is offline Sieve Too
Prince
New Hampshire, USA
Jan 1970
time: 05:12
Post  Old Post 13-06-2000 18:37
Edit/Delete Message Reply w/Quote
#32 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

quote:

That means that with even odds, defenders win slightly more often than the attacker.


True, but when A = D, the Defender always won. Although I didn't bother collecting final hps for the winner, the defender was usually still in the yellow.

I am using the version 2.78 of CivII, FW.

I've always planned on doing more tests but I just lack the time

Xin Yu is offline Xin Yu
King
Emeryville, CA, USA
Jan 1970
time: 21:12
Talking  Old Post 13-06-2000 20:29 Visit Xin Yu's homepage!
Edit/Delete Message Reply w/Quote
#33 Report this post to a moderator
Enter the AD-FREE zone

Edward: Your formula can't be correct. A vet Iconclad has 4*(1.5)*3*1=18, a non-vet pikemen (on grass unfortified) has 2. By your formula the Pikemen would win 1 out of 10 battles. No, the pikemen got no chance at all.

Sieve Too is offline Sieve Too
Prince
New Hampshire, USA
Jan 1970
time: 05:12
Post  Old Post 14-06-2000 09:28
Edit/Delete Message Reply w/Quote
#34 Report this post to a moderator
Inflate your Upload Space

For an (exhaustive) discussion of battle odds, check out This Apolyton page from the archives.

Mark von Wagner was nice enough to make a Visual Basic program that calculates battle odds, given unit stats that you can input. Right here is a link to his download page.

geofelt is offline geofelt
Prince
Neptune Beach,Florida,USA
Jan 1970
time: 00:12
Post  Old Post 13-06-2000 23:27
Edit/Delete Message Reply w/Quote
#35 Report this post to a moderator
Get a bigger avatar today!

Thanks-s2, your first test shows me that the vet attribute is not rounded.
To complicate the picture, may I suggest that both addition and multiplication are involved. I think that the vet attribute becomes intrinsic to the unit. A vet warrior attacks and defends at 1.5. I think, however that the defense values are ADDED, based on the base value(vet or non-vet) of the unit. With only one defense modifier, the question is academic, because the results will be the same. With more than one, there can be a huge difference, and I think they are additive then. I base this in part, because other types of calculations are additive. For example, a factory increases production to 1.5 times the base. The same result as adding 50% of the base or multiplying by 1.5. When you add a power plant, the actual result is 2, not 2.25. A mfg plant goes to 2.5, not 3.375. The same applies to trade and science. I think the programmers would have used a consistent technique.

Sieve Too is offline Sieve Too
Prince
New Hampshire, USA
Jan 1970
time: 05:12
Post  Old Post 14-06-2000 01:50
Edit/Delete Message Reply w/Quote
#36 Report this post to a moderator
Increase the size of your Attachments

One of the reasons I ran tests #2, #3 and #4 is to completely test all the combinations when 2 of the 3 modifiers are applicable (vet, terrain, fortifying). Test #4 tries the combination of a non-vet Warrior fortifying in a forest. The results are the same as a vet unit with one other modifier.

Although I didn't state it above, besides running 20 Horsemen into 20 Warriors in tests 2, 3 and 4, I also reran tests 2, 3 and 4 but attacked with Archers. In all 20 cases, the Archer won. So since a=2 Horseman always lost but a=3 Archer always won, I concluded that the Warrior's defense must be between 2 and 3.

For test #5, I also ran 20 Legions into the 20 Warriors and the Legions always won. As such, I concluded that the Test #5 Warrior's defense must be between 3 and 4.

If, as you suggest, vet status became instrinsic to the unit as a multiplier and THEN the terrain and fortifying bonuses where added in, you'd have D = (B*V) + (B*V) * T + (B*V) * F
where
D = total defense
B = base value
V = 1.5 for vets, else 1
T = terrain bonus, 0.5 for forest, 0 for grass, etc
F = fortifying bonus, 0.5 for fortifying, 0 for no fortifications, etc

Recalculating D for tests 2, 3, 4 and 5:
#2 D = (1*1.5) + (1*1.5)*0.5 + (1*1.5)*0 = 2.25
#3 D = (1*1.5) + (1*1.5)*0 + (1*1.5)*0.5 = 2.25
#4 D = (1*1) + (1*1)*0.5 + (1*1)*0.5 = 2
#5 D = (1*1.5) + (1*1.5)*0.5 + (1*1.5)*0.5 = 3

If defense was calculated this way, then in test #4, I would not expect all 20 Horsemen to lose, but they did. This suggests the Warrior's defense was between 2 and 3 and so defense could not be calculated as above.

For test #5, I would not expect 19 Archer wins and just 1 Warrior win. The results suggest that the Warrior's defense was between 3 and 4, not 3.

Hasdrubal is offline Hasdrubal
Prince
Carthage.
May 2000
time: 05:12
Post  Old Post 14-06-2000 06:56 Visit Hasdrubal's homepage!
Edit/Delete Message Reply w/Quote
#37 Report this post to a moderator
Enter the AD-FREE zone

Combat calculations:
IMO, if an attacker with an attack value of 18 attacks a defender with a defence value of 12, the AI will throw thirty papers in a hat, 18 reading 'attacker' and 12 reading 'defender'. The AI will then pull out one paper, and grant a 'win' to the one who's name is one the paper. It will then deduct the FP from the winner from the HP of the loser. (the hitpoints of both have been multiplied by ten before the battle commenced). This process is repeated until either one loses all it's hitpoints.

Testing:
The most reliable way to test battle-calculations, is not by counting how often a unit will win over an other, but by checking the 'damage to hitpoints' under the cheat menu. This will give a clear indication of what damage was sustained by the victor, giving a clue as to how the battle outcome was resolved. If you set the HP of both combatants to 100, one battle outcome will have the same statistical value as 100 seperate tests with a unit which has a HP of one.

Addition or multiplication?:
I tested my question on whether combat multipliers were added up or multiplied. I used a veteran, fortified warrior on a river for this. His defensive value is one of these:
A - addition. The results are rounded down before the next multiplier is added: 1+,5+,5+,5= 1.
B - addition. The results are not rounded down before the next multiplier is added: 1+,5+,5+,5= 2,5. Or 2 if the final result is rounded down.
C - multiplication. The results are rounded down before the next multiplier is applied: 1*1,5*1,5*1,5= 1,5. Or 1 if the final result is rounded down.
D - multiplication. The results are not rounded down before the next multiplier is applied: 1*1,5*1,5*1,5= 3,375. Or 3 if the final result is rounded down.

When a non-veteran horseman attacks our well trenched-in warrior, the odds are:
A 2:1 or 66%.
B 2:2,5 or 2:2 or 44,44%/50%.
C 2:1,5 or 2:1 or 57,14%/66,66%.
D 2:3,375 or 2:3 or 37,21%/40%.
I set the HP of both to 100, and attacked ten times. The warrior won all ten battles, with an avarage sustained damage of 36,3. This means, that from the 100 attacks, the horseman won 36,3, that is 36,3%. Less than 1% off from the 37,21% that was predicted in case D. With such a slight margin, and considering that this battle calculation was made a thousand times by the AI, I think it is a safe bet to assume that defence multipliers are multiplied, that the result is not rounded down before the next multiplier is applied, and that the final result is also not rounded down. As some other people have said here before.
I'm a bit puzzled by the fact that the final result doesn't seem to get rounded down, as the manual clearly states otherwise. But then, our Civ manual doesn't have a reputation for accuracy.

------------------
Ceterum censeo Romanem esse delendam.

Xin Yu is offline Xin Yu
King
Emeryville, CA, USA
Jan 1970
time: 21:12
Post  Old Post 14-06-2000 08:30 Visit Xin Yu's homepage!
Edit/Delete Message Reply w/Quote
#38 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

Not quite right. Actually there are 136.3 round all together and the horse won 36.3 and lost 100.

East Street Trader is offline East Street Trader
Prince
London, United Kingdom
Jun 2000
time: 05:12
Question  Old Post 14-06-2000 11:32
Edit/Delete Message Reply w/Quote
#39 Report this post to a moderator
Put an end to popups!


I've been speculating lately as to whether the A1 enjoys a higher defense bonus against barbs than we do.

Anyone know the answer to that?

East Street Trader

DaveV is offline DaveV
King
USA - EDT (GMT-5)
Jan 1970
time: 00:12
Post  Old Post 14-06-2000 14:44
Edit/Delete Message Reply w/Quote
#40 Report this post to a moderator
Avatar Enlargement: We've got the solution

OK, here's another crack at a battle approximator:

Compare (defense+bonus)*HP*FP to (attack+bonus)*HP*FP, where bonus = defense - attack if defense >= attack. Going back to Cavebear's example (yet again), the vet musketeers have a defense of 3(base)*1.5(vet)*3(walls)=13.5; the vet pikemen have a bonus of 2(base)*1.5(pike bonus)*1.5(vet)*3(walls)=13.5. Attacking dragoons are 5*1.5(vet)=7.5. So, both the musketeers and pikemen receive a bonus of 6, for a total defense of 19.5. The musketeers have 2 HP, so their total is 39. This means it will take 2.6 dragoons to kill a musketeer, and 1.3 dragoons to kill the pikemen. I ran the attack with 10 dragoons and lost 6 (5 predicted). One of the attacking dragoons appeared to do no damage at all to the defending musketeer, so his loss may have been a quirk of the random number generator.

With respect to the bonus to the attacker when attack > defense: I don't believe it. Take the example of horsemen vs. settler: the horse has an attack of 2 vs. a defense of 1, so should get a bonus of 1 for odds of 3:1. But my experience has been that horse vs. settler is pretty much a coin flip, more like 2:1 odds (the settler has 2x as many hitpoints). I ran five attacks of horse against settlers in clear terrain; the settlers won 3 times.

EST: I think the barbs definitely don't get the attack bonus against the AIs that they do against a human player. There may also be a defensive bonus - maybe someone should run some tests?

Sieve Too is offline Sieve Too
Prince
New Hampshire, USA
Jan 1970
time: 05:12
Post  Old Post 14-06-2000 17:30
Edit/Delete Message Reply w/Quote
#41 Report this post to a moderator
Avatar Enlargement: We've got the solution

Hasdrubal:

quote:

IMO, if an attacker with an attack value of 18 attacks a defender with a defence value of 12, the AI will throw thirty papers in a hat, 18 reading 'attacker' and 12 reading 'defender'. The AI will then pull out one paper, and grant a 'win' to the one who's name is one the paper.


Oddly enough, this is not how the winner of a single combat round is determined. Even the manual concedes that this method yields only an approximation of the actual odds. I used to think this was how it was done too but I was proven wrong.

Turns out, the computer takes the A and D values and multiplies them by some constant k (later experimentation determined k=8). The computer then gets two pseudo-random numbers, one for the attacker and one for the defender: the first number ranges from 0 to A*k-1, the second from 0 to D*k-1. The higher value wins the round and the winner's FP is subtracted from the loser's HP. Ties count as wins for the defender (This explains why you can lose an occasional round when you attack a D=0 Diplomat).

For all the gory details click here. This is the same link as I gave above.

Hasdrubal is offline Hasdrubal
Prince
Carthage.
May 2000
time: 05:12
Post  Old Post 16-06-2000 02:31 Visit Hasdrubal's homepage!
Edit/Delete Message Reply w/Quote
#42 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Sieve Too, I regretfully overlooked your link the first time you posted it. Thanks for supplying it!
Xin Yu, you're quite right. Argghh! This brings back horrible memories of me, school and math.

[This message has been edited by Hasdrubal (edited June 15, 2000).]

Sten Sture is offline Sten Sture
Emperor
SF, CA don't call it frisco... Striker!!
Mar 1999
time: 21:12
Cool  Old Post 16-06-2000 03:57 Visit Sten Sture's homepage!
Edit/Delete Message Reply w/Quote
#43 Report this post to a moderator
Increase the size of your Attachments

LoL! I regretfully reread that entire old post. It gave me a headache just like last time!

 
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:12.
Apolyton Time is 00:12.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0446 seconds (90.17% PHP - 9.83% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net