ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Locking room question

This forum is the place to discuss the older ADRIFT versions 3.9 and 4.0.

Please refer to the ADRIFT 4 Manual for more information.

Locking room question

Postby mugen24 » Thu May 24, 2012 6:19 am

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
mugen24
 
Posts: 9
Joined: Thu May 24, 2012 6:12 am

Re: Locking room question

Postby David Whyld » Thu May 24, 2012 8:09 am

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.
David Whyld
 
Posts: 6592
Joined: Sat Dec 18, 2004 5:15 pm
Location: United Kingdom

Re: Locking room question

Postby mugen24 » Thu May 24, 2012 8:54 pm

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?
mugen24
 
Posts: 9
Joined: Thu May 24, 2012 6:12 am

Re: Locking room question

Postby David Whyld » Thu May 24, 2012 8:56 pm

Yes, if you also add a restriction that the item in question has to be held by the player.
David Whyld
 
Posts: 6592
Joined: Sat Dec 18, 2004 5:15 pm
Location: United Kingdom

Re: Locking room question

Postby mugen24 » Fri May 25, 2012 8:27 pm

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?
mugen24
 
Posts: 9
Joined: Thu May 24, 2012 6:12 am

Re: Locking room question

Postby David Whyld » Fri May 25, 2012 8:40 pm

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.
David Whyld
 
Posts: 6592
Joined: Sat Dec 18, 2004 5:15 pm
Location: United Kingdom

Re: Locking room question

Postby mugen24 » Fri May 25, 2012 9:21 pm

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.
mugen24
 
Posts: 9
Joined: Thu May 24, 2012 6:12 am

Re: Locking room question

Postby David Whyld » Fri May 25, 2012 9:42 pm

Just one task with a restriction that the item in question is carried or the door is locked.
David Whyld
 
Posts: 6592
Joined: Sat Dec 18, 2004 5:15 pm
Location: United Kingdom

Re: Locking room question

Postby mugen24 » Sat May 26, 2012 4:04 am

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.
mugen24
 
Posts: 9
Joined: Thu May 24, 2012 6:12 am

Re: Locking room question

Postby Duncan_B » Sat May 26, 2012 7:45 pm

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.
User avatar
Duncan_B
 
Posts: 1204
Joined: Fri Apr 01, 2005 8:26 pm
Location: Chicago, Illinois

Re: Locking room question

Postby mugen24 » Sat May 26, 2012 8:31 pm

Alright I think I understand how this works. Thanks for the help.
mugen24
 
Posts: 9
Joined: Thu May 24, 2012 6:12 am


Return to ADRIFT 3.9 and 4.0

Who is online

Users browsing this forum: No registered users and 10 guests