Page 1 of 3

I'm stumped... help!

Posted: Thu Sep 13, 2012 7:46 pm
by Aazlan
How do I get a demon head w/ eyes to check that there are 2 different colored gems inserted to open a door?
Any suggestions would be appreciated. Thanks a bunch!

Re: I'm stumped... help!

Posted: Thu Sep 13, 2012 7:52 pm
by petri
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.

Re: I'm stumped... help!

Posted: Thu Sep 13, 2012 7:58 pm
by Aazlan
Ah, ok, that points me in a productive direction. Thank you very much!

Re: I'm stumped... help!

Posted: Thu Sep 13, 2012 9:44 pm
by resonansER
I'm stumped too. :(
I placed _door_wooden_locked_2 in dungeon BUT i don't understand WHICH key open this door. :( All keys from editor only fly in door when I tried open he.

Re: I'm stumped... help!

Posted: Thu Sep 13, 2012 9:55 pm
by Komag
you have to put the key Name, not ID

Re: I'm stumped... help!

Posted: Thu Sep 13, 2012 10:13 pm
by resonansER
Komag wrote:you have to put the key Name, not ID
mmmm.Where put the key Name? If click on door in editor I see only checkbox "add pul chain", that's all. Excuse me. :(

Re: I'm stumped... help!

Posted: Thu Sep 13, 2012 10:43 pm
by Komag
Ah, I didn't read it carefully enough - that lock is different! Other locks you place on the wall, and enter which key Name will activate the lock, then you link the lock to the door you want opened. This door with the lock in the middle, I can't make it work either.

I'm guessing there is supposed to be some sort of invisible lock on the door, or it will take a script I have no idea how to approach, or maybe there is just something missing or a bug with the door, I don't know

Re: I'm stumped... help!

Posted: Thu Sep 13, 2012 11:24 pm
by Neikun
resonansER wrote:
Komag wrote:you have to put the key Name, not ID
mmmm.Where put the key Name? If click on door in editor I see only checkbox "add pul chain", that's all. Excuse me. :(
Add pull chain.. what?
OH THAT'S WHY! I couldn't find a chain for my portcullis.

Re: I'm stumped... help!

Posted: Thu Sep 13, 2012 11:51 pm
by resonansER
Komag wrote:Ah, I didn't read it carefully enough - that lock is different! Other locks you place on the wall, and enter which key Name will activate the lock, then you link the lock to the door you want opened. This door with the lock in the middle, I can't make it work either.
Of course, this is clear. But what do with _door_wooden_locked_2 i've no ideas. May be developers give a direction?

Re: I'm stumped... help!

Posted: Fri Sep 14, 2012 6:44 am
by petri
resonansER wrote:Of course, this is clear. But what do with _door_wooden_locked_2 i've no ideas. May be developers give a direction?
Look for Door:setOpenedBy() in scripting reference.