Page 1 of 1

SetOpenedBy Key ID

Posted: Mon Jun 17, 2013 4:38 pm
by Lynx
Door:setOpenedBy(key)
Sets the name of the item which can be used to unlock this door. Works only with doors with built-in locks.

How i can use the key ID instead key name?

Re: SetOpenedBy Key ID

Posted: Mon Jun 17, 2013 6:07 pm
by Komag
As far as I know you can't. But you can easily set up a new item in your dungeon's items.lua, so it's not a big deal.

Re: SetOpenedBy Key ID

Posted: Mon Jun 17, 2013 9:05 pm
by Lynx
Okay, thank you, Komag.

UPD: What means the gfxIndex line in items.lua?

Re: SetOpenedBy Key ID

Posted: Mon Jun 17, 2013 10:41 pm
by Komag
It's the number of the little icon used