Skip to content

Keyword Pointers

zenonet edited this page May 15, 2023 · 4 revisions

works in v0.5+

Creating a pointer

You are able to create keyword pointers using the wasWith Statement.
This works by writing a color name followed by wasWith and finally the name of a keyword.
Example:

red wasWith killed

This will set red's value to the index of killed in the keyword list.

Using a pointer

After creating the pointer, you can now use the color you assigned the pointer to as a keyword.
Example:

cyan red

Since red points to the keyword killed, this will increase cyan by 10.

NOTE: Pointers currently don't work for default keywords like vented. You can only create pointers to keywords that were defined using a #define keyword-Definition.

Clone this wiki locally