How can I add a starting unit in eras.xml so that only human players get it, not AI?

I forget add modifier to building

Code:
<GameInfo>
    <Modifiers>
        <!--Grant Unit-->
        <Row>
            <ModifierId>TCS_PALACE_GRANT_SCOUT</ModifierId>
            <ModifierType>MODIFIER_SINGLE_CITY_GRANT_UNIT_IN_CITY</ModifierType>
            <RunOnce>true</RunOnce>
            <Permanent>true</Permanent>
            <OwnerRequirementSetId>PLAYER_IS_HUMAN</OwnerRequirementSetId>
        </Row>
    </Modifiers>
    <ModifierArguments>
        <!--Grant Unit-->
        <Row>
            <ModifierId>TCS_PALACE_GRANT_SCOUT</ModifierId>
            <Name>UnitType</Name>
            <Value>UNIT_SCOUT</Value>
        </Row>
        <Row>
            <ModifierId>TCS_PALACE_GRANT_SCOUT</ModifierId>
            <Name>Amount</Name>
            <Value>1</Value>
        </Row>
    </ModifierArguments>
    <BuildingModifiers>
        <!--Grant Unit-->
        <Row>
            <BuildingType>BUILDING_PALACE</BuildingType>
            <ModifierId>TCS_PALACE_GRANT_SCOUT</ModifierId>
        </Row>
    </BuildingModifiers>
</GameInfo>

Apologies for my ignorance, but does this go into the eras.xml?
 
Hi, I am new here,its been a eureka moment knowing this thread exist, so here is my question :

I know the name of some units like settler, scout, and infantry inside the Coding ( The XML file in Civ 6's database ), but anyone know the complete list of units in Civ 6's database? i have found difficulties in adding other units, like mechanized infantry or submarine, because the database name maybe different with ingame unit name.
Thank you very much
 
I have succesfully added units available in the game, I am curios about leveling up the units, anyone has idea where to look (the xml file or something in the game folder)? The idea is adding leveled up units in the beginning of the game. Or at least it can get multiple promotions
 
Last edited:
Back
Top Bottom