/alternate_start/_documentation.info
Can someone help me understanding this?
Code:
== Culture and religion spread ==
It is possible to randomize cultures and religions.
The basic process is this:
0. All cultures/religions are cleared from the map
1. For every group, a random province is chosen as the seed province (for religions, this is weighted using "religion_group_spawn", which can use the special trigger any_religion_distance to check the distance to groups already spawned. Religion group spawn happens in a random order)
2. Each province that neighbors a group gets its score calculated. Note that this means a province that borders multiple filled out provinces can have multiple entries. Even for the same group
3. A province is picked by random (weighted proportionally by the score) from the score list, and given the culture/religion group
4. Step 2 and 3 are repeated until all provinces have a culture/religion group
5. For each group, the religion/culture is cleared once more. Each culture/religion within that group randomly picks a starting province within the area allocated to the group. Steps 2 through 4 are then run using cultures rather than group
On top of normal adjacencies, the adjacencies from the "adjacencies" section are used. See the "adjacencies" section of this document. These are *required* if your mod has islands, as otherwise they might end up with no culture or religion. Your territory thus has to be fully connected. You can ensure a score of 0 to make sure it only ever spreads via such an adjacency when there are literally no other options though.
Scoring is done by the culture_spread and so on sections. In vanilla you find these in 01_spread.txt. The scopes available are the culture/religion as ROOT, and the province being evaluated as FROM.
For the groups, the provided culture/religion scope is the first entry within the group.
Can someone help me understanding this?