Created
June 13, 2016 03:47
-
-
Save allanon/f34bd8b0f361148ca7d3a1671de8cb62 to your computer and use it in GitHub Desktop.
example of using @inventory to loop over inventory items
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$items = @Inventory(Damascus [2]),-1 | |
$item = [$items] | |
while ($item != -1) as loop | |
log Do something useful with item $item! | |
$item = [$items] | |
end loop |
arvilmena
commented
Jun 13, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment