Thanks, but neither of those suggestions work, unless you can prove to me how. The .dot operator only works for the things listed in the Scripting Reference (.name, .id, .x, .y etc), and there's no way to access the object definition data except through the commands like getWeight (if .weight worked, why would there even -be- a command like that?) -- and, again, if you try to run an invalid command it crashes the game.
So we're still back at zero. What frustrates me right now is that my workaround isn't working either. I've got this massively ugly if...then...elseif script running, trying to parse out the non-items, but it DOESN'T WORK and I really don't know why.
Code: Select all
function weightCheck()
local allItems = {}
for i in entitiesAt(self.level, self.x, self.y) do
if i.name ~= "prison_secret_door"
then table.insert(allItems,i)
elseif i.name ~= "prison_wall_2"
then table.insert(allItems,i)
elseif i.name ~= "script_entity"
then table.insert(allItems,i)
elseif i.name ~= "prison_pillar"
then table.insert(allItems,i)
elseif i.name ~= "prison_floor_drainage"
then table.insert(allItems,i)
elseif i.name ~= "prison_ceiling_lamp"
then table.insert(allItems,i)
elseif i.name ~= "party"
then table.insert(allItems,i) end
end
print (allItems[1].name)
end
Prints "prison_secret_door" even though it really shouldn't.

Anyone else?
-Wolfrug