Code: Select all
cloneObject{
name = "mouth_socket",
baseObject = "mouth_socket",
onInsertItem = function (self, item)
local a, b = string.find (item.name, "_gem")
return a ~= nil and b == string.len(item.name) and self:getItemCount() == 0
end,
} Code: Select all
cloneObject{
name = "mouth_socket",
baseObject = "mouth_socket",
onInsertItem = function (self, item)
local a, b = string.find (item.name, "_orb")
return a ~= nil and b == string.len(item.name) and self:getItemCount() == 0
end,
} Major thanks again to everyone of you helping me out here. The dungeon is about halfway done, I should be able to put it up for playtesting by the weekend!