lachumproyale
Chieftain
- Joined
- Apr 22, 2020
- Messages
- 35
I'm trying to get recon and naval raider units to pass through borders. There are old mods that do this but aren't functioning. Seems like a simple ability grant, but I think there's something else to do with the type of unit we're dealing, and that they have combat abilities? Basically you can get the unit to go into enemy borders sometimes by one tile, and if you have enough moves you can pass through to the other side, but the "declare war" popup gets triggered if you try anything else. I am totally unaware of where that code is, and whether it's located in the "war" side of things or it's some tag on the units themselves. Any info would be appreciated. This is a total wall for me as I'm not sure where to start - where to even find code to start altering/inserting into.
The code - some very old code from TCS, modified by me to add recon units too:
The code - some very old code from TCS, modified by me to add recon units too:
Code:
<?xml version="1.0"?>
<GameInfo>
<Types>
<Row Kind="KIND_ABILITY" Type="ABILITY_TCS_NAVAL_RAIDER_ENTER_FOREIGN_LANDS"/>
<Row Kind="KIND_ABILITY" Type="ABILITY_TCS_RECON_ENTER_FOREIGN_LANDS"/>
</Types>
-<TypeTags>
<Row Type="ABILITY_TCS_NAVAL_RAIDER_ENTER_FOREIGN_LANDS" Tag="CLASS_NAVAL_RAIDER"/>
<Row Type="ABILITY_TCS_RECON_ENTER_FOREIGN_LANDS" Tag="CLASS_RECON"/>
</TypeTags>
<UnitAbilities>
<Row Description="Even without Open Borders, this unit can enter foreign territory." Name="Ignores Borders" UnitAbilityType="ABILITY_TCS_NAVAL_RAIDER_ENTER_FOREIGN_LANDS"/>
<Row Description="Even without Open Borders, this unit can enter foreign territory." Name="Ignores Borders" UnitAbilityType="ABILITY_TCS_RECON_ENTER_FOREIGN_LANDS"/>
</UnitAbilities>
<UnitAbilityModifiers>
<Row>
<UnitAbilityType>ABILITY_TCS_NAVAL_RAIDER_ENTER_FOREIGN_LANDS</UnitAbilityType>
<ModifierId>MOD_ENTER_FOREIGN_LANDS</ModifierId>
</Row>
<Row>
<UnitAbilityType>ABILITY_TCS_RECON_ENTER_FOREIGN_LANDS</UnitAbilityType>
<ModifierId>MOD_ENTER_FOREIGN_LANDS</ModifierId>
</Row>
</UnitAbilityModifiers>
</GameInfo>