get_item_children(item_id)
Description
Returns a table of children item ids.
Example
x=get_item_children(item_id)
max=table.maxn(x)
if max ==0
then
m="no"
else
m=string.format("%.0f", max)
end
msg="has ".. m .." Children"
msgbox(msg,"")
This bit of code will create a table of children item ids (x) for the children of the selected item.
A message (msg) is printed that says either that there are no children or gives the number of children items.
Related Rules
none
Rules