I wonder if it is possible to remove an item from inventory? Like some monsters just robb you:
I ve searched on the forum but I only have found something for grimrock1:
SpoilerShow
Code: Select all
function removeTorches()
local hastorches = false
for i=1,4 do
for v=1,31 do
if party.party:getChampion(i):getItem(v) ~= nil then
if party.party:getChampion(i):getItem(v).name == "torch" then party.party:getChampion(i):getItem(v):destroy() hastorches = true
end
end
end
end
if hastorches then hudPrint ("All your torches fizzle and die") else hudPrint ("Since you have no torches, none of them fizzle and die lol") end
endAnyone knows how to do it?