Atlas627
Deity
- Joined
- Aug 25, 2011
- Messages
- 2,930
I am trying to make Recon units cost only 1 to Pillage, similar to how the Barbary Corsair only costs 1 to Coastal Raid. The code is already all in the files to enable "Advanced Pillaging", and it looks identical to the implementation of "Advanced Raiding", which is what the Corsair uses. However, when I implement it, nothing happens!
Does anyone know what unit in Vanilla uses Advanced Pillaging, so that I can find it as a reference and make sure Firaxis' code works in the first place? I have some doubts that their code was fully implemented, as this has happened with other modifiers of theirs I have tried to use in the past.
I'll try and copy all 3 codes below (Vanilla Advanced Pillaging, Vanilla Advanced Raiding, and my Advanced Pillaging) if anyone wants to take a look.
Vanilla Advanced Pillaging (I see no unit nor trait that actually gains this ability anywhere)
Vanilla Advanced Raiding (including the Corsair gaining this ability)
My Advanced Pillaging
Does anyone know what unit in Vanilla uses Advanced Pillaging, so that I can find it as a reference and make sure Firaxis' code works in the first place? I have some doubts that their code was fully implemented, as this has happened with other modifiers of theirs I have tried to use in the past.
I'll try and copy all 3 codes below (Vanilla Advanced Pillaging, Vanilla Advanced Raiding, and my Advanced Pillaging) if anyone wants to take a look.
Vanilla Advanced Pillaging (I see no unit nor trait that actually gains this ability anywhere)
Code:
In UnitAbilities.xml of Base game:
<Modifiers>
<Row>
<ModifierId>UNIT_REDUCED_PILLAGE_COST</ModifierId>
<ModifierType>MODIFIER_PLAYER_UNIT_ADJUST_ADVANCED_PILLAGING</ModifierType>
</Row>
</Modifiers>
<ModifierArguments>
<Row>
<ModifierId>UNIT_REDUCED_PILLAGE_COST</ModifierId>
<Name>UseAdvancedPillaging</Name>
<Value>true</Value>
</Row>
</ModifierArguments>
Vanilla Advanced Raiding (including the Corsair gaining this ability)
Code:
In Expansion2_UnitAbilities_Major of DLC2:
<Types>
<Row Type="ABILITY_CORSAIR" Kind="KIND_ABILITY"/>
</Types>
<TypeTags>
<Row Type="ABILITY_CORSAIR" Tag="CLASS_CORSAIR"/>
</TypeTags>
<UnitAbilities>
<Row UnitAbilityType="ABILITY_CORSAIR" Name="LOC_ABILITY_CORSAIR_NAME" Description="LOC_ABILITY_CORSAIR_DESCRIPTION"/>
</UnitAbilities>
<UnitAbilityModifiers>
<Row>
<UnitAbilityType>ABILITY_CORSAIR</UnitAbilityType>
<ModifierId>CORSAIR_LESS_MOVEMENT_RAID</ModifierId>
</Row>
</UnitAbilityModifiers>
<Modifiers>
<Row>
<ModifierId>CORSAIR_LESS_MOVEMENT_RAID</ModifierId>
<ModifierType>MODIFIER_PLAYER_UNIT_ADJUST_ADVANCED_COASTAL_RAID</ModifierType>
</Row>
</Modifiers>
<ModifierArguments>
<Row>
<ModifierId>CORSAIR_LESS_MOVEMENT_RAID</ModifierId>
<Name>UseAdvancedCoastalRaid</Name>
<Value>true</Value>
</Row>
</ModifierArguments>
My Advanced Pillaging
Code:
<UnitAbilities>
<Row UnitAbilityType="AtlasBuilds_Ability_Recon_Quick_Pillaging" Inactive="true" Name="Raider" Description="Pillaging costs only 1 [ICON_Movement] Movement point."/>
</UnitAbilities>
<UnitAbilityModifiers>
<Row>
<UnitAbilityType>AtlasBuilds_Ability_Recon_Quick_Pillaging</UnitAbilityType>
<ModifierId>AtlasBuilds_Recon_Quick_Pillaging</ModifierId>
</Row>
</UnitAbilityModifiers>
<Modifiers>
<Row>
<ModifierId>AtlasBuilds_Recon_Quick_Pillaging</ModifierId>
<ModifierType>MODIFIER_PLAYER_UNIT_ADJUST_ADVANCED_PILLAGING</ModifierType>
</Row>
</Modifiers>
<ModifierArguments>
<Row>
<ModifierId>AtlasBuilds_Recon_Quick_Pillaging</ModifierId>
<Name>UseAdvancedPillaging</Name>
<Value>true</Value>
</Row>
</ModifierArguments>
<Types>
<Row Type="AtlasBuilds_Ability_Recon_Quick_Pillaging" Kind="KIND_ABILITY"/>
</Types>
<Tags>
<Row Tag="AtlasBuilds_Class_Recon_Pillager" Vocabulary="ABILITY_CLASS"/>
</Tags>
<TypeTags>
<Row Type="UNIT_SPEC_OPS" Tag="AtlasBuilds_Class_Recon_Pillager"/>
<Row Type="UNIT_SKIRMISHER" Tag="AtlasBuilds_Class_Recon_Pillager"/>
<Row Type="UNIT_INCA_WARAKAQ" Tag="AtlasBuilds_Class_Recon_Pillager"/>
<Row Type="UNIT_RANGER" Tag="AtlasBuilds_Class_Recon_Pillager"/>
<Row Type="UNIT_SCOTTISH_HIGHLANDER" Tag="AtlasBuilds_Class_Recon_Pillager"/>
<Row Type="AtlasBuilds_Ability_Recon_Quick_Pillaging" Tag="AtlasBuilds_Class_Recon_Pillager"/>
</TypeTags>