 |
talonnb Apprentice
Joined: 30 Oct 2004 Posts: 127
|
Posted: 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? |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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. |
|
|
 |
|
|
|
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
|
|