User Tools

Site Tools


script_syntax

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
script_syntax [2022/03/14 20:44] justinscript_syntax [2022/05/17 22:12] 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 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 "Load Mapfunction). They can also optionally return a value to the calling code. Refer to the code below for an example of a custom function that takes two input arguments, adds them together, then returns the total.+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 [[Load Map]] function). They can also optionally return a value to the calling code. Refer to the code below for an example of a custom function that takes two input arguments, adds them together, then returns the total. 
 **Example:** **Example:**
 <code bauxite> <code bauxite>
script_syntax.txt · Last modified: 2023/11/06 14:13 by justin