Difference between revisions of "AI Storytellers"

From RimWorld Wiki
Jump to: navigation, search
(added collapse)
m (clean up)
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
| {{AI_Storytellers_Nav}}
 
| {{AI_Storytellers_Nav}}
 
|}
 
|}
<hr>
+
----
 
<!-- End Nav -->
 
<!-- End Nav -->
  
Line 28: Line 28:
 
When the storyteller sends threats after you, they will set percentage as large as in Intense mode (the default difficulty).
 
When the storyteller sends threats after you, they will set percentage as large as in Intense mode (the default difficulty).
  
[[Events#Flashstorm|Flashstorm]], [[Events#Toxic_Fallout|toxic fallout]] and [[Events#Volcanic_Winter|volcanic winter]] are disabled in Base builder difficulty.
+
[[Events#Flashstorm|Flashstorm]], [[Events#Toxic Fallout|toxic fallout]] and [[Events#Volcanic Winter|volcanic winter]] are disabled in Base builder difficulty.
  
 
{| {{STDT| sortable c_08 text-center}}
 
{| {{STDT| sortable c_08 text-center}}
Line 82: Line 82:
 
|-
 
|-
 
|}
 
|}
 
  
  
 
=== Commitment Mode (Permadeath)===
 
=== Commitment Mode (Permadeath)===
 
Commitment mode is an option, off by default, when selecting difficulty.
 
Commitment mode is an option, off by default, when selecting difficulty.
<p>In commitment mode, you only get one save file and can only save when quitting the game. You cannot reload the game to fix mistakes, and only when the colony dies, that's it.</p>
+
 
<p>This is the way RimWorld was meant to be played with every dramatic turn - whether tragic or hopeful - played out to full impact.</p>
+
In commitment mode, you only get one save file and can only save when quitting the game. You cannot reload the game to fix mistakes, and only when the colony dies, that's it.
 +
 
 +
This is the way RimWorld was meant to be played with every dramatic turn - whether tragic or hopeful - played out to full impact.
 +
 
  
 
== Technical info ==
 
== Technical info ==
Line 98: Line 100:
 
===New Colonist Events===
 
===New Colonist Events===
  
The formula that calculates the odds of random events which add new colonists has changed in 1.0. It factors in how long a player has been at the location for which the event is generated, and the current population of that colony, including pawns who are traveling on the world map. These events include [[Events#Refugee_Chased_at_.28Settlement.29|Refugee chased]], [[Events#Transport_pod_crash|Transport pod crash]], [[Events#Wanderer_joins|Wanderer joins]] and [[Events#Wild_.28wo.29man_wanders_in|Wild (human) wanders in]].  
+
The formula that calculates the odds of random events which add new colonists has changed in 1.0. It factors in how long a player has been at the location for which the event is generated, and the current population of that colony, including pawns who are traveling on the world map. These events include [[Events#Refugee Chased at .28Settlement.29|Refugee chased]], [[Events#Transport pod crash|Transport pod crash]], [[Events#Wanderer joins|Wanderer joins]] and [[Events#Wild .28wo.29man wanders in|Wild (human) wanders in]].  
  
 
The following code examples and analysis were provided by user Bar0th on Steam, who gave permission for their inclusion here. <!-- This is the url of the Steam forum thread: steamcommunity.com/app/294100/discussions/0/1651043320656662118/ --> To summarize these findings: There is a new variable, "PopulationIntent," which replaces the old variables "desiredPopulationMin," "desiredPopulationMax" and "desiredPopulationCritical." It controls the odds of colonist-adding incidents happening on a particular map. The odds based on time at location decrease until the 10th day, and the odds based on population decrease until the 20th colonist. (For purposes of this formula, prisoners count as half a colonist.) Once both variables have decreased to their long-term minimum, the odds remain stable. Randy's minimum chance is .08%, while for Cassandra and Phoebe the minimum chance is .02%, so Randy is still the best option for players who wish to reach a large colony size.
 
The following code examples and analysis were provided by user Bar0th on Steam, who gave permission for their inclusion here. <!-- This is the url of the Steam forum thread: steamcommunity.com/app/294100/discussions/0/1651043320656662118/ --> To summarize these findings: There is a new variable, "PopulationIntent," which replaces the old variables "desiredPopulationMin," "desiredPopulationMax" and "desiredPopulationCritical." It controls the odds of colonist-adding incidents happening on a particular map. The odds based on time at location decrease until the 10th day, and the odds based on population decrease until the 20th colonist. (For purposes of this formula, prisoners count as half a colonist.) Once both variables have decreased to their long-term minimum, the odds remain stable. Randy's minimum chance is .08%, while for Cassandra and Phoebe the minimum chance is .02%, so Randy is still the best option for players who wish to reach a large colony size.
  
 
<blockquote>
 
<blockquote>
----------
+
----
 
'''PopulationIntent (from StorytellerDef):<br>
 
'''PopulationIntent (from StorytellerDef):<br>
 
   populationIntentFactorFromPopCurve x populationIntentFactorFromPopAdaptDaysCurve'''<br>
 
   populationIntentFactorFromPopCurve x populationIntentFactorFromPopAdaptDaysCurve'''<br>
Line 120: Line 122:
 
   baseChance (from IncidentDef) x IncidentChanceFactor_PopulationIntent''<br>
 
   baseChance (from IncidentDef) x IncidentChanceFactor_PopulationIntent''<br>
  
----------
+
----
  
 
'''Example Event: Wanderer Join (baseChance = 0.4, populationEffect = IncreaseEasy)'''
 
'''Example Event: Wanderer Join (baseChance = 0.4, populationEffect = IncreaseEasy)'''
Line 162: Line 164:
 
     ''</populationIntentFactorFromPopAdaptDaysCurve>''
 
     ''</populationIntentFactorFromPopAdaptDaysCurve>''
 
<br>
 
<br>
----------
+
----
 
</blockquote>
 
</blockquote>
 +
 +
Further investigation and updates are needed.
  
 
</div>
 
</div>
 
</div>
 
</div>
 
Further investigation and updates are needed.
 
  
 
{{nav|ai}}
 
{{nav|ai}}
 
[[Category:AI]]
 
[[Category:AI]]

Latest revision as of 02:26, 5 July 2019

Basics Menus Game Creation Gameplay Pawns Plants Resources Gear Mods
Game Creation Scenario system AI Storytellers World Generation Biomes
AI Storytellers Cassandra Classic Phoebe Chillax Randy Random

The AI Storyteller creates events like pirate raids, resource drops, or animal attacks. Storytellers will never entirely disallow events because of population. Their choices will affect the story of your colony.

Gameplay is driven by AI (Artificial Intelligence) Storytellers. The AI Storyteller that you choose will make decisions about what events it wants you to encounter and when, based on the situation you are currently in and on the biases of that particular AI.

Choosing an AI will have a great influence on the narrative that is formed as you play. Difficulty is selected separately from the Storyteller but both are changeable mid-game.

Current AI Storytellers

Options

Difficulty

When the storyteller sends threats after you, they will set percentage as large as in Intense mode (the default difficulty).

Flashstorm, toxic fallout and volcanic winter are disabled in Base builder difficulty.

Name Threat scale Colonist mood bonus Base sell price multiplier Crop yield multiplier Disease interval multiplier Enemy reproduction rate factor
Peaceful 0.05 +10 1.00 1.3 3 0.1
Builder 0.10 +10 1.00 1.3 3 0.1
Medium 0.35 +5 0.95 1.2 1.5 0.4
Rough 0.65 0 0.90 1.0 1.0 1.0
Savage 1.00 -3 0.85 1.0 1.0 1.0
Merciless 1.30 -8 0.80 0.9 0.9 1.0


Commitment Mode (Permadeath)

Commitment mode is an option, off by default, when selecting difficulty.

In commitment mode, you only get one save file and can only save when quitting the game. You cannot reload the game to fix mistakes, and only when the colony dies, that's it.

This is the way RimWorld was meant to be played with every dramatic turn - whether tragic or hopeful - played out to full impact.


Technical info

New Colonist Events

The formula that calculates the odds of random events which add new colonists has changed in 1.0. It factors in how long a player has been at the location for which the event is generated, and the current population of that colony, including pawns who are traveling on the world map. These events include Refugee chased, Transport pod crash, Wanderer joins and Wild (human) wanders in.

The following code examples and analysis were provided by user Bar0th on Steam, who gave permission for their inclusion here. To summarize these findings: There is a new variable, "PopulationIntent," which replaces the old variables "desiredPopulationMin," "desiredPopulationMax" and "desiredPopulationCritical." It controls the odds of colonist-adding incidents happening on a particular map. The odds based on time at location decrease until the 10th day, and the odds based on population decrease until the 20th colonist. (For purposes of this formula, prisoners count as half a colonist.) Once both variables have decreased to their long-term minimum, the odds remain stable. Randy's minimum chance is .08%, while for Cassandra and Phoebe the minimum chance is .02%, so Randy is still the best option for players who wish to reach a large colony size.


PopulationIntent (from StorytellerDef):
populationIntentFactorFromPopCurve x populationIntentFactorFromPopAdaptDaysCurve

minIncChancePopulationIntentFactor
Default = 0.05 (from C#)
Randy = 0.20 (from StorytellerDef)

IncidentChanceFactor_PopulationIntent (from C#):
None = 1
IncreaseHard = Max(0.4 + PopulationIntent, minIncChancePopulationIntentFactor)
IncreaseMedium = Max(PopulationIntent, minIncChancePopulationIntentFactor)
IncreaseEasy = Max(-0.4 + PopulationIntent, minIncChancePopulationIntentFactor)

IncidentChanceFinal (from C#):
baseChance (from IncidentDef) x IncidentChanceFactor_PopulationIntent


Example Event: Wanderer Join (baseChance = 0.4, populationEffect = IncreaseEasy)

Day >= 10, 5 Population (PopulationIntent = 1.0)
Randy: 0.24% (0.4 x Max(-0.4 + 1.0, 0.2) = 0.4 x 0.6)
Other: 0.24% (0.4 x Max(-0.4 + 1.0, 0.05) = 0.4 x 0.6)
- They are the same, because of the high PopulationIntent.

Day >= 10, 20+ Population (PopulationIntent = -1.0):
Randy: 0.08% (0.4 x Max(-0.4 + -1.0, 0.2) = 0.4 x 0.2)
Other: 0.02% (0.4 x Max(-0.4 + -1.0, 0.05) = 0.4 x 0.05)
- Here, the low PopulationIntent allows Randy's higher minIncChancePopulationIntentFactor to take effect.

So, there doesn't appear to be a hard cap on any of the storytellers anymore. However, some events can become much more rare at high populations (0.02% chance of a wanderer join, 0.08% if using Randy @ 20+ population). Also, for purposes of population calculation, it searches the entire map for pawns of that colony (ie: includes caravans, etc), and it also includes prisoners of that colony (each prisoner counts as half a colonist).

The multiple colony trick works, because it doesn't check all pawns in the map for all colonies, only the one it is currently determining the event for.

Also, you can check the table for the PopulationIntent from the Debug Logging Menu while in Dev Mode. Search for population, and you can bring up the table. You'll notice that after 10 days (at the top), and populations > 20 (at the left) the numbers remain the same. That's because of the curves in Storytellers.xml:

<populationIntentFactorFromPopCurve>
<points>

  • 0, 8.0

  • 1, 2.0

  • 5, 1.0

  • 9, 0.4

  • 12, 0.0

  • 20,-1.0

  • </points>
    </populationIntentFactorFromPopCurve>

    <populationIntentFactorFromPopAdaptDaysCurve>
    <points>

  • ( 0, 0)

  • (10, 1.00)

  • </points>
    </populationIntentFactorFromPopAdaptDaysCurve>


    Further investigation and updates are needed.