Increasing Visibility Range

dpaajones

Old England Forever
Joined
Oct 24, 2005
Messages
215
Location
England
I've just got into changing the XML of the unit files to make the game a bit more interesting (adding a few custom units here and there) but I've got stuck regarding one issue - changing the visibility range of a unit... how's it done? Where in the code(s) can you, for instance, increase the visibility range of a battleship or a scout?

Help would be much appreciated! :goodjob:
 
AFAIK you can't do that on per unit base.

There are a couple of entries in GlobalDefines.XML and in TerrainInfos.xml that will allow you to set visibility ranges for recon mission and for different terrain.
 
There might be a work-around: You can create a new unit promotion, which will give +1 range of sight (or +2, +3...) and which will have insane requirements, so it will be very rare, an unit will be able to each this promotion. You can give this as a free promotion to each unit you like. Every new build unit will become this trait.
 
Thanks for the replies. :)

There might be a work-around: You can create a new unit promotion, which will give +1 range of sight (or +2, +3...) and which will have insane requirements, so it will be very rare, an unit will be able to each this promotion. You can give this as a free promotion to each unit you like. Every new build unit will become this trait.

I'll give it a go.

I'm surprised this isn't any easier - you can change just about everything else in the main unit info XML file!
 
Also, instead of "insanely high" reqs, put a tech in the game called "never", make it unreasearchable and a requirement for stuff like that. That's what they did in FFH.
 
Back
Top Bottom