User Tools

Site Tools


array

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
array [2020/02/16 19:04] justinarray [2020/02/16 21:09] justin
Line 5: Line 5:
  
 ====Examples:==== ====Examples:====
 +<code bauxite>
 +array["ITEM_0001", "ITEM_0005", "ITEM_0008"]
 +</code>
 +User-defined list of [[item]] IDs (e.g. from which to randomly pick an item for the player).
 +
 <code bauxite> <code bauxite>
 group["room_01"] group["room_01"]
Line 19: Line 24:
 </code> </code>
 List of all tags for the entity's model, as assigned in the [[Voxel Editor]]. The values in this kind of array are of data type [[String]]. List of all tags for the entity's model, as assigned in the [[Voxel Editor]]. The values in this kind of array are of data type [[String]].
 +
 +<code bauxite>
 +range(5)
 +</code>
 +List of integers from 0 to, but not including, 5 (i.e. 0, 1, 2, 3, 4).
 +
 +<code bauxite>
 +range(12, 15)
 +</code>
 +List of integers from 12 to, but not including, 15 (i.e. 12, 13, 14).
 +
 +<code bauxite>
 +range(0, 9, 2)
 +</code>
 +List of integers from 0 to, but not including, 9, with an increment of 2 (i.e. 0, 2, 4, 6, 8).
 +
 +<code bauxite>
 +range(5, 0, -1)
 +</code>
 +List of integers from 5 to, but not including, 0, with an increment of -1 (i.e. 5, 4, 3, 2, 1).
  
 ~~NOTOC~~ ~~NOTOC~~
array.txt · Last modified: 2024/02/17 10:27 by justin