Pax Historia Wiki
  • Official Pax Historia Wiki
  • ▢️Gameplay
    • 🐣Creating A Game
    • 🧠Your Advisor
    • πŸ—ΊοΈThe Map
    • 🎩Chats
    • βš–οΈTrust Survey
    • πŸ–‹οΈCreating Actions
    • πŸ‘²Troop Movement
    • πŸ“ˆStatistics Changes
    • ⚠️Conflict
  • 🎱Editing Presets
    • ℹ️Basic Info
    • 🏞️Edit A Country
    • πŸ–ΌοΈEdit Map
    • ⏳Edit Timeline
    • πŸ‘ΊCreating a Region Map
  • βž—Scripting Language
    • Default Prompts
    • 🏭countries
    • 🧩thisCountry
    • 🏝️regions
  • πŸ€–AI Prompts
    • πŸ“¨Chat Invitations
    • πŸ”„Chat Consolidation
    • πŸ€–Chat Between AI
    • πŸ’¬Chats Involving User
    • πŸŽ™οΈNext Speaker
    • πŸ“œChat To Event
    • ✍️Description To Action
    • πŸ“Action Creation
    • πŸ”Action Review
    • ⚠️Threat Survey
    • πŸ“ŠStatistics Manager
    • πŸ›‘οΈDefense Requests
    • 🚨Defense Response
    • πŸͺ–Troop Redirection
    • πŸ†Conflict Conference
    • βš–οΈConference Judge
  • πŸ›£οΈRoadmap
Powered by GitBook
On this page
  1. Scripting Language

thisCountry

Object used in prompt templates

PreviouscountriesNextregions

Last updated 2 months ago

About

The 'thisCountry' object represents a specific country within the object.

When a country needs to make a decision in the game (like to plan actions, respond to chats, etc) the game will turn mentions of 'thisCountry' within your prompt into a reference to the country that needs to make a decision.

Names

`
Country Name: ${thisCountry.name}
Country ID: ${thisCountry.countryId}
Possessive Name: ${thisCountry.possessiveName}
Name as Puppet: ${thisCountry.nameAsPuppet}
Name in Sentence: ${thisCountry.nameInSentence}
`

Guidance

`
Guidance: ${thisCountry.guidance || 'No Guidance'}
`

Statistics

`
Core Population: ${thisCountry.corePopulation}
Tax Payers: ${thisCountry.taxPayers}
Tax Rate: ${thisCountry.taxRate}%
GDP Per Capita: $${thisCountry.gdpPerCapita}
Government Coffers: $${thisCountry.governmentCoffers}
`

Puppet Status

`
Master: ${thisCountry.master || 'No Master'}
Is Puppet: ${thisCountry.isPuppet}
Independence Description: ${thisCountry.independenceDescription}
Puppets: ${thisCountry.puppets}
`

Military

`
Defending Troops: ${thisCountry.defendingTroops}
Defending Troops Set Point: ${thisCountry.defendingTroopsSetPoint}%
Military Efficiency: ${thisCountry.militaryEfficiency}%
Given Military Access: ${thisCountry.givenMilitaryAccess}
Received Military Access: ${thisCountry.receivedMilitaryAccess}
`

Geography

`
Bordering Countries: ${thisCountry.borderingCountries}
Regions: ${thisCountry.regions}
Bordering Regions: ${thisCountry.borderingRegions}
Distant Regions: ${thisCountry.distantAttackableRegions}
Is Coastal: ${thisCountry.isCoastal}
`

Example Template

Here's how you can generate a comprehensive report for a country:

return `
[Country Names]
Country Name: ${thisCountry.name}
Country ID: ${thisCountry.countryId}
Possessive Name: ${thisCountry.possessiveName}
Name as Puppet: ${thisCountry.nameAsPuppet}
Name in Sentence: ${thisCountry.nameInSentence}

[Guidance]
Guidance: ${thisCountry.guidance || 'No Guidance'}

[Statistics]
Core Population: ${thisCountry.corePopulation}
Tax Payers: ${thisCountry.taxPayers}
Tax Rate: ${thisCountry.taxRate}%
GDP Per Capita: $${thisCountry.gdpPerCapita}
Government Coffers: $${thisCountry.governmentCoffers}

[Puppet Status]
Master: ${thisCountry.master || 'No Master'}
Is Puppet: ${thisCountry.isPuppet}
Independence Description: ${thisCountry.independenceDescription}
Puppets: ${thisCountry.puppets}

[Military]
Defending Troops: ${thisCountry.defendingTroops}
Defending Troops Set Point: ${thisCountry.defendingTroopsSetPoint}%
Military Efficiency: ${thisCountry.militaryEfficiency}%
Given Military Access: ${thisCountry.givenMilitaryAccess}
Received Military Access: ${thisCountry.receivedMilitaryAccess}

[Geography]
Bordering Countries: ${thisCountry.borderingCountries}
Regions: ${thisCountry.regions}
Bordering Regions: ${thisCountry.borderingRegions}
Distant Regions: ${thisCountry.distantAttackableRegions}
Is Coastal: ${thisCountry.isCoastal}
`;
βž—
🧩
countries