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 [2020/02/16 21:22] – justin | script_syntax [2020/02/18 17:37] – justin | ||
---|---|---|---|
Line 120: | Line 120: | ||
An array is simply a list of values, such as the [[entity|entities]] belonging to a [[groups|group]], | An array is simply a list of values, such as the [[entity|entities]] belonging to a [[groups|group]], | ||
^Type^Description^Example^ | ^Type^Description^Example^ | ||
+ | |User-Defined|List of custom values declared with the " | ||
+ | |Range|List of integers based on a set of parameters.|range(1, | ||
|Entities in a Group|List of all [[entity|entities]] assigned to a map [[groups|group]].|group[" | |Entities in a Group|List of all [[entity|entities]] assigned to a map [[groups|group]].|group[" | ||
|Groups for an Entity|List of all [[groups|group]] to which an [[entity]] belongs.|self.groups, | |Groups for an Entity|List of all [[groups|group]] to which an [[entity]] belongs.|self.groups, | ||
|Tags for an Entity|List of tags assigned to an [[entity|entity' | |Tags for an Entity|List of tags assigned to an [[entity|entity' | ||
- | |User-Defined|List of custom values declared with the " | ||
- | The values in an array can be iterated through using a " | + | The values in an array can be iterated through using a " |
**Examples: | **Examples: | ||
Line 133: | Line 134: | ||
end | end | ||
</ | </ | ||
- | Deals 2 damage to all entities in the "Slimes" [[groups|group]]. | + | Deals 2 damage to all entities in the "slimes" [[groups|group]]. |
<code bauxite> | <code bauxite> | ||
if player.tags contains " | if player.tags contains " | ||
Line 146: | Line 147: | ||
give_item(item_list[random(0, | give_item(item_list[random(0, | ||
</ | </ | ||
- | Loads a random map from the " | + | Loads a random map from the " |
====Null==== | ====Null==== | ||
Line 218: | Line 219: | ||
</ | </ | ||
List of integers from 5 to, but not including, 0, with an increment of -1 (i.e. 5, 4, 3, 2, 1). | List of integers from 5 to, but not including, 0, with an increment of -1 (i.e. 5, 4, 3, 2, 1). | ||
- | |||
====Inverse==== | ====Inverse==== |