Originally Posted by
Addwind
So what does that mean?
The whole statement of ratio weighted at 50% is confusing and unclear. Assuming that the attacker's def and defender's attack has no bearing on the calculation... help me understand what weighted ratio mean in Gree's world?
Example:
Category 1 (50%):
Attacker attack: 1b
Defender's def: 800m
Category 2 (20%):
Attacker's soldier attack equipment: 16
Defender's soldier def equipment: 18
Category 3 (30%):
Attacker's army attack equipment: 8
Defender's army def equipment: 11
Are you saying in the example above, attacker wins Cat 1 by 20%, defender wins cat 2 by 11% and defender wins cat 3 by 27%.
Then u weight cat 1 by 50%, so attacker has 20% x 0.5 = 10% "battle win"
and weight cat 2 by 30%, so defender has 11% x 30% = 3% "battle win"
and weight car 3 by 20%, so defender has 27% x 20% = 5% "battle win"
So attacker wins battle (although only winning 1 category) because he has 10%, compared to defender's 3% + 5% = 8%?
Is that what all this weighted stuff means? Or calculated some other way?
Then scrub all that, and apply "up to 50%" (not = 50%) and recalculate:
Floating point: Weighted Multiplier Cat 1 = random number (0 to 0.5)
Floating point: Weighted Multiplier Cat 2 = random number (0 to 0.3)
Floating point: Weighted Multiplier Cat 3 = random number (0 to 0.2)
Calculate: Battle results()
Output: Battle results()
And output we get:
Error. Stack overflow.
So:
Battle Results = random()