Re: I'm stumped... help!
Posted: Fri Sep 14, 2012 1:05 pm
Now it's work! Thank you!
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.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")
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 forShadowfied wrote: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.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")
How do you do that?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.