Difference between revisions of "Introduction to Pluggy Arrays"

m
→‎Example: argh typos
imported>Speedo
imported>Speedo
m (→‎Example: argh typos)
Line 137: Line 137:
In order to see if the player had an item, the following code could be used:
In order to see if the player had an item, the following code could be used:
<pre>
<pre>
set item to MyItem
set tItem to MyItem


set index to FindRefInArray pInventory item
set index to FindRefInArray pInventory tItem


if (index > -1)
if (index > -1)
Anonymous user