Ai.data

From Big Pharma Wiki
Jump to: navigation, search

Back to modding

ai.data[edit | edit source]

The ai.data file contains an array of the "AI", or competitors, in the game and defines the strategy each will take.

Example AI[edit | edit source]

{
"id":"barclay",
"diversificationLeaning": 6,
"chasePlayer": 8,
"chaseUnique": 3,
"maxConcMove": 0,
"sideEffectDevalue": 0.1,
"sellFactor":5,
"patentValueThreshold":150,
"plan":[
 {"research":"research_infrastructure1"},
 {"research":"research_patents"},
 {"research":"research_agglomerator"},
 {"research":"research_ioniser"},
 {"upgradeResearch":{"id":"research_evaporator","value":1}},
 {"upgradeResearch":{"id":"research_dissolver","value":1}},
 {"explore":3}
 ]

AI Keys[edit | edit source]

  • id - the unique name for the AI. Current possible names to match existing images include:
    • [Barclay:Tess:Leonard:Jenny:Chan:Sasha:Orion:Penny]
  • diversificationLeaning -
  • chasePlayer -
  • chaseUnique -
  • maxConcMove -
  • sideEffectDevalue -
  • sellFactor -
  • patentValueThreshold -
  • plan - An array containing the steps the AI will pursue, including researching items, researching ingredients, and upgrading both.
    • autoUpgrade[True:False] - binary on AI upgrading?
    • research - Research Item to be unlocked
    • upgradeResearch:{"id","value"} - Research Item to be upgraded (id) and level of upgrade (value)
    • explore - number of ingredients to be explored??
    • upgradeIngredient - ingredient number (in order of discovery?) to be upgraded