How do I make/modify a map script to do some or all of the following:
1. Place civilizations that know fishing at the coast.
2. Make sure civilizations starting on the coast have at least one sea resource (fish/clam/crabs).
3. Make sure that civilizations that need a resource for their unique unit has that resource available within x plots of the starting location.
4. Place marble and stone so that they are halfway between two starting locations but on opposite sides of any given starting location. Example: The Greeks would find marble to the east halfway to The Indians and stone to the west halfway to The Romans.
5. Clump a resource to encourage trading.
6. Make sure two resources are placed close to each other while maintaining the standard amount of said resources on the map. For example have marble and stone close to each other without having more or less of them compared to a standard map script. Preferrably between two or more starting locations to encourage competition over the resources.
7. Make sure a specific civilization has a specific resource close to their starting position. Example: Rome has Iron, India has Ivory and so on.
8. Make sure the Player has a specific resource close to the starting location. Example: The player starts with cows close by.
9. Make all of the above as options to set when starting a new custom game.
10. Make a script that has options for which of the standard map types to use as well as the above.
11. Make a script which randomly pick one of the standard map types to generate and has the above options. With an option to pick which types to randomly choose from so I can exclude archipelago but maybe get terra, pangaea or continents.
How do I do all this? Where do I do all this? What if anything can be done in the .xml files and what needs to be done in Python? For python example code with comments would be appreciated. Thanks!
1. Place civilizations that know fishing at the coast.
2. Make sure civilizations starting on the coast have at least one sea resource (fish/clam/crabs).
3. Make sure that civilizations that need a resource for their unique unit has that resource available within x plots of the starting location.
4. Place marble and stone so that they are halfway between two starting locations but on opposite sides of any given starting location. Example: The Greeks would find marble to the east halfway to The Indians and stone to the west halfway to The Romans.
5. Clump a resource to encourage trading.
6. Make sure two resources are placed close to each other while maintaining the standard amount of said resources on the map. For example have marble and stone close to each other without having more or less of them compared to a standard map script. Preferrably between two or more starting locations to encourage competition over the resources.
7. Make sure a specific civilization has a specific resource close to their starting position. Example: Rome has Iron, India has Ivory and so on.
8. Make sure the Player has a specific resource close to the starting location. Example: The player starts with cows close by.
9. Make all of the above as options to set when starting a new custom game.
10. Make a script that has options for which of the standard map types to use as well as the above.
11. Make a script which randomly pick one of the standard map types to generate and has the above options. With an option to pick which types to randomly choose from so I can exclude archipelago but maybe get terra, pangaea or continents.
How do I do all this? Where do I do all this? What if anything can be done in the .xml files and what needs to be done in Python? For python example code with comments would be appreciated. Thanks!
Comment