The Marathon Markup Language - Appendix 1: Additional Elements
Colors are specified with the element <color> colors may be either indexed (being list members), or non-indexed (being in isolation). The color channels are red, green, and blue, with values that range from 0 to 1.
All the color-channel attributes (red, green, blue) are mandatory. This example makes color 7 be yellow:
- index (mandatory if indexed; must be absent if not indexed)
<color index="7" red="1" green="1" blue="0"/>
Shapes can be specified with the element <shape>. A shape specification includes which collection, which color table, and which sequence or frame; a shape may also be allowed to be blank. A shape's attributes are coll: which collection (0 to 31) clut: which color table; default is 0 (0 to 7) seq: which sequence (0 to 255) frame: like the above, included if the meaning of "frame" is clearer in some context. A blank shape is specified as one having no attributes: <shape/>. A non-blank shape requires the collection and sequence attributes, and optionally the color-table attribute (default: 0). Damage is specified with the element <damage>. Damage features are set with these attributes, which are all optional. type ("true" damage index; none is -1) flags (0 or 1 [is alien: weaker in easier difficulty levels]) base random scale (1 = identity scaling) Fonts are specified with the element <font> like colors, fonts may be either indexed (being list members), or non-indexed (being in isolation). index (mandatory if indexed; must be absent if not indexed) name: the font name; it can be a series of names separated by commas or semicolons, much like HTML font specifications. If a series of the names, the engine will look for a font with the first name, and then the second, and so forth, until it finds such a font. size: the font size in points (standard unit) style: the font style, which follows MacOS conventions; it is the sum of whichever of these attributes are used:
Normal is none of these attributes, or 0. file: this is for SDL support, and indicate which font file to use. None of the font attributes proper are mandatory. This example sets font 4 to the default font for the computer terminals.
- 1: Bold
- 2: Italic
- 4: Underline
- 8: Outline
- 16: Shadow
- 32: Condense
- 64: Extend
<font index="4" name="Courier" size="12" style="0"/>
Boolean data This is not a separate element, but a kind of value of an attribute. These values for a boolean attribute, indicate that a flag is to be on or an action is to be taken. These values, 0 f false indicate that a flag is to be off or an action is not to be taken.