Use this to randomly choose a doorway (from where you currently are) and go through it.
If there is only an exit in your current location then that is where you will go.
Since it is random you may just go back and forth between two locations.. that is the fun thing about randomness. scripting notes This is useful for coding a roaming object.. like the police man or the thief call "roam";
If you want to stop an objectfrom leaveing a specific location.. name the doorway you ant to refuse passage through like this: call "roam elevator";
or identify an object by its specific ID call "roam 20931";
When using the first method of a named object.. your roaming object will not go through anything in its current location with that name.
One day I will make this more flexible so you can identify several obects your roaming object wont go through.. but this is a start.