In this section I'll describe three ways to make rooms lock: first, with a touch; second, with a verbal command; and third, with another verbal command that PC and Mac wizards can use. Make sure your coffee cup is filled and then read on!

Mac users, you may use any of the following techniques to lock rooms.

PC users, do not use the script that requires the "touch" or the first verbal command script. Click here to go directly to that section of these directions.

For a room to lock, you must create two doors. I'll be using the word "door" and "spot" interchangeably (a spot is a door that has been sized very small and doesn't act as a passage). Remember that if you already have doors in the room, you should renumber their ID's to anything other than 1 or 2. See below for an illustration and note that the door ID is "3." You can change that by highlighting that section, and typing in what number you want:



The Mac Door Information Box


The PC Door Information Box, with ID set to 1 

OK, let's begin:

1) Go to wiz mode and go to the room you want to make lockable.

2) Go to Wizard/Room Info menu. Under "options" on the Room Info, click on "private" (If you're not sure what the Room Info box looks like, press here.) Click on OK, which will set those instructions on the server. Check under Options/Go to Room menu and make sure you see a dash (-) for number in room instead of a numeral, such as 0 or 1.

3) Under Wizard, choose authoring mode. Then under Wizard click on "New Door." This will create a highlighted square in the middle of your room. Click in the square and the corners will highlight with draggable tabs.

4) Once the door is highlighted with tabs, go to Wizard:Door Info. A dialogue box will appear. Plug in the following information:

ID 1
Dest 2
Type: Normal
State: Open
Options: Don't Move Here

(PC users note: You probably will not be able to edit the Dest box in this fashion. You should refer to the sections below on locking the room with a verbal command.)

NOTE: If you have any other doors in the room, you'll want to renumber their ID's to something other than 1 and 2, so these directions will work.

Now, that same dialogue box has a small box called PICTS. . . (Edit Pictures on the PC). Click on that box. That brings up yet another dialogue box where you can add or delete GIFs. The padlock that you see in lockable rooms like the chess board, or lockable rooms at CyberQuest is actually two separate small GIFs. In that PICT (Edit Pictures) dialogue box you will see <none> there as the default mode. Delete that line <none>, if it's there at all. Then, click the "add" button and add in the chessunl.gif. Click add again and add the chesslck.gif. These have to be added in the order given. Unlock should precede lock. The small unlocked padlock appears on your screen. It is connected to your door--when you move the door, the padlock moves too.

5) In that same Room Info dialogue box is a clickable box called Script. Click that and add the following script in the dialogue box that appears.

ON SELECT
{
{ 0 1 SETSPOTSTATE DEST UNLOCK }
{ 1 1 SETSPOTSTATE DEST LOCK } DEST ISLOCKED IFELSE
}

ON ENTER
{
DEST ISLOCKED 1 SETSPOTSTATE
}

Click out of the script box and save. Click out of Room Info Box. Check to make sure your settings are all correct as described above.

6) Resize and move your door to wherever you want it. This will also move the unlocked padlock GIF. You can place it anywhere in the room.

7) Create another door. Highlight it. Under Wizard:Door Info set the following:

ID 2
Dest 0
Type lockable
State open
Options Don't Move Here

Click OK and resize and move the door to an out of the way spot. The spot serves ONLY to activate the script and will not be touched by the user.

8) Undo authoring mode.

Now try it! Click on your padlock, or first door. It should work. Cool, huh? If it worked, send coffee to Ori. If it didn't, uhhhhhh. Well, hmmmmmm. Try again or try one of the verbal command scripts below.

You can also make the room lock on a verbal command. Below I'll give two ways of making such a lock. Remember before you begin that if you have other doors in the room, you must renumber the door ID spot to anything but 1 or 2. OK, let's begin:

First, under Wizard:Room Info . . . click the option to make the room "private." Only private rooms can be made lockable.

