[help] Iterating to find items
Posted: Thu Jan 03, 2013 9:48 pm
Hello,
I've been trying to find a specific item using the developer console. So far the best I've come up with is:
This apparently works on the first two levels. What I really want is to find a particular scroll with the text "to depths beyond measure", in order to get its location on the map. But I'm kinda stumped. New to Lua, as well.
Thanks for any help,
/David
I've been trying to find a specific item using the developer console. So far the best I've come up with is:
Code: Select all
it = allEntities(1)
n=5 for i in it do if i~=nil and i.getUIName~=nil then do if n<1 then break end n=n-1 print(i.name) end end end
Thanks for any help,
/David