Go to the first, previous, next, last section, table of contents.

Side Library

If your game design does not predefine all the sides, you can define a side library using the side-library variable. Basically the library is a weighted list of collections of side properties, each formatted as a side definition. Xconq will use this library for any player that is allowed in the game but who does not have a side already, and select a side with a probability determined by the weights. Each item in the library will be used up to a limit that can be specified with each item; if the library has been exhausted before all the sides have been created, then the extra sides will just be assigned general defaults for their properties.

The side library here makes futuristic sides for players, making two of the sides most likely, but allowing others as well:

(set side-library '(
  (10 (name "Federation") (adjective "Federation") (class "fed"))
  (10 (name "Klingon Empire") (noun "Klingon") (class "klingon"))
  (5 (noun "Romulan") (class "romulan"))
  ((noun "Ferengi") (class "fed"))
  ((noun "Vulcan") (class "fed"))
  ))

Note that if the game design limits certain unit types to certain sides, the choice of sides will be more than just a cosmetic issue.


Go to the first, previous, next, last section, table of contents.