1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

100% chance of certain things

Discussion in 'Civ4 - Fall from Heaven' started by Dogfax, Oct 29, 2008.

  1. Dogfax

    Dogfax Chieftain

    Joined:
    Oct 19, 2007
    Messages:
    82
    can someone who knows the code fairly well let me know how to make the chance that the Barbarian leaders will always appear in a game? i.e Gurid, Margalard, Sailors Dirge etc.

    also how to make all the unique features always appear in my maps?

    Thanks in advnace!
     
  2. Mailbox

    Mailbox King

    Joined:
    Oct 6, 2007
    Messages:
    873
    For unique features to always appear, change in the GlobalDefinesAlt.xml:

    Code:
        <Define>
            <DefineName>IMPROVEMENT_UNIQUE_CHANCE</DefineName>
            <iDefineIntVal>30</iDefineIntVal>
        </Define>
    to
    Code:
        <Define>
            <DefineName>IMPROVEMENT_UNIQUE_CHANCE</DefineName>
            <iDefineIntVal>200</iDefineIntVal>
        </Define>
    The rest are event driven, I believe, and would require you to set the event probabilities to 100% to occur in every game.
     
  3. xienwolf

    xienwolf Deity

    Joined:
    Oct 4, 2007
    Messages:
    10,589
    Location:
    Location! Location!
    For the Barbarian Heroes, you have to modify the CIV4EventTriggerInfos.xml. Each Hero is spawned by an event with a fairly obvious name (so just search for Gurid, Leviathan, Margalard, or Sailors) and what you want to modify is the percent chance to be included in each game (should be about 20% for each of them right now) I think the tag name is <iPercentGamesActive> or something along those lines. Make the value 100 and they will always be included. Make the <iWeight> value -1 and they will always trigger as soon as possible (otherwise there is a decent chance that they simply don't trigger during any given game because other events are busy happening)
     
  4. Keeper_GFA

    Keeper_GFA Prince

    Joined:
    Aug 20, 2008
    Messages:
    524
    Location:
    Canada
    Maybe this could be a good checkbox option. Include all Barbarian Heroes. Along with include all unique landmarks. I think forcing them to appear asap probably isn't a good idea, as it destroys what little randomness is left after forcing them to be possible.
     
  5. zup

    zup Emperor

    Joined:
    Aug 14, 2008
    Messages:
    1,238
    Fall Further already has the option to have every unique feature in a game. Please put it in the main FfH too.
     
  6. Psycho_Ivan

    Psycho_Ivan Warlord

    Joined:
    Oct 6, 2008
    Messages:
    218
    It already is.
     
  7. Dogfax

    Dogfax Chieftain

    Joined:
    Oct 19, 2007
    Messages:
    82
    thanks for the help guys.. Ill go looking for them asap.. having played FFH alot I have never seen half the barbarion heros.. and wanted to see them in action.
     

Share This Page