Wonder grant Free Castle Walls Building not working

Joined
Apr 26, 2014
Messages
670
hi ,

i want to achieve for one of my Wonders that when the wonder is built, then you get free Castle Building ( the medieval Walls ), but no success by now. so if anyone could help it would be cool , thanks in advance guys

@LeeS @FurionHuang you two guys helped me a lot in the past with Himeji Castle, and now i could Need your help again. here is the Code i use by now that doesnt work :

Code:
<Modifiers>
        <Row>
            <ModifierId>OSAKA_LEVEL_UP_UNITS</ModifierId>
            <ModifierType>MODIFIER_PLAYER_UNITS_ADJUST_GRANT_EXPERIENCE</ModifierType>
            <Permanent>true</Permanent>
            <RunOnce>true</RunOnce>
        </Row>
        <Row>
            <ModifierId>OSAKA_GRANT_WALLS</ModifierId>
            <ModifierType>MODIFIER_SINGLE_CITY_GRANT_BUILDING_IN_CITY</ModifierType>
        </Row>
  </Modifiers>
  <ModifierArguments>
        <Row>
            <ModifierId>OSAKA_LEVEL_UP_UNITS</ModifierId>
            <Name>Amount</Name>
            <Value>-1</Value>
        </Row>
        <Row>
            <ModifierId>OSAKA_GRANT_WALLS</ModifierId>
            <Name>BuildingType</Name>
            <Value>BUILDING_CASTLE</Value>
        </Row>
  </ModifierArguments>
  <BuildingModifiers>
        <Row>
            <BuildingType>BUILDING_OSAKA</BuildingType>
            <ModifierId>OSAKA_LEVEL_UP_UNITS</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_OSAKA</BuildingType>
            <ModifierId>OSAKA_GRANT_WALLS</ModifierId>
        </Row>
  </BuildingModifiers>
 
Have you tried
Code:
<ModifierType>MODIFIER_SINGLE_CITY_GRANT_BUILDING_IN_CITY_IGNORE</ModifierType>
I know this slightly-different modifier-type is the one used by Great People. I think the "_IGNORE" part is that this modifier and it's effect-type ignore normal prerequisites.
 
thanks LeeS, now it works perfectly thanks to your Suggestion ! :)
 
hi ,

i want to achieve for one of my Wonders that when the wonder is built, then you get free Castle Building ( the medieval Walls ), but no success by now. so if anyone could help it would be cool , thanks in advance guys

@LeeS @FurionHuang you two guys helped me a lot in the past with Himeji Castle, and now i could Need your help again. here is the Code i use by now that doesnt work :

Code:
<Modifiers>
        <Row>
            <ModifierId>OSAKA_LEVEL_UP_UNITS</ModifierId>
            <ModifierType>MODIFIER_PLAYER_UNITS_ADJUST_GRANT_EXPERIENCE</ModifierType>
            <Permanent>true</Permanent>
            <RunOnce>true</RunOnce>
        </Row>
        <Row>
            <ModifierId>OSAKA_GRANT_WALLS</ModifierId>
            <ModifierType>MODIFIER_SINGLE_CITY_GRANT_BUILDING_IN_CITY</ModifierType>
        </Row>
  </Modifiers>
  <ModifierArguments>
        <Row>
            <ModifierId>OSAKA_LEVEL_UP_UNITS</ModifierId>
            <Name>Amount</Name>
            <Value>-1</Value>
        </Row>
        <Row>
            <ModifierId>OSAKA_GRANT_WALLS</ModifierId>
            <Name>BuildingType</Name>
            <Value>BUILDING_CASTLE</Value>
        </Row>
  </ModifierArguments>
  <BuildingModifiers>
        <Row>
            <BuildingType>BUILDING_OSAKA</BuildingType>
            <ModifierId>OSAKA_LEVEL_UP_UNITS</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_OSAKA</BuildingType>
            <ModifierId>OSAKA_GRANT_WALLS</ModifierId>
        </Row>
  </BuildingModifiers>
Aw I was late. What I did was actually a LUA script to grant buildings, so not so familiar with modifier method.
 
Back
Top Bottom