|
|
Line 313: |
Line 313: |
| | | |
| For the basic 16 colors, the valkyrie string coloring escape is noted. | | For the basic 16 colors, the valkyrie string coloring escape is noted. |
− | | + | {{Template:Color}} |
− | {| style="border: 2px solid darkred; border-spacing: 0; font-size: 90%; margin: 0.25em 0.5em;" | + | {{Template:Special_Color}} |
− | |colspan=4 style="background: darkred; color: yellow; font-size: 120%; text-align: center"|'''Colors'''
| + | |
− | |-
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|BLACK
| + | |
− | |width="100" style="background: black;"|
| + | |
− | |@D
| + | |
− | |- style="background: #333;"
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|BLUE
| + | |
− | |width="100" style="background: navy;"|
| + | |
− | |@b
| + | |
− | |-
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|GREEN
| + | |
− | |width="100" style="background: green;"|
| + | |
− | |@g
| + | |
− | |- style="background: #333;"
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|CYAN
| + | |
− | |width="100" style="background: teal;"|
| + | |
− | |@c
| + | |
− | |-
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|RED
| + | |
− | |width="100" style="background: maroon;"|
| + | |
− | |@r
| + | |
− | |- style="background: #333;"
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|MAGENTA
| + | |
− | |width="100" style="background: purple;"|
| + | |
− | |@v
| + | |
− | |-
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|BROWN
| + | |
− | |width="100" style="background: olive;"|
| + | |
− | |@n or @N
| + | |
− | |- style="background: #333;"
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|LIGHTGRAY
| + | |
− | |width="100" style="background: silver;"|
| + | |
− | |@l
| + | |
− | |-
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|DARKGRAY
| + | |
− | |width="100" style="background: gray;"|
| + | |
− | |@d
| + | |
− | |- style="background: #333;"
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|LIGHTBLUE
| + | |
− | |width="100" style="background: blue;"|
| + | |
− | |@B
| + | |
− | |-
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|LIGHTGREEN
| + | |
− | |width="100" style="background: lime;"|
| + | |
− | |@G
| + | |
− | |- style="background: #333;"
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|LIGHTCYAN
| + | |
− | |width="100" style="background: aqua;"|
| + | |
− | |@C
| + | |
− | |-
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|LIGHTRED
| + | |
− | |width="100" style="background: red;"|
| + | |
− | |@R
| + | |
− | |- style="background: #333;"
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|LIGHTMAGENTA
| + | |
− | |width="100" style="background: fuchsia;"|
| + | |
− | |@V
| + | |
− | |-
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|YELLOW
| + | |
− | |width="100" style="background: yellow;"|
| + | |
− | |@y or @Y
| + | |
− | |- style="background: #333;"
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|WHITE
| + | |
− | |width="100" style="background: white;"|
| + | |
− | |@L
| + | |
− | |-
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|MULTIBLUE
| + | |
− | |
| + | |
− | |Randomly chosen from BLUE, LIGHTBLUE, and WHITE. Only works for missiles.
| + | |
− | |- style="background: #333;"
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|MULTIYELLOW
| + | |
− | |
| + | |
− | |Randomly chosen from YELLOW, LIGHTGREEN, and WHITE. Only works for missiles.
| + | |
− | |-
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|MULTIPORTAL
| + | |
− | |
| + | |
− | |Cycles between LIGHTMAGENTA, MAGENTA, and WHITE. Only works for things displayed in the map.
| + | |
− | |- style="background: #333;"
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|COLOR_WATER
| + | |
− | |
| + | |
− | |Alternates between BLUE and LIGHTBLUE. Only works for things displayed in the map.
| + | |
− | |-
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|COLOR_ACID
| + | |
− | |
| + | |
− | |Alternates between GREEN and LIGHTGREEN. Only works for things displayed in the map.
| + | |
− | |- style="background: #333;"
| + | |
− | |style="vertical-align:top; padding-right: 2ex;"|COLOR_LAVA
| + | |
− | |
| + | |
− | |Alternates between RED and YELLOW. Only works for things displayed in the map.
| + | |
− | |}
| + | |
| | | |
| == Flags == | | == Flags == |
Constants and Enumerations are common in any game and DoomRL is no exception. Internally, as most programmers are aware, these are integers. But to modders they are all important magic values, looked up here.
Every item has a type that determines how the engine treats it.
Sources of damage must specify a body target to determine which sources of armor are used. Inherent armor bonuses always apply.
Sources of damage usually specify a damage type that determines how the damage regards protection, resistances, gibbing, and other things. For details on the differences between the damage types, look here.
Usually, it is possible to specify a foreground color and a background color. Since DoomRL uses 4 bit color, the lowest 4 bits determine the foreground color, and the next 4 bits determine the background color (zero is black). Occasionally, one of these may conflict with one of the special color constants.
Also, note that the exact color the end-user sees may depend on his system settings.
For the basic 16 colors, the valkyrie string coloring escape is noted.
Empty flags are used with various functions to control the selection of random coords.