This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
script_syntax [2022/03/14 20:44] – justin | script_syntax [2022/05/17 22:13] – justin | ||
---|---|---|---|
Line 158: | Line 158: | ||
====Codex==== | ====Codex==== | ||
- | (Coming soon) | + | A codex is a data type with its data stored as key/value pairs. The key is a unique [[string]] and acts as a lookup for its corresponding value within the codex, similar to a dictionary. See [[Codex]] for more information and some scripting examples. |
====Null==== | ====Null==== | ||
Line 272: | Line 272: | ||
====Custom Functions==== | ====Custom Functions==== | ||
- | Custom functions provide a way to define reusable logic that can be called later in the same [[script]]. Custom functions can optionally include input arguments that values are passed into (e.g. the way a map name is passed as a string into the built-in | + | Custom functions provide a way to define reusable logic that can be called later in the same [[script]]. Custom functions can optionally include input arguments that values are passed into (e.g. the way a map name is passed as a [[string]] into the built-in |
**Example: | **Example: | ||
<code bauxite> | <code bauxite> |