Page 1 of 1

Locking room question

PostPosted: Thu May 24, 2012 6:19 am
by mugen24
Is there a way to lock the player in a room using a task or event and the player must complete another task in order to unlock the door?

Thanks

Re: Locking room question

PostPosted: Thu May 24, 2012 8:09 am
by David Whyld
You could have an "open door" task that has a restriction that another task has to be completed first. That will prevent the door being open until the first task was complete.

Re: Locking room question

PostPosted: Thu May 24, 2012 8:54 pm
by mugen24
Would that work if you are holding an item and if you drop it, it locks the room to prevent the player from leaving the item behind?

Re: Locking room question

PostPosted: Thu May 24, 2012 8:56 pm
by David Whyld
Yes, if you also add a restriction that the item in question has to be held by the player.

Re: Locking room question

PostPosted: Fri May 25, 2012 8:27 pm
by mugen24
So would I have to create multiple doors around the map in order to trap the player in a room if he drops an item? Would I need multiple tasks for each room?

Re: Locking room question

PostPosted: Fri May 25, 2012 8:40 pm
by David Whyld
I don't know why you'd need multiple doors just to trap a player. One task for each room ought to cover it with a restriction that the item required to leave the room is carried by the player.

Re: Locking room question

PostPosted: Fri May 25, 2012 9:21 pm
by mugen24
One task for each room ought to cover it with a restriction that the item required to leave the room is carried by the player.
So how would I program this. Make one task to drop the item reversible to unlock the room, make two tasks one to drop the item to lock the room and one task to pick up the item to unlock the room or something else.

Re: Locking room question

PostPosted: Fri May 25, 2012 9:42 pm
by David Whyld
Just one task with a restriction that the item in question is carried or the door is locked.

Re: Locking room question

PostPosted: Sat May 26, 2012 4:04 am
by mugen24
How do I create a door or barrier that locks? Sorry for all the questions, this is my first try at creating doors, locking them.

Re: Locking room question

PostPosted: Sat May 26, 2012 7:45 pm
by Duncan_B
Open your door object. Click on the "Attributes" tab. Check "Object can be opened or closed," then check "... and is Lockable, with key." From the drop-down menu, select which object is the key to that door.

You might try exploring the Generator a little more, or reading this.

Re: Locking room question

PostPosted: Sat May 26, 2012 8:31 pm
by mugen24
Alright I think I understand how this works. Thanks for the help.