Template:Op factions

Factions
Despite the importance of factions to the game, there aren't that many actions to deal with them. Essentially, you can control colors and name of existing game factions, set or retrieve relations between them, and work with faction slots. There's also a number of operations which assign or retrieve the factional allegiance of other game objects, like parties and troops, but these have been placed in the respective sections of the file.

Slot operations for factions
faction_set_slot = 502
 * (faction_set_slot, , , ),

faction_get_slot = 522
 * (faction_get_slot,, , ),

faction_slot_eq = 542
 * (faction_slot_eq, , , ),

faction_slot_ge = 562
 * (faction_slot_ge, , , ),

Generic operations
set_relation = 1270
 * (set_relation, , , ),
 * Sets relation between two factions. Relation is in -100..100 range.

store_relation = 2190
 * (store_relation,, , ),
 * Retrieves relation between two factions. Relation is in -100..100 range.

faction_set_name = 1275
 * (faction_set_name, , ),
 * Sets the name of the faction. See also (str_store_faction_name) in String Operations.

faction_set_color = 1276
 * (faction_set_color, , ),
 * Sets the faction color. All parties and centers belonging to this faction will be displayed with this color on global map.

faction_get_color = 1277
 * (faction_get_color,, ),
 * Gets the faction color value.