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

FlavorType MEANING?

Discussion in 'Civ5 - Creation & Customization' started by Imnoob, Oct 28, 2017.

Tags:
  1. Imnoob

    Imnoob Chieftain

    Joined:
    Jan 14, 2017
    Messages:
    25
    Gender:
    Male
    can someone explain what is Flavor type concerning resources
    Resource Flavors
    I'm trying to make a resources mod.
    Thanks
     
  2. LeeS

    LeeS Imperator

    Joined:
    Jul 23, 2013
    Messages:
    6,450
    Location:
    Illinois, USA
    Table <Resource_Flavors> is used to tell the AI what the resource is good for.

    So for Iron the resource has a flavor setting as
    Code:
    <Row>
    	<ResourceType>RESOURCE_IRON</ResourceType>
    	<FlavorType>FLAVOR_OFFENSE</FlavorType>
    	<Flavor>10</Flavor>
    </Row>
    This tells the AI that Iron is good to have when the AI wants to go attack someone, essentially. These flavors then match up to various flavors that are given to Leaders. So if a leader has a flavor setting for FLAVOR_OFFENSE that is 6 or higher, that leader will tend to value things that give FLAVOR_OFFENSE higher than things that do not, all else being equal.

    But you cannot make all AI players go goo-goo nuts to get Iron at the expense of all else by giving Iron a value like <Flavor>100</Flavor> or by giving all leaders a <FlavorType>FLAVOR_OFFENSE</FlavorType> setting that is crazy high. First because <Leader_Flavors> only go to 12, and second a particular flavoring only really comes into play when an AI determines it needs more offense, more defense, more food, etc.

    For the human player these Flavor settings mean nothing.
     

Share This Page