 |
|  |
 |
|
boojumhunter
|
 |
Toronto, Canada
Nov 2001 time: 00:16
|
|
Hi folks,
A simple enough question.
In combat... who gets to inflict damage first? The attacker or the defender?
The implication is rather significant. Two equally matched opponents... each with 1 hit point left... and a 50% chance of inflicting damage... the one with the initiative has a huge advantage.
I'm writing a little basic program (which I'll post) to simulate 10,000 battles for each of the 25 possible situations between 2 units... ie. 1 hp vs 1,2,3,4,5 hps, 2 hp vs 1,2,3,4,5 hp etc. etc. providing the chance of winning for each encounter... all you do is enter the modified 'attack' strengths for each of the two units... BUT it REALLY matters who hits who first...
Here's a sample assuming the attacker has the advantage.
attacker chance to hit: .5
defender chance to hit: .5
Atk 1 vs. 1 -- 6696/3304 66.96% wins <--- if the defender had the advantage? this is different...
Atk 1 vs. 2 -- 2178/7822 21.78% wins
Atk 1 vs. 3 -- 715/9285 7.15% wins
Atk 1 vs. 4 -- 242/9758 2.42% wins
Atk 1 vs. 5 -- 76/9924 0.76% wins
Atk 2 vs. 1 -- 8903/1097 89.03% wins
Atk 2 vs. 2 -- 6029/3971 60.29% wins
Atk 2 vs. 3 -- 2989/7011 29.89% wins
Atk 2 vs. 4 -- 1279/8721 12.79% wins
Atk 2 vs. 5 -- 506/9494 5.06% wins
the final program will lay hese results out in a nice 'grid'
But... I first need the answer to who draws first blood? Attacker or defender?
Peter

|
|
|  |
 |
|
Bobstah
|
|
No one attacks first. Combat is based on rounds. The percentage chance is to win a round rather than to a score a hit.
Your task is sadly a fool's errand because combat is not as simple as attack and defence values. There is the phenomenom of 'streakiness' to account for.
Have a look at the 'Random number generator has to be broken' thread.
|
|
|  |
All times are GMT. The time now is 05:16. Apolyton Time is 00:16. |
top of page
|
| archivepost |
|
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
|
|
|
|
|
|