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
  • When to Edit Prompts
  • Prompt Templates
  • Example of a bad prompt
  • Correctly using prompt templates

Scripting Language

How to edit the prompts for A.I.

When to Edit Prompts

Prompts should only be changed by advanced users, as it does take a lot of troubleshooting and testing to find prompts that result in the smartest behaving A.I.

Keep in mind that most changes will result in degraded performance as we have already spent countless hours to create the default prompts. However, if you wish to create your own prompt, you can always change it to try and:

  • Reduce some unwanted A.I. behavior

  • Increase some desired A.I. behavior

  • Reduce token costs

Prompt Templates

You do not directly write the prompts for the A.I. because it needs to know things about the game state that change over time. Instead, you write prompt templates which are then turned into the prompt for the A.I.

Example of a bad prompt

It is 1914 and you need to make a decision as Argentina!
So far, people have done a lot of things and may be attacking you.
Your population is 3,000,000
What do you want to do now?

This is a bad prompt because its not using game state, doesn't apply to all countries, etc. It might work for the very beginning of the game,

Correctly using prompt templates

// Some code

When in the game, prompt templates turn into text that depends on game state and the country that needs to respond to it. For example:

// Some code

PreviousCreating a Region MapNextDefault Prompts

Last updated 10 months ago

βž—