Skip to content

Scripting

Ed Kolis edited this page Aug 25, 2019 · 1 revision

Scripting is the process of modding FrEee using code as opposed to just data files. The scripting language used by FrEee is called IronPython, which is a variant of Python adapted to run on Microsoft's .NET framework. This allows it to easily interoperate with the game's code.

There are a number of things you can script in FrEee:

  • AI - Computer opponents to play against
  • Formulas - Scripts embedded in the data files
  • Events - Random events that can occur in-game, such as plagues (not yet implemented)
  • Intelligence operations - Espionage and sabotage actions undertaken by empires (not yet implemented)
For further reference:
  • Scripting API - The code you can call in FrEee to make things work in your scripts
  • Scripting Tutorial - Tutorial on the basics of scripting
  • Commands - List of commands that your AI scripts can use
  • Orders - List of orders that your AI scripts can use
It's highly recommended that you download Python Tools for Visual Studio, available from the IronPython website. If you don't have a copy of Visual Studio, there's an "integrated" version which is an all-in-one package giving you the ability to edit Python code in a Visual-Studio-like environment. You can even import FrEee.Core.dll and get IntelliSense for your scripts!

Clone this wiki locally