1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  3. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  4. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  5. Dismiss Notice
  6. Forum account upgrades are available for ad-free browsing.
    Dismiss Notice

FfH2 0.40 Changelog

Discussion in 'Civ4 - Fall from Heaven' started by Kael, Dec 8, 2008.

  1. Love

    Love Chieftain

    Joined:
    Feb 25, 2006
    Messages:
    5,343
    Location:
    On the island of fun!
    äwesome!!!
     
  2. Marnok

    Marnok Marnok

    Joined:
    Mar 24, 2008
    Messages:
    506
    me be excited!
    :clap: excellent solution to the Archer situation, makes them feel more like proper archers now.
    any way to add traits to a player in-game? Evil Marnok wants to punish players who make made decisions in events!
    I am going to hijack this for my own uses!
    Good, much neater! Especially the Bowyer.
    Does this reveal treasure chests?
    Al very welcome...
    ... especially this!
    Excellent. Not that it bothers me particularly!


    This is going to be the best xmas ever!
     
  3. Methuselah

    Methuselah Chieftain

    Joined:
    Dec 28, 2007
    Messages:
    677
    Ah good, I can stop using advanced start now. :)
     
  4. Mailbox

    Mailbox Chieftain

    Joined:
    Oct 6, 2007
    Messages:
    873
    Yeah, look at the Letum Frigus event for adding a trait to the Illians. :)
     
  5. Merddyn

    Merddyn Scholar of the Arcane

    Joined:
    Oct 23, 2008
    Messages:
    175
    Location:
    Somewhere Far Beyond Your Reality
    I'm actually wondering... Will attacking a stack with fireballs reduce their number of available defensive strikes?

    If not... I may be forced to use summons a lot more... (-Hates using summons-)
     
  6. Morikal

    Morikal Chieftain

    Joined:
    Dec 7, 2005
    Messages:
    37
    Sorry for being so newbish, but what is a UU?
     
  7. Algeroth

    Algeroth 8 and 1/2

    Joined:
    Sep 10, 2006
    Messages:
    1,466
    Location:
    Прага
    Even without scenarios, this looks way much better than changelog for 0.34. Great work!
     
  8. Dreylin

    Dreylin Cousin Itt!

    Joined:
    Dec 15, 2005
    Messages:
    755
    Location:
    Houston, TX
    Does that include the Sheaim Manticores? 13/9 seems a bit strong to be getting for just a Stable....
     
  9. Psycho_Ivan

    Psycho_Ivan Chieftain

    Joined:
    Oct 6, 2008
    Messages:
    218
    It's a unique unit. For example the Amurite Firebow which replaces the regular Longbow and is a unique replacement because of it's ability to cast Fireball when properly promoted.
     
  10. Elm

    Elm Chieftain

    Joined:
    Aug 20, 2007
    Messages:
    202
    Invisible workers. That's nice.

    But I guess there is no way to upgrade old versions to ones with new promotions? Like, visit a city with the Adularia Chamber, and re-fit the golem with the promotion (maybe for a cost).
     
  11. jimi12

    jimi12 Half Jedi

    Joined:
    May 20, 2006
    Messages:
    324
    Location:
    WA State
    It almost seems like its not possible. Ive been playing ffh since the when i thought it couldnt get any cooler when there were mages that could cast fireballs in ffh1. ill be sad to see all the new ideas come to a conclusion.
     
  12. Xuenay

    Xuenay Chieftain

    Joined:
    Jan 1, 2006
    Messages:
    559
    Location:
    Finland
    You can account for it, the math just isn't entirely straigthforward. :) The simplest method is probably that you first calculate the expected damage from a strike, then subtract that from the attacker's starting strength (the combat odds already takes it into account if the attacker is damaged, so the subtraction part shouldn't be a big issue).

    The expected damage is a bit trickier than a straightforward expected value calculation, but it's still doable. Let's use Kael's example and assume we have three longbowmen, two with a 30% and one with a 50% chance to defend. The % that none of them makes their roll is 70% * 70% * 50% = 24.5%. Conversely, the % that at least one of them makes their roll is 75.5%.

    Now we need to estimate the damage done, assuming at least one of them succeeds. Since only the highest-hitting longbowman delivers the blow if multiple units make their roll, and he has an independent 50% to succeed, then we get straightforward result that there's a 50% chance for him to deliver the blow.

    So we now have:

    24.5% - nobody delivers damage
    50.0% - drilled longbowman delivers damage
    74.5% - sum of these two

    Since all the sum of all probabilities must be 100%, this leaves us with a 25.5% chance that one of the two remaining crossbowmen manage to deliver the blow. So the expected damage is:

    0.245 * 0 = 0
    0.500 * 25 = 12.5
    0.255 * 15 = 3.825
    = 16.325

    What if one of the two other longbowmen would've had a single drill promotion, so that'd we have longbowmen with the odds 30%, 40% and 50%?

    In this case, the odds that nobody makes their roll would be 70% * 60% * 50% = 21%. The Drill II longbowman still has a 50% of delivering his hit, in which case the odds of the two others are irrelevant. The Drill I longbowman has a 40% chance of delivering his hit, but only if the Drill II longbowman fails in his attempt. The Drill 0 longbowman has a 30% chance of delivering his hit, but only if the Drill II and Drill I longbowmen both fail in their attempts. So

    P(nobody delivers damage) = 21%
    P(Drill II delivers the blow) = 50%
    P(Drill I delivers the blow) = 40% * 50% = 20%
    P(Drill 0 delivers the blow) = 30% * 60% * 50% = 9%

    (The probabilities sum up to 100%, so we got this result correct.) Therefore the expected damage is:

    0.21 * 0 = 0
    0.50 * 25 = 12.5
    0.20 * 20 = 4
    0.09 * 15 = 1.35
    = 17.85

    One more case. What if, instead of one Drill II longbowmen, we'd had two? (and one with, say, Drill I) In that case, P(nobody hits) = 15%. If either of the two Drill II longbowmen hit, one of them delivers the damage. The probability that neither of them hit is 25%, so a 75% that at least one of them hits. That leaves us with a 10% chance that the Drill I longbowman is the one to deliver the blow.

    0.15 * 0 = 0
    0.75 * 25 = 18.75
    0.10 * 20 = 2
    = 20.75

    So, how do we come up with an algorithm for computing the general case?

    For n archery units with to-hit chance %n and damage Dn, the probability that nobody hits is the sum C(%1) * C(%2) ... * C(%n), where C( ) is the complement probability.

    The probability that the unit with the highest damage delivers the blow is that unit's chance to hit. If there are several, the probability that at least one of them will deliver the blow is C(C(%h1) * C(%h2) * ... * C(%hn)), where "hn" stands for the highest-damage longbowmen.

    The probability that the unit with the second highest damage delivers the blow is that unit's chance to hit times the probability that the highest hitter(s) didn't deliver the blow. If there are several, the probability that at least one of them will deliver the blow is C(C(%s1) * C(%s2) * ... * C(%sn)) * (C(%h1) * C(%h2) * ... * C(%hn)), where sn stands for the second-highest damage longbowmen.

    The probability that the unit with the third highest damage delivers the blow is that unit's chance to hit times the probability that the highest and second highest hitter(s) didn't deliver the blow. If there are several, the probability that at least one of them will deliver the blow is C(C(%t1) * C(%t2) * ... * C(%tn)) * (C(%s1) * C(%s2) * ... * C(%sn)) * (C(%h1) * C(%h2) * ... * C(%hn)).

    And so on. Then you just multiply the probability of each option with the damage it causes, sum the results, and use that as your expected damage.

    (Somebody else can check my math for any mistakes - I probably have some, but I already spent too much time on this when I should be revising for an exam.)
     
  13. Black Attila

    Black Attila Chieftain

    Joined:
    May 28, 2006
    Messages:
    90
    will be happier when they can command colonies


    at first glance nice, but on deeper thought I can hear alot of complaining when people start consistently start losing 99% battles that they expected to win, needs to be accounted for somehow in combat odds.

    would have preferred they all remain, no need to eliminate them. esp. the brewery and adding the Deruptus Brewing House as a national wonder means trading ale is pretty useless by mid-game as everyone should have it.

    thank you very much, more please

    requirements???

    thank you, was kinda annoying

    so i can teach sanctify and water 1 now? thank you

    thank you very much
     
  14. darrelljs

    darrelljs Immortal

    Joined:
    Mar 22, 2006
    Messages:
    1,246
    Location:
    South Florida
    I stopped checking the actual numbers about half way down, but the concepts all look exactly right...nice work!

    I wonder if Kael updated the combat odds calculator accordingly?

    Darrell
     
  15. Thimblyjoe

    Thimblyjoe Vampire Lord

    Joined:
    Jan 17, 2007
    Messages:
    97
    I'm assuming this isn't the final version. Am I correct? There will be updates to make sure this works and then a finalized version 1.0, right?
     
  16. Darksaber1

    Darksaber1 Secret Emperor

    Joined:
    Jun 5, 2008
    Messages:
    2,220
    Location:
    Where you least expect me
    This is the final version, but they will likely be patching until they have to use lettters from the Nahuatl alphabet to identify them.
     
  17. Love

    Love Chieftain

    Joined:
    Feb 25, 2006
    Messages:
    5,343
    Location:
    On the island of fun!
    so true so true
     
  18. Thimblyjoe

    Thimblyjoe Vampire Lord

    Joined:
    Jan 17, 2007
    Messages:
    97
    so why not call it version 1.0 if it's supposed to be the full final release?
     
  19. [to_xp]Gekko

    [to_xp]Gekko WM junkie

    Joined:
    Dec 16, 2005
    Messages:
    7,790
    Location:
    Seyda Neen, Vvardenfell
    cuz it's already version 2.4 :p
     
  20. Thimblyjoe

    Thimblyjoe Vampire Lord

    Joined:
    Jan 17, 2007
    Messages:
    97
    no, it's #2 version 0.40 as the download says. Don't ask me why, but it feels wrong to call it anything but version 1.00
     

Share This Page