Next, create a new door, size it to about an inch square, and place it where you want the padlock icon to be. (The padlock icon is optional. The lock will work just fine without it, but there's something very comfy in actually seeing that icon chang to the locked version.)

Once the door is highlighted with tabs, go to Wizard:Door Info. A dialogue box will appear. Plug in the following information:

ID 1
Dest 2
Type: Normal
State: Open
Options: Don't Move Here

In the Script section of that dialogue box, plug in the following script:

ON OUTCHAT
{
{ 1 1 SETSPOTSTATE DEST LOCK }
CHATSTR "lock" == IF
{ 0 1 SETSPOTSTATE DEST UNLOCK }
CHATSTR "open" == IF
}

ON ENTER
{
DEST ISLOCKED 1 SETSPOTSTATE
}

Then you can create another door. Size it small and put it well out of the way, for it functions only to assist the first door's script. Open the Door Info dialogue box and fill in the following:

ID 2
Dest 0
Type: Lockable
State: Open
Options: Don't Move Here

PC users note: You probably will not be able to edit the Dest box to 0. Please use the verbal command described in the next section.

Now, go out of authoring mode and try it. Say "lock" without the quotes and your padlock icon should change to the locked icon and you should hear the closed door sound. Check in the Find User. You should now be listed as being in a "closed" room. Perfect. Ahhhh, I do love a lockable room. To unlock the room, say "open" without the quotes.

Remember that you can change the key words very easily. In the script for door 1, you'll find a CHATSTR line followed by "lock" and "open" in quotation marks. You could change "lock" to "close", or whatever. Just don't omit the quotation marks. It might also be helpful to put in a message script to alert your users what keywords will lock and unlock the door. Something like this would work well:

ON ENTER {
"@20 20To lock the room, say 'lock' and 'open' to unlock." LOCALMSG }

The following instructions will allow your users to lock the room with a verbal command. And yes, PC wizards, you can use this script! Cool. Let's begin:

1) Go to wiz mode and go to the room you want to make lockable.

2) Go to Wizard/Room Info menu. Under "options" on the Room Info, click on "private" (If you're not sure what the Room Info box looks like, press here.) Click on OK, which will set those instructions on the server. Check under Options/Go to Room menu and make sure you see a dash (-) for number in room instead of a numeral, such as 0 or 1.

3) Under Wizard, choose authoring mode. Then under Wizard click on "New Door." This will create a highlighted square in the middle of your room. Click in the square and the corners will highlight with draggable tabs. Resize the door to about one inch square, then move the door to where you'd like the lock icon to appear.

4) With the door still highlighted, go to Wizard:Door Info. A dialogue box will appear. Plug in the following information:

Type: Lockable
State: Open
Options: Don't Move Here

5. Now, that same Door Info dialogue box has a small box called PICTS. . . (Edit Pictures on the PC). Click on that box. That brings up yet another dialogue box where you can add or delete GIFs. The padlock that you see in lockable rooms like the chess board, or lockable rooms at CyberQuest is actually two separate small GIFs. In that PICT (Edit Pictures) dialogue box you will see <none> there as the default mode. Delete that line <none>, if it's there at all. Then, click the "add" button and add in the chessunl.gif. Click add again and add the chesslck.gif. These have to be added in the order given. Unlock should precede lock. The small unlocked padlock appears on your screen. It is connected to your door--when you move the door, the padlock moves too.

6. Create another door. Size it and move it to some obscure, dusty corner. It functions only to house the script. Put the following information in for that door:

Type: Deadbolt
State: Open
Options: Don't Move Here

7. Go to that door's script box and open the script dialogue box. Insert the following script:

ON OUTCHAT {

{ 1 6 SETSPOTSTATE 6 LOCK } "close" CHATSTR LOWERCASE == IF

{ 0 6 SETSPOTSTATE 6 UNLOCK } "open" CHATSTR LOWERCASE == IF

}

ON ENTER {

"Use \"Close\" to lock and \"Open\" to unlock the room" LOCALMSG

}

Remember, for the above script to work, the first door you created should have the ID of 6. That's the door with the padlock icon. If it has any other ID#, change it to ID 6, making sure no other door in the room has that same ID#. Also remember that you can change the words used to activate the script. Instead of "close" for example, you could use "snuggle" or "private." Just make sure your users know how to activate the lock.

Back to Home Page On to How to Make Av Rooms