Lost item

This is the forum for helping you out if you're stuck in Grimrock 2 or if you want to discuss about the mysteries of the Isle of Nex. Warning: forum contains spoilers!
Post Reply
FennerMachine
Posts: 55
Joined: Tue Dec 23, 2014 4:11 pm

Lost item

Post 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?
User avatar
Zo Kath Ra
Posts: 931
Joined: Sat Apr 21, 2012 9:57 am
Location: Germany

Re: Lost item

Post 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 
FennerMachine
Posts: 55
Joined: Tue Dec 23, 2014 4:11 pm

Re: Lost item

Post 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.
Post Reply