Locked doors

fritiof
12 Jul 2011, 13:34
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.

RedTulip
12 Jul 2011, 14:28
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'.

fritiof
12 Jul 2011, 20:07
Could you explain more detailed please?

RedTulip
13 Jul 2011, 00:18
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.

fritiof
13 Jul 2011, 09:10
the door im talking about is the one east of the entry hall.

RedTulip
13 Jul 2011, 09:42
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.".

Alex
13 Jul 2011, 12:17
You would need to use "east" if it's an east exit. Don't use the name of the "to" room.

RedTulip
13 Jul 2011, 14:06
Oh... I see

fritiof
13 Jul 2011, 14:13
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.

RedTulip
13 Jul 2011, 14:52
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:


fritiof
13 Jul 2011, 22:56
I did what you asked and it still didn't work. Any more suggestions? Anyone?

RedTulip
14 Jul 2011, 07:56
Weird...

Alex
14 Jul 2011, 08:26


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.


fritiof
14 Jul 2011, 13:05
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 :)

Alex
14 Jul 2011, 14:21
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.

fritiof
14 Jul 2011, 19:18
Thanks a lot man that final tip worked.