Nation

A nation is a type of entity that represents a nation. Nations can have an ideology (which may be determined from policies) and they can create diplomatic relations with other nations as well.

They can also draft treaties which can be accepted or rejected by the nations involved in the treaty.

Lua scripting
To give a nation a name and a colour for example when Spain turns communist:

Nation Relations
Extra Lua API features are provided to modify relations between countries.