A Scripting Tool

 

Finding all the doors and spots in a room.

This is a simple script that someone asked me to post --- it is useful if you are scripting and looking for doors and spots. It lists the following for a room: 1) the room id, 2) all the door ids and the room ids of their destinations, 3) all the spot ids. (Note that all doors are spots, but not vice versa, so listing 3 will include listing 2.) It also tells you the spot id of any spot(s) your av might be sitting on.

Please note that I have set up this file as an independent Cyborg.ipt, so you can use it as it is; but, if you want to paste the scripts into your existing Cyborg.ipt file, take them out of my ON OUTCHAT section and paste them into your ON OUTCHAT section.

stool.txt (Please read the terms of use!)

 

 

How to use the script.

1. In the room in question, simply say

roominfo

and the information will appear in your log window. For example, The Moor at Main (as of Nov. 27, 1999) gives the following information:

*****

Room number: 103

Door numbers: 2 - 150, 3 - 106, 4 - 800, 6 - 666,

Spot numbers: 2, 3, 4, 6, 1001,

2. If your av is standing in a spot, you simply say

spotinfo

and the spot id of the spot your av is in appears in your log window. For example, standing on the door that leads to Heaven's Gate in The Moor at Main, gives

*****

In spot: 4 - 800

Note that all doors are spots, but not all spots are doors. If the spot you are standing on happens to be a door, you will also get the room id of the door's destination.