Question: prevent AI from setting new home city?

yoshi

Emperor
Joined
Oct 2, 2002
Messages
1,179
Create a unit in a city using the Cheat Menu or via a CREATEUNIT event and set its home city to 'NONE.' If the unit is has the Defence role, the AI will probably fortify it. Once fortified, the AI will automatically reset the unit's home city to that city --even when the city doesn't have enough shields to maintain additional units.

This is a BIG problem for scenarios where you want to keep certain units independent of cities (e.g. one-time units).

Is there any way of preventing this --without changing to a lower-maintenance government form or using the 'Fundamentalist only' unit flag?
 
Actually, the vanilla game's 'attack' units (Warrior, Legion, Archer, ect.) do not have their home cities reset --they are hard-coded in that sense. Sea and air units don't have this problem because the AI won't fortify them.

Another thing I forgot to add is that the AI will reset a unit's home city even if that unit already has a home city (as opposed to 'NONE').

Seeing as how no one has even viewed this thread, I'll assume that there is no way of preventing this. Oh well.
 
Interesting tidbit all the same. Many thanks
 
I guess nobody knows how to fix this. Maybe PM the DoM or Thunderfall? They might know.
 
I believe if the mf=0, the AI won't rehome it, regardless of fortified status.

From my limited experience, I've only seen 0mf units rehomed when garrisonning another city at the time their home city is taken. This always occurs with partisans. For other units it does not always happen and the odds of rehoming may be linked to the discovery of GUE.
 
May I suggest posting this at Poly also.
Not registered at Apolyton. Guess now is as good a time as ever.

I believe if the mf=0, the AI won't rehome it, regardless of fortified status.
'mf?' If you mean zero movement then no, I don't think the AI rehomes these units.

I did the test on an island map with a few cities and only some starting techs --no Guerilla Warefare tech.

BTW, Partizans are of the defense role unit group. The only land units that do not re-home (that I can remember) are as follows:

Archers
Legion
Marines
Horsemen
Chariots
Elephant
Crusaders
Knights
Dragoons
Cavalry
Catapult
Cannon
Artillery
Howitzer

(In other words, all default attack unit slots. Can't remember what happens with the extra custom slots.)

Will test with Guerilla tech to see what happens.

The AI forfifies up to three units in a city. It will use attack role units for this if no defensive units are available. The fourth unit is send to wander the map. The effect is the same for all government types.

This is hard-coded into the unit slots (i.e. even if you give the defense units the attack role, they'll still rehome).

I think the attack unit exception is the Armor unit, which rehomes anyway. (I'm not sure about that because you guys took so long to reply that I've forgotten most of the results of the test thinking no one cared. ;) )

If there is no solution, I'll have to settle for giving the AI units all the default attack unit slots --assuming I'm not using generic units.
 
Back
Top Bottom