Go to the first, previous, next, last section, table of contents.

Making Independent Units

SynthesisMethod: make-independent-units

This method scatters independent units randomly over the world. This method will not run if the specified density of independent units has already been achieved, for instance from a predefined world or from country placement. Independent units that should be inside other independents will be handled correctly.

Table: independent-density u t -> n

This table is the total number of independent units appearing throughout the world, at the rate of n per 10,000 cells of the given terrain type. Any independent units already placed are counted first, so this value represents final density. If the sum of values for a given unit type on all terrain types is nonzero, then at least one unit of that type will be placed, even if the world is very small (i.e. the calculation of numbers rounds up not down). Defaults to 0.

This method uses the favored-terrain table as the chance that a given unit will be placed at a randomly-chosen position, and it will keep trying different positions until a suitable one is found.

TerrainTypeProperty: independent-people-chance .01n%

This property is the chance that the people of a cell with this terrain type will be made independent. Deafults to 0.


Go to the first, previous, next, last section, table of contents.