User constants
All constants that the user can either use or even change freely are defined in Userconst.d file.
Read only
These constants may only be used, not changed.
Anim8
These constants are used by Anim8 and Anim8q.
const int A8_Constant
Constant movement speedconst int A8_SlowEnd
Evenly decelerated movementconst int A8_SlowStart
Evenly accelerated movementconst int A8_Wait
Do nothing. The target value is ignored here
Buttons
The following bit masks can be applied to the status of a button:
const int BUTTON_ACTIVE
The button is active, it reacts to the mouseconst int BUTTON_ENTERED
The mouse is "within" the button
Interface
Dimensions
const int PS_X
andconst int PS_Y
Use withPrint_Screen
orPrint_ToVirtual
functionsconst int PS_VMax
Highest possible value of a virtual coordinate
Colors
16 basic colors that can be used as zColor
parameters
const int COL_Aqua
const int COL_Black
const int COL_Blue
const int COL_Fuchsia
const int COL_Gray
const int COL_Green
const int COL_Lime
const int COL_Maroon
const int COL_Navy
const int COL_Olive
const int COL_Purple
const int COL_Red
const int COL_Silver
const int COL_Teal
const int COL_White
const int COL_Yellow
Gamestate
Gamestate can assume these values:
const int Gamestate_NewGame
New game startedconst int Gamestate_Loaded
A game has been loadedconst int Gamestate_WorldChange
The world has changedconst int Gamestate_Saving
The game is saved
Cursor
These constants are sent with Cursor_Event
:
const int CUR_LeftClick
The left mouse button was pressedconst int CUR_RightClick
The right mouse button was pressedconst int CUR_MidClick
The middle mouse button was pressedconst int CUR_WheelUp
Mouse wheel upconst int CUR_WheelDown
Mouse wheel down
Modifiable
These constants are often used by packages and may be changed freely.
Bloodsplats
const int BLOODSPLAT_NUM
Maximum number on screenconst int BLOODSPLAT_TEX
Highest Texture ID ("BLOODSPLAT" + texID + ".TGA"
)const int BLOODSPLAT_DAM
Texture size damage multiplier (damage * 2
Bloodsplat_Dam
)
Cursor
const string Cursor_Texture
This texture is used to display the cursor (default: "CURSOR.TGA")
Interface
const string Print_LineSeperator
Text boxes can be printed in multiple lines. This character separates the lines from each other.
PrintS
All position and size information is completely virtual:
const int PF_PrintX
Start position on the X axisconst int PF_PrintY
Start position on the Y axisconst int PF_TextHeight
Space between individual lines
The times are given in ms:
const int PF_FadeInTime
Time to fade in the textconst int PF_FadeOutTime
Time to fade out the textconst int PF_MoveYTime
Time needed to "slip down"const int PF_WaitTime
Time during which the print is fully visible
The font can be modified:
const string PF_Font
Default:FONT_OLD_10_WHITE.TGA
Talents
const int AIV_TALENT
Used AIVar
Dialoggestures
const string DIAG_Prefix
Animation prefix ("DG_")const string DIAG_Suffix
Animation suffix ("_")