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/05/05 12:01] – justin | script_syntax [2021/05/05 12:12] – justin | ||
---|---|---|---|
Line 98: | Line 98: | ||
Deals 5 damage to each [[entity]] in the " | Deals 5 damage to each [[entity]] in the " | ||
<code bauxite> | <code bauxite> | ||
- | for $i in range(0, | + | for $item_id |
- | | + | |
end; | end; | ||
</ | </ | ||
- | Gives one of every item in $item_list to the player by iterating over the entire [[array]]. This assumes you have previously defined an $item_list variable that contains an [[array]] of [[string|string]] values for each item ID. The " | + | Gives one of every item in $item_list to the player by iterating over the entire [[array]]. This assumes you have previously defined an $item_list variable that contains an [[array]] of [[string|string]] values for each item ID. |
<code bauxite> | <code bauxite> | ||
for $i in range(1, 4) do | for $i in range(1, 4) do | ||
- | | + | |
end; | end; | ||
</ | </ |