Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Iceclaw
Apprentice


Joined: 11 Sep 2005
Posts: 124

PostPosted: 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.
Reply with quote
Iceclaw
Apprentice


Joined: 11 Sep 2005
Posts: 124

PostPosted: Wed Nov 02, 2005 5:46 pm   
 
thanks for any help.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net