Iceclaw Apprentice
Joined: 11 Sep 2005 Posts: 124
|
Posted: Wed Nov 02, 2005 5:46 pm
Determining the Existance of a Room |
I need to determine the following things about a room, perferably just knowing the direction of the exit.
From a room, 'Is this exit linked to a room, or is it just a stub?'
Does this exit lead out of this zone?
Is this room's cost= <The Do Not Enter> flag.
I'm trying to write something to travel in a random 'safe' direction if it doesnt see any mobs nearby in its target list
Also If you could help me write something to match the target list, that would be great. ;) I pretty much need it to capture and parse everything til the prompt I guess.
The target list could be done as a db variable so it can have keywords for the mobs it's capturing.
scan
Looking around you see:
BrokenOne, right here.
the vagabond, right here.
A stray dog, right here.
A stray dog, nearby to the north.
the cityguard, nearby to the east.
<12373/12373hp 8469/8469m 5286/7075mv> <Exits:NESW> <Qst: 4 TNL: 1591> <ROOM: A Devastated Square >
no mobs around
scan
Looking around you see:
<12373/12373hp 8469/8469m 5334/7075mv> <Exits:NSD> <Qst: 3 TNL: 1591> <ROOM: The Dump >
scan <dir>
scan north
You peer intently north.
A stray dog, not far north.
A stray dog, off in the distance north.
the 1st is 2 rooms north, the 2nd is 3 rooms north. |
|