game_datais a global table with all data about the current game. You can directly work with it to change the behavior of the game on the server.
You can find out the contents of any table using the built-in function
debug_log(game_data)it will write the result to the log file in the server root
Try not to modify this file yourself, but use ready-made modules. For example, if you want two countries to start war with each other, then connect the relations module at the beginning of the plugin (relationships between countries)
local relations = require "core.relations"
And in the plugin code itself, at the right time, call
I won't list all the content here as it is very large. Only the main thing that may come in handy more often than others
Country data is stored in
game_data.lands[land_id], where land_id is the country id (not the name, but the id)
The main, incomplete content of this table:
Province data is stored in
game_data.provinces[province], where province is the id of the province.
The contents of this table are: