lua:ch:inventory
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lua:ch:inventory [2014/12/24 04:47] – aethyn | lua:ch:inventory [2014/12/24 04:57] (current) – aethyn | ||
---|---|---|---|
Line 3: | Line 3: | ||
Example: | Example: | ||
- | Looping | + | Loop through a PC' |
- | <code lua> | + | <code lua>for _,object in ipairs(ch.inventory) do |
- | for _,object in ipairs (ch.inventory) do | + | |
if object.vnum == 100 then | if object.vnum == 100 then | ||
- | | + | |
end | end |
lua/ch/inventory.1419396448.txt.gz · Last modified: 2014/12/24 04:47 by aethyn