Budgets

Budgets control goal categories. They determine how many credits the AI should expend in a given category. They are assigned via Templates to Players and their value is decided by perceptual equations.

Budgets pull from a fraction of the current credit pool. For example:

If the Infrastructure budget is evaluated at a value of 40, and the Offensive budget is evaluated at a value of 60, then the AI with 1000 credits will spend 400 credits on infrastructure goals and 600 credits on offensive goals.

Budgets allow the AI to react to the situation, changing which goals it will fund. For example, you probably want the AI to build some structures on its newly acquired planet, so you write the Infrastructure budget equation to increase in value when the AI has empty base slots.

Remember: budgets are galaxy (or map) wide: they shouldn't be focused on individual units or planets.