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
talonnb
Apprentice


Joined: 30 Oct 2004
Posts: 127

PostPosted: Thu Jun 21, 2007 4:00 pm   

Getting response from mud to specific commands
 
Writing a rather complicated system, and some of the error messages given back by the mud would be nice to link to the exact command I sent that caused that error, for error correction and so on.

Is there a way to, in the multitude of commands to check to see what the mud responded to when it gives an error, or to have the triggers check each command's response from the mud?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Jun 21, 2007 5:38 pm   
 
Not really, in a long sequence of commands. The only way I can think of off the top of my head is to preserve the list of commands sent in a string list and then pop items from the list when they succeed or fail. It'd be quite a lot of work because you'd need to keep track of every success or fail.

If the particular command you're trying to follow has a unique fail message, it's a bit easier, but a generic example is much more complex.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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