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

Auto Theming Modifier

Discussion in 'Mod Creation Help' started by dagriggstar, Jan 24, 2018.

  1. dagriggstar

    dagriggstar Chieftain

    Joined:
    Mar 23, 2006
    Messages:
    522
    Location:
    Adelaide, Australia
    So trying to mod the forbidden palace so that instead of giving a free wild card slot, instead it automatically themes all (relevant) wonders. So for instance, if you have built the Great Library AND have filled it with ANY two great works of writing AND have built the Forbidden Palace, you will get a theming bonus. Under any other circumstances (Although I've just made it really difficult rather than impossible) there should be no theming bonus from world wonders.

    Code that I've used but can't get to work so far

    Code:
        <BuildingModifiers>
            <Row>
                <BuildingType>BUILDING_FORBIDDEN_CITY</BuildingType>
                <ModifierId>THEMED_GREAT_LIBRARY</ModifierId>
            </Row>
        </BuildingModifiers>
        <Modifiers>
            <Row>
                <ModifierId>THEMED_GREAT_LIBRARY</ModifierId>
                <ModifierType>MODIFIER_PLAYER_ADJUST_AUTO_THEMED_BUILDING</ModifierType>
                <Permanent>true</Permanent>
            </Row>
        </Modifiers>
        <ModifierArguments>
            <Row>
                <ModifierId>THEMED_GREAT_LIBRARY</ModifierId>
                <Name>BuildingType</Name>
                <Value>BUILDING_GREAT_LIBRARY</Value>
            </Row>
        </ModifierArguments>
        <Building_GreatWorks>
            <Update>
                <Where BuildingType="BUILDING_GREAT_LIBRARY"></Where>
                <Set ThemingUniquePerson="true" ThemingSameEras="true" ThemingUniqueCivs="true" ThemingYieldMultiplier="50" ThemingTourismMultiplier="50" NonUniquePersonYield="1" NonUniquePersonTourism="1" ThemingBonusDescription="LOC_MAGIL_BUILDING_THEMINGBONUS_WRITING"></Set>
            </Update>
        </Building_GreatWorks>
    The result of the code is that a theming bonus will appear as being possible in the game, however upon building the forbidden palace it will not theme the great library.
     
  2. raen

    raen Coat of Arms

    Joined:
    May 12, 2003
    Messages:
    1,619
    Location:
    Portugal

Share This Page