I'm stumped... help!

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
resonansER
Posts: 92
Joined: Fri Mar 02, 2012 2:02 pm
Location: Kiev, Ukraine
Contact:

Re: I'm stumped... help!

Post by resonansER »

Now it's work! Thank you!
User avatar
Shadowfied
Posts: 47
Joined: Wed Apr 11, 2012 10:42 pm

Re: I'm stumped... help!

Post by Shadowfied »

Montis wrote:What he means is that you can swap out the yellow part below to any key object that exists, afterwards it should work with that kind of key.

dungeon_door_wooden_locked_1:setOpenedBy("iron_key")
Yeah, I thought you had to put the name of the specific key you wanted to use. So I put "brass_key_1". That would be a lot better IMO, so you can decide which specific key fits where, oh well.
User avatar
Shroom
Posts: 98
Joined: Tue Mar 27, 2012 6:37 pm
Location: UK

Re: I'm stumped... help!

Post by Shroom »

Shadowfied wrote:
Montis wrote:What he means is that you can swap out the yellow part below to any key object that exists, afterwards it should work with that kind of key.

dungeon_door_wooden_locked_1:setOpenedBy("iron_key")
Yeah, I thought you had to put the name of the specific key you wanted to use. So I put "brass_key_1". That would be a lot better IMO, so you can decide which specific key fits where, oh well.
I guess you have to limit what keys are available as its the object type rather than an instance of the object that is checked for
User avatar
Montis
Posts: 340
Joined: Sun Apr 15, 2012 1:25 am
Location: Grimrock II 2nd playthrough (hard/oldschool)

Re: I'm stumped... help!

Post by Montis »

If you want to use very specific keys for each lock (that might or might not look the same), you can add additional key types with the cloneObject in the items.lua. I can't confirm that it will work, but I'm quite sure it should.
When destiny calls, the chosen have no choice.

My completed dungeon (LoG1): Hypercube
Aazlan
Posts: 13
Joined: Thu Sep 13, 2012 6:59 pm

Re: I'm stumped... help!

Post by Aazlan »

Ok, now that I have the various colored gem socket "keys" figured out, is there any way for me to prevent the party from taking the gem back out once it's inserted?
velojun
Posts: 19
Joined: Sat Sep 15, 2012 9:02 am

Re: I'm stumped... help!

Post by velojun »

petri wrote:This is a little bit involved. The basic idea is to place eye_socket_left and eye_socket_right into the same cell as the daemon head. By default eye_socket objects only accept blue_gems so you have to override their onInsertItem functions.
How do you do that?
Post Reply