Values, macros, toggles

For profiles that start repeating themselves.

Stored values

{set:name, expression} calculates right where it is and keeps the result. {set:name, "text"} stores text. Read it back with {get:name}.

Macros

A macro is worked out when you use it, not when you define it.

{setm:...} and {m:...} are the short forms.

Toggles

VariableMeaning
{toggle:name}Bind it in the config screen
{toggle_key:h}Fixed key, no binding needed
{toggle_keybind:name}Prints the bound key
{toggle:name:last_pressed}Time since it was last pressed
{is_pressed:forward}True only while a keybind is held

Events

VariableTrue
{on_load}For one frame after the profile loads or reloads
{on_join}For one frame after joining a world
{on_chat_message, "..."}A list of messages that just arrived

Timers

{timer[end,interval]} counts up from zero, one step every interval seconds, and starts over at end. Leave out the space after the comma.

Slowing a variable down

Add -freq1 to update once a second instead of every frame. -freq0.25 updates four times a second.