Move Impassable

abandag

Warlord
Joined
Jun 24, 2012
Messages
120
I want to create a civ trait that will allow units to move over mountains. I don't want to use Carthage's ability because I don't want the Great General restriction and I'd like to have the flexibility to choose which types of units can and cannot move over mountains.

So if I grant the Can Move Impassable promotion via FreePromotionUnitCombats, am I going to run into problems when it comes to ice? Are the units going to also be able to cross over ice when embarked? I'd rather they not be able to since my trait is going to be mountain-focused. Maybe there is a way I can ensure that the units can only use Can Move Impassable on mountains and not ice. I don't know how to do anything via Lua, but if this isn't too complex and someone walks me through it, it might be a good way to get my feet wet in the Lua department.

I know there was a similar thread recently with someone having the opposite problem. They wanted to be able to walk on ice, but not cross mountains. I wasn't able to find if they were able to resolve the problem or how they did it.

Thanks for any help you can give me.
 
Hovering Unit promotion.
 
Hovering Unit promotion.


What question is this answering?

Are you saying to use the hovering promotion instead of can move impassable? Do the units still appear normal if they are "hovering?" (i.e. Do they still look like they are moving along the ground rather than above it?)
 
Sorry...

I was answering the question: "I want to create a civ trait that will allow units to move over mountains. I don't want to use Carthage's ability because I don't want the Great General restriction and I'd like to have the flexibility to choose which types of units can and cannot move over mountains."

Grant them the Hovering Unit promotion, and it will mimic Carthage's ability. They will walk across mountains. You don't have to worry about great generals, that is a specific XML tag in their Traits table.


http://www.dndjunkie.com/civilopedia/PROMOTION_HOVERING_UNIT.aspx

It's what the Gunships use:

http://www.dndjunkie.com/civilopedia/UNIT_HELICOPTER_GUNSHIP.aspx


Code:
<Trait_FreePromotions>
  <TraitType>TRAIT___</TraitType>
  <PromotionType>PROMOTION_HOVERING_UNIT</PromotionType>
</Trait_FreePromotions>
 
Wouldn't hover give them the ability to travel over hills and rivers at no extra movement cost? I say you give them a promotion that has <CanMoveImpassable> = true, and then you can add it exceptions for natural wonders (if you want). I also think this gives a unit the ability to embark in ice, so also except ice.
 
How would I add in those exceptions if I went the Can Move Impassable way? Would that be done through Lua, because I've never done anything with Lua, it's completely foreign to me. So I could use some pointers there if that's the case.
 
It looks like Hover is the way to go here. But now I see a new problem. Non-combat units such as Settlers, Workers, and Great People do not have a Unit Combat type. I had wanted to pick which types of units could and couldn't cross mountains, and Settlers/Workers were some of the ones that I did want to be able to. So now I have to either just give the ability to all units via FreePromotions, or use FreePromotionsUnitCombats and just live with the fact that Settlers and Workers won't get the ability. Or it could be that non-combat units wouldn't get the promotion even if I did grant it with FreePromotions. Does anybody know about this?
 
Your specific specification is only possible by making new Settlers and Workers as a unique unit to your civilization with the promotion inherent to them...I usually don't give any promotions to those units so meh.
 
Back
Top Bottom