how to create a map where I can choose my starting position?

Duque de Ferro

Chieftain
Joined
Dec 3, 2020
Messages
21
What's up guys, I have a question; how to create a map where I can choose my starting position and edit the resources and the surrounding terrain without this position being changed when I create a match with this map.

thank you in advance for any help.
 
You need to look at the fractals map code.

Code:
    -- START_MIN_Y and START_MAX_Y is the percent of the map ignored for major civs' starting positions.
    local args = {
        MIN_MAJOR_CIV_FERTILITY = 175,
        MIN_MINOR_CIV_FERTILITY = 50,
        MIN_BARBARIAN_FERTILITY = 1,
        START_MIN_Y = 15,
        START_MAX_Y = 15,
        START_CONFIG = startconfig,
    };
    local start_plot_database = AssignStartingPlots.Create(args)

There is a utility class named AssignStartingPlots in AssignStartingPlots.lua, this is pretty much where all the starting locations calculations are made. I guess you could add some map options for the starting locations and place the civilization accordingly.
 
Top Bottom