Difference between revisions of "Introduction to Pluggy Arrays"
m
→Example: argh typos
imported>Speedo m (→Example) |
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 | set tItem to MyItem | ||
set index to FindRefInArray pInventory | set index to FindRefInArray pInventory tItem | ||
if (index > -1) | if (index > -1) |