Locked doors

Hello it's me again and I have a question as usual :)

I have created a room to the left of the entry hall in my house which is locked. Howerever, I can't find any way to make it open. For example, let's say I'm able to smash the lock with a broken chair leg. But that it's locked before I do. How do I do that? Like make an exit open when I do something.

You can use the script that would unlock an exit that can be found when you click the 'Exits' script category, and choose the 'Unlock an exit' script. From there, type the locked room's name as the 'From room' and the entry hall as the 'To room/direction'.

Could you explain more detailed please?

After the script that prints a message about the chair leg being broken, add another script. Click the Exits category in the left, then choose the 'Unlock an exit'.

In the text box after "From Room:", type "entry hall" or the name of the entry hall.

In the text box after "To room/direction:", type the locked room's name.

But if you are talking about doors, I'd need to see how you 'coded' them.

the door im talking about is the one east of the entry hall.

fritiof wrote:the door im talking about is the one east of the entry hall.


Then, as the "To room/direction" as either "east" or "Empty Room.".

You would need to use "east" if it's an east exit. Don't use the name of the "to" room.

Oh... I see

I'm screwed. I changed the script on the "take" option on the chairs and made it so that it would unlockk the exit from the entry hall to the empty room. I entered thge game and the door was still locked when I took the chair. Then I though: Hey, let's do it another way and I modified the "east" exit from the entry hall in the script when I would pick up the chair. I etered the game and: It still doesn't work. Try it out for me and tell me what's wrong.

Ok, I took a look at your script, and saw that taking the chairs actually creates an exit.

Instead, you should choose the "Unlock an exit" script from the same category. Here's the script:


I did what you asked and it still didn't work. Any more suggestions? Anyone?

Weird...


You would need to use "east" if it's an east exit. Don't use the name of the "to" room.
You would need to use "east" if it's an east exit. Don't use the name of the "to" room.
You would need to use "east" if it's an east exit. Don't use the name of the "to" room.
You would need to use "east" if it's an east exit. Don't use the name of the "to" room.
You would need to use "east" if it's an east exit. Don't use the name of the "to" room.
You would need to use "east" if it's an east exit. Don't use the name of the "to" room.
You would need to use "east" if it's an east exit. Don't use the name of the "to" room.
You would need to use "east" if it's an east exit. Don't use the name of the "to" room.
You would need to use "east" if it's an east exit. Don't use the name of the "to" room.


I tried out what you said and it sill doesn't work. I realise I must be doing somethng wrong here but instead of having "from entry hall to empty room" I choose "from entry hall to east" and it still doesn't work. Maybe your tip doesn't work and there's something else is wrong. Posibbly I'm completely retarded and if that is so, explain to me very carefully what is wrong. And please, don't be rude :)

For some reason your chairs have a "take" property. This is overriding the take script that you've set up.

Go to the Advanced tab and remove the "take" property from the chairs.

Thanks a lot man that final tip worked.