jeffrockson
Chieftain
I've searched a bunch, and I found no solution to this question. So I set out on my own to figure out how to make a unit move seamlessly from land to coast to ocean (without embarking). Yesterday I identified exactly the combination of XML to make the Helicopter Gunship allowed to move over the coast. But I'm still at a loss about how to get it to go over the ocean and stay there.
So, hopefully by posting this to the forums, we can work together to come up with a solution. I know there's some work on this in conjunction with the Alpha Centauri Mod. I doubt we're the only ones looking for this solution!
Some things I know that don't work:
So, let's work together to solve this. It's likely we can't solve this with just XML, but that's fine. It'll be worth it! Please post your attempts and findings in this thread!
Thanks for reading,
JeffRockson
So, hopefully by posting this to the forums, we can work together to come up with a solution. I know there's some work on this in conjunction with the Alpha Centauri Mod. I doubt we're the only ones looking for this solution!
Spoiler :
I want this:

Spoiler :
This is the entire mod to get the Helicopter to hover over Coast tiles.
Code:
<GameData>
[INDENT]<UnitPromotions>
[INDENT]<!-- Original entry
[INDENT]<Row>
<Type>PROMOTION_HOVERING_UNIT</Type>
<Description>TXT_KEY_PROMOTION_HOVERING_UNIT</Description>
<Help>TXT_KEY_PROMOTION_HOVERING_UNIT_HELP</Help>
<Sound>AS2D_IF_LEVELUP</Sound>
<CanMoveImpassable>true</CanMoveImpassable>
<PortraitIndex>58</PortraitIndex>
<IconAtlas>ABILITY_ATLAS</IconAtlas>
<PediaType>PEDIA_ATTRIBUTES</PediaType>
<PediaEntry>TXT_KEY_PEDIA_PROMOTION_HOVERING_UNIT</PediaEntry>
</Row> -->[/INDENT]
<Update>
[INDENT]<!-- This allows the helicopter's movement range (blue border) to
extend over the coast, but doesn't allow the heli to actually
move there. I'm pretty sure that it's useless, because
HoveringUnit does more. -->
<Where Type="PROMOTION_HOVERING_UNIT" />
<Set CanMoveAllTerrain="1" />[/INDENT]
</Update>
<Update>
[INDENT]<!--This allows the unit to hover over coastal tiles, but not
enter the ocean. -->
<Where Type="PROMOTION_HOVERING_UNIT" />
<Set HoveringUnit="1" />[/INDENT]
</Update>[/INDENT]
</UnitPromotions>[/INDENT]
</GameData>
- Setting the Domain to DOMAIN_AIR (and then modifying its movement to allow it to move regularly with
Movement Points) causes the unit to be able to move an indefinite number of tiles and makes it to jump back to the closest city at the beginning of the player's next turn, which is not desirable.
- Setting the Domain to the default NULL or any other invalid value causes exactly the behavior I would like to see, but again makes the unit jump back to the closest city at the beginning of the player's next turn. So close! But at least I got a screenshot out of it. Can I get someone else to verify this?
- The promotion combination of CanMoveImpassable, CanMoveAllTerrain, and HoveringUnit do not make Ocean tiles passable by a unit. (CanMoveAllTerrain appears to be a broken promotion option.)
So, let's work together to solve this. It's likely we can't solve this with just XML, but that's fine. It'll be worth it! Please post your attempts and findings in this thread!
Thanks for reading,
JeffRockson