Skip to content

Instantly share code, notes, and snippets.

@allanon
Created June 13, 2016 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allanon/f34bd8b0f361148ca7d3a1671de8cb62 to your computer and use it in GitHub Desktop.
Save allanon/f34bd8b0f361148ca7d3a1671de8cb62 to your computer and use it in GitHub Desktop.
example of using @inventory to loop over inventory items
$items = @Inventory(Damascus [2]),-1
$item = [$items]
while ($item != -1) as loop
log Do something useful with item $item!
$item = [$items]
end loop
@arvilmena
Copy link

$items = @Inventory(Damascus [2]),-1
$item = [$items]
while ($item > -1) as loop
  log Do something useful with item $item!
  $item = [$items]
end loop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment