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
enema
Beginner


Joined: 06 Aug 2009
Posts: 11

PostPosted: Thu Aug 06, 2009 4:54 pm   

Getting map to react to MUD
 
Hey I'm brand new to these forums, I've had a look but there are so many posts I can't find one specifically dealing with my query.

My question is:
Is it at all possible (since as far as I can tell the map and the textual mud work almost independantly) to get the map to react to output from the mud. Such as making your current position move EAST when the mud prompts "You move east." ?
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Thu Aug 06, 2009 6:06 pm   
 
Yes... you can do so with a #TRIGGER. For example
Code:
#TRIGGER {You move (%w)} {#MOVE %1}


That's off the top of my head but it should give you an idea. More than likely you will have better luck configuring the mapper and that way it can track you automatically.
_________________
Asati di tempari!
Reply with quote
enema
Beginner


Joined: 06 Aug 2009
Posts: 11

PostPosted: Thu Aug 13, 2009 4:58 pm   
 
thanks, that works :)

My following question is that I would like to pick up strings from a single line of indeterminate length. For example:

You follow a disenfranchised man south.
You follow Spite enter door.

I would like to be able to pass both "south" and "enter door" into variables.

any suggestions?

EDIT:
This query is really simple and I almost hate to insult you with it. I have it passing the direction into a variable for a set list of 'followed characters' but what I really need to know is how to populate a namelist with names from the following text format where "Spite" is the name to be captured:

You accept the follow request from Spite.

This line may occur alot so I need it to capture a list of names and store them (and remove them when appropriate) so it could be used like this:

You follow {Spite|John|Angron|Maverick} &direction*.
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