SetOpenedBy Key ID

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Lynx
Posts: 15
Joined: Wed May 29, 2013 10:04 pm
Contact:

SetOpenedBy Key ID

Post 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?
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: SetOpenedBy Key ID

Post 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.
Finished Dungeons - complete mods to play
User avatar
Lynx
Posts: 15
Joined: Wed May 29, 2013 10:04 pm
Contact:

Re: SetOpenedBy Key ID

Post by Lynx »

Okay, thank you, Komag.

UPD: What means the gfxIndex line in items.lua?
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: SetOpenedBy Key ID

Post by Komag »

It's the number of the little icon used
Finished Dungeons - complete mods to play
Post Reply