Can Build Settings Code Generator
After you have finalized your object.lua file, run the script makeObjectJS.lua (in your Scripts folder, where you found this file) from the Civ II Lua Console, and replace Scripts\object.js with the generated file.
Choose an item:
Minimum number of improvements:
Minimum number of wonders:
Minimum number of technologies:
Minimum number of flags:
Minimum population:
maximum population:
First turn available:
Last turn available:
Minimum number of alternate production:
Allow unlimited production for each tribe.
Limit the ownership for each tribe.
Base limit:
Notwithstanding other calculations, this is the minimum limit:
Notwithstanding other calculations, this is the maximum limit:
For each turn elapsed, increase the tribe ownership limit by this amount:
Increase the tribe's ownership limit by the specified amount, for each of the following items owned by the tribe:
For each city the tribe owns, increase the tribe ownership limit by this amount:
For each population point of the tribe's cities, increase the tribe ownership limit by this amount:
For each item in the selected list owned by the tribe, increment the tribe's ownership limit by the specified amount:
Increase the tribe's ownership limit by the specified amount, for each of the following items owned by anyone.
For each city in the world, increase the tribe ownership limit by this amount:
For each population point in the world, increase the tribe ownership limit by this amount:
For each item in the selected list owned by anyone, increment the tribe's ownership limit by the specified amount:
Increase the tribe's ownership limit by the specified amount for each wonder owned by the tribe that is not expired:
Increase the tribe's ownership limit by the specified amount for each wonder owned by a foreign tribe that is not expired:
Increase the tribe's ownership limit by the specified amount (once) if the technology has been discovered by any tribe:
Increase the tribe's ownership limit by the specified amount for each flag that has a true value:
For each counter, multiply the counter's value by the specified amount, and add the product to the tribe's ownership limit.
These items count towards the ownership limit.
Allow unlimited production for all tribes together.
Limit the ownership for all tribes together.
Base limit:
Notwithstanding other calculations, this is the minimum limit:
Notwithstanding other calculations, this is the maximum limit:
For each turn elapsed, increase the tribe ownership limit by this amount:
For each city in the world, increase the global ownership limit by this amount:
For each population point in the world, increase the global ownership limit by this amount:
For each item in the selected list owned by anyone, increment the global ownership limit by the specified amount:
Increase the global ownership limit by the specified amount for each wonder owned by anyone that is not expired:
Increase the global ownership limit by the specified amount (once) if the technology has been discovered by any tribe:
Increase the global ownership limit by the specified amount for each flag that has a true value:
For each counter, multiply the counter's value by the specified amount, and add the product to the global ownership limit.
These items count towards the ownership limit.
Only tribes controlled by an AI can build
.
Only tribes controlled by a human can build
.
Only cities with the "coastal" attribute can build
.
Only cities with the "can build ships" attribute can build
.
Only cities with the "can build hydro plant" attribute can build
.
Ignore Civ II's standard requirements for building
and consider only the requirements specified by Lua.
Ignore any supplementary requirements for building
that have been specified elsewhere using the
canBuildSettings.registerSupplementalCondition
function.
Generate Code