Page 1 of 1

Lost item

Posted: Mon Jan 04, 2016 4:59 pm
by FennerMachine
I have lost an item that I need, a power gem.
I have gone to all the Gem locations but I collected them all.
I must have dropped it somewhere.
I've looked all over the maps (exept for where the Gem is obviously!) and looked in boxes that I've left, but cannot find it!
I could just spawn a new one but is that cheating too much?
Is there a console comand to find items?

Re: Lost item

Posted: Mon Jan 04, 2016 8:37 pm
by Zo Kath Ra
FennerMachine wrote:Is there a console comand to find items?
If the power gem isn't inside a container somewhere, you can use this console script:

Code: Select all

for i = 1, Dungeon.getMaxLevels() do 
    local map = Dungeon.getMap(i) 
    for entity in map:allEntities() do 
        if (string.find(entity.name, "power_gem") ~= nil) then 
            print(entity.name .. " @ " .. "map = " .. entity.map:getName() .. " / x = " .. entity.x .. " / " .. "y = " .. entity.y .. " / " .. "elevation = " .. entity.elevation) 
        end 
    end 
end 

Re: Lost item

Posted: Tue Jan 05, 2016 12:19 am
by FennerMachine
Thanks!
I'll give that a go.
I've been able to use the party in a mod even though I've not completed the original campain fully so all is not lost.
Working better than my last attempt at Mystrock.