[Editor] Key + Lock bug

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
whackangel
Posts: 49
Joined: Wed Sep 26, 2012 3:50 pm

[Editor] Key + Lock bug

Post by whackangel »

Hello everyone,
As a big fan of the first issue of the LoG editor, I was pretty exited to go an discover the new features of the second edition.

Here the problem : I want a lock to open a certain door, and a certain key to fit the said lock, yet when I use the key in this lock the door doesn't open, it only makes the same sound as if the key was not the proper one. I've tried a lot of different combinaison, but even the regular "Gera_key" + "Gear_lock" doesn't work on the door...

Any idea why ?
Thank you very much for your replies...
User avatar
Prozail
Posts: 158
Joined: Mon Oct 27, 2014 3:36 pm

Re: [Editor] Key + Lock bug

Post by Prozail »

What did you put in the "openedBy" tag for the lock?

The thing is, locks are opened by the whole class of keys, so you cant' specify "iron_key_1" you have to give it the class of "iron_key", and then, ALL iron keys in the game works for that lock.

if you want specific key's you have to define your own key-class.
whackangel
Posts: 49
Joined: Wed Sep 26, 2012 3:50 pm

Re: [Editor] Key + Lock bug

Post by whackangel »

ooh... so if I enter the "gear_key_1" name in the OpenedBy box, it doesn't work ??

I'll try again with just entering "Gear Key" or something...

[Edit] Yup... worked just fine ! Problem solved...

Next ?!
Post Reply