World generation: Difference between revisions

3,424 bytes added ,  01:44, 28 November 2020
no edit summary
(Created page with "{{stub}} {{gamename}} uses procedural generation to create much of its content each playthrough. While a few of the main quest locations are pre-determined or pre-built, s...")
 
No edit summary
Line 8: Line 8:


The sixth sultan is [[Resheph]] - a guaranteed sultan who appears in every playthrough and always has the same fixed events described in his lore.
The sixth sultan is [[Resheph]] - a guaranteed sultan who appears in every playthrough and always has the same fixed events described in his lore.
== Regions and Locations ==
The world generation process creates a variety of named ''regions'' and ''locations'' that correlate to the five periods of sultan rule. During each period, a handful of additional regions and locations are added to the history, increasing the overall size of the historic region and location pool.{{Code Reference|name=QudHistoryFactory|namespace=XRL.Annals|class=QudHistoryFactory}}{{Code Reference|name=InitializeRegion|namespace=XRL.Annals|class=InitializeRegion}} After the regions and locations are generated for a particular period of the sultanate, the sultan history for that period is generated, using those regions and locations (along with any regions and locations from previous sultanates) as context.
Significant events in each sultan's life that involve named regions or locations will always occur in regions or locations that have been generated as part of the history thus far. For example, a 2nd period sultan will have a minimum of 4-6 regions and 11-18 locations available for possible inclusion in their lore. A 5th period sultan will have the greatest number of regions and locations available for potential inclusion in their lore (a minimum of 10-15 regions and 20-30 locations).
{| class="wikitable"
! colspan="3" | Core World Generation
|-
! Sultanate
! New Regions
! Locations In Each Region
|-
| 1st Period
| {{dice tooltip| 2-3 }}
| {{dice tooltip| 6-8 }}
|-
| 2nd Period
| {{dice tooltip| 2-3 }}
| {{dice tooltip| 5-8 }}
|-
| 3rd Period
| {{dice tooltip| 2-3 }}
| {{dice tooltip| 4-6 }}
|-
| 4th Period
| {{dice tooltip| 2-3 }}
| {{dice tooltip| 3-4 }}
|-
| 5th Period
| {{dice tooltip| 2-3 }}
| 2
|}
In addition to the core regions and locations created as part of initial world generation, sultans can also discover or build new locations (within existing regions), or rename existing locations, during significant events in their lives. Those locations are then added to the pool of available locations in the world from that point forward.
{| class="wikitable"
! colspan="2" | Location-Altering Sultan Lore Events
|-
! Sultan Event
! Outcome
|-
| Liberates or sacks a city{{Code Reference|namespace=XRL.Annals|class=LiberateCity}}
| The location is renamed in the sultan's honor or at the sultan's command
|-
| Wins a battle against the forces of the region{{Code Reference|namespace=XRL.Annals|class=BloodyBattle}}
| The location is renamed because it is in ruins
|-
| Collaborates with a faction to found a new gathering place{{Code Reference|namespace=XRL.Annals|class=FoundGuild}}
| A new location is created in a randomly-selected region from the current sultanate or an earlier sultanate.
|-
| Discovers a location and befriends a faction{{Code Reference|namespace=XRL.Annals|class=MeetFaction}}
| A new location is discovered in a randomly-selected region from the current sultanate or an earlier sultanate.
|}
Ultimately, most of the regions and locations that are generated as part of the world history will not be accessible in game, and many of them may not even be referenced in any sultan lore. The one exception is with regard to Historic Sites, which are described in the following section.


== Historic Sites ==
== Historic Sites ==
{{main|Historic site}}
{{main|Historic site}}
The sultans from period 4 and period 5 are unique because they will each have two procedurally generated [[historic site]]s associated with them. The historic sites will be inhabited by [[sultan cults]] composed of members from the sultans' favored factions. The sultans' favored factions can generally be observed from the various bits of lore that describe events in the sultans' lives. For example, this snippet of sultan lore indicates that [[crabs]] are one of the sultan's favored factions:
The sultans from period 4 and period 5 are unique because they will each have two procedurally generated [[historic site]]s associated with them. These historic sites will always be chosen from among the 2-3 historical regions that were added to the generated world history ''during those sultan's reign''. Regions from earlier parts of the generated history won't be used for this purpose.
 
The historic sites will be inhabited by [[sultan cults]] composed of members from the sultans' favored factions. The sultans' favored factions can generally be observed from the various bits of lore that describe events in the sultans' lives. For example, this snippet of sultan lore indicates that [[crabs]] are one of the sultan's favored factions:


{{qud quote|While wandering around Abalep Palace, Oroleseh II stumbled upon a clan of crabs performing a secret ritual. Because of her fortuitous eyes, they accepted her into their fold and taught her their secrets.}}
{{qud quote|While wandering around Abalep Palace, Oroleseh II stumbled upon a clan of crabs performing a secret ritual. Because of her fortuitous eyes, they accepted her into their fold and taught her their secrets.}}


Historic site generation is controlled both by features from the broader generated world, such as the government type, and by features from their associated sultan, such as the sultan's theme.
Historic site generation is controlled both by features from the broader generated world, such as the government type, and by features from their associated sultan, such as the sultan's themes.