Would someone be willing to please help me figure out how to do a unique action depending on how many of one kind of an object are in a room based on GMCP?
For example, if there is one monolith in a room, I want to send myself a note to get a second monolith. If there are two monoliths in a room then I want to send myself a note that everything is fine.
Currently, I have the following which gives me the info message below twice.
for _, v in pairs(gmcp.Char.Items.List.items) do
if v.name == "a monolith sigil" then
info("A monolith is here!")
end
end
I tried doing something like if tonumber(v.name) > 1 then info ("More than one here") but... Mudlet didn't like that so much.
Comments