User Tools

Site Tools


lua:ch:inventory

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lua:ch:inventory [2014/12/24 04:53]
aethyn
— (current)
Line 1: Line 1:
-Returns a table of [[:​lua:​obj:​members|OBJ]]s. 
- 
-Example: 
- 
-<code lua>-- loop through a PCs inventory and remove that item\n ​  for _,object in ipairs (ch.inventory) do 
- 
-  if object.vnum == 100 then 
- 
-    object:​destroy() 
- 
-  end 
- 
-end 
-</​code>​ 
  
lua/ch/inventory.1419396783.txt.gz ยท Last modified: 2014/12/24 04:53 by aethyn