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 [2021/04/21 19:14] – justin | script_syntax [2021/11/04 19:31] – justin | ||
---|---|---|---|
Line 97: | Line 97: | ||
</ | </ | ||
Deals 5 damage to each [[entity]] in the " | Deals 5 damage to each [[entity]] in the " | ||
+ | <code bauxite> | ||
+ | $item_list = array[" | ||
+ | for $item_id in $item_list do | ||
+ | | ||
+ | end; | ||
+ | </ | ||
+ | Gives one of every item in $item_list to the player by iterating over the entire [[array]]. | ||
<code bauxite> | <code bauxite> | ||
for $i in range(1, 4) do | for $i in range(1, 4) do | ||
- | | + | |
end; | end; | ||
</ | </ | ||
Line 105: | Line 112: | ||
=====Data Types===== | =====Data Types===== | ||
- | There are several data types available in the scripting language used to represent a value or, in the case of arrays, a collection/ | + | There are several data types available in the scripting language used to represent a value or, in the case of an array or codex, a collection/ |
^Type^Examples^ | ^Type^Examples^ | ||
Line 114: | Line 121: | ||
|[[Color]]|color[255, | |[[Color]]|color[255, | ||
|[[Entity]]|player, | |[[Entity]]|player, | ||
- | |[[Array]]|group[" | + | |[[Array]]|array[" |
+ | |[[Codex]]| | ||
|Null|null| | |Null|null| | ||