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

Extra Unit For Each Unit Created

Discussion in 'Mod Creation Help' started by -Albi, Jan 25, 2018.

  1. -Albi

    -Albi Chieftain

    Joined:
    Jan 25, 2018
    Messages:
    2
    Gender:
    Male
    I'm new to modding and I've currently been creating a new civ to play. One of the ideas I had was to create a unique building which allows an extra cavalry unit (both light and heavy) to be created when one unit is trained along with some other yield modifiers.

    I've managed to get the building into the game as well as the yield modifiers but I'm completely stumped as to how I go about the extra cavalry unit. I've looked at the modifiers and I'm unable to find anything, however I know the modifier exists as I've been able to create an extra naval unit in the vanilla game.

    I'm not very experienced in xml so any help towards making this possible would be greatly appreciated
     
  2. kingchris20

    kingchris20 Wisdom Seeker

    Joined:
    Jul 30, 2012
    Messages:
    1,302
    Location:
    Resident of Heaven; Currently in the Waiting Room
    I’m not near a computer right now, but Scythia has that ability with their Saka horse archers, so you should be able to copy from that setup.
     
  3. -Albi

    -Albi Chieftain

    Joined:
    Jan 25, 2018
    Messages:
    2
    Gender:
    Male
    I think this has pointed me in the right direction, I had a look at Scythia and I think I found the modifier that I needed. However, after testing I was unsuccessful in creating an extra unit.
    This is the code that I have at the moment.
    Spoiler :
    Code:
    <Modifiers>
            <Row>
                <ModifierId>LOTR_ROHIRRIC_STABLE_EXTRALIGHTCAVALRY</ModifierId>
                <ModifierType>MODIFIER_PLAYER_UNITS_ADJUST_EXTRA_UNIT_COPY_TAG</ModifierType>
            </Row>
            <Row>
                <ModifierId>LOTR_ROHIRRIC_STABLE_EXTRAHEAVYCAVALRY</ModifierId>
                <ModifierType>MODIFIER_PLAYER_UNITS_ADJUST_EXTRA_UNIT_COPY_TAG</ModifierType>
            </Row>
        </Modifiers>
       
       
    
        <ModifierArguments>
            <Row>
                <ModifierId>LOTR_ROHIRRIC_STABLE_EXTRALIGHTCAVALRY</ModifierId>
                <Name>Tag</Name>
                <Value>CLASS_LIGHT_CAVALRY</Value>
            </Row>
            <Row>
                <ModifierId>LOTR_ROHIRRIC_STABLE_EXTRALIGHTCAVALRY</ModifierId>
                <Name>Amount</Name>
                <Value>1</Value>
            </Row>
            <Row>
                <ModifierId>LOTR_ROHIRRIC_STABLE_EXTRAHEAVYCAVALRY</ModifierId>
                <Name>Tag</Name>
                <Value>CLASS_HEAVY_CAVALRY</Value>
            </Row>
            <Row>
                <ModifierId>LOTR_ROHIRRIC_STABLE_EXTRAHEAVYCAVALRY</ModifierId>
                <Name>Amount</Name>
                <Value>1</Value>
            </Row>
        </ModifierArguments>
     
  4. criZp

    criZp Chieftain

    Joined:
    Jul 19, 2013
    Messages:
    585
    Location:
    Nidaros, Norway
    <BuildingModifiers>
    <BuildingType>
    <ModifierId>

    you don't have this code
     

Share This Page