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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Rebel
Novice


Joined: 29 Oct 2007
Posts: 33

PostPosted: Sun Jun 15, 2008 2:22 pm   

Is there anyway of sending editor text one line at a time?
 
Hi,
I have developed training scripts in another mud client that are typically about 50 lines long
I send a line to the mud, and I have a long "wait" between each line/group of lines.
Using this I can adjust my speed to that of the pupil.
I can over-ride this "wait" by sending a command, then the next line in the editor is sent
- or I can interject a live response to the pupil by prefixing my input with a special character.

This is rather crude, but it works. Are there similar facilities available in cMud?
Or can you suggest a better way?
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Jun 16, 2008 12:51 pm   
 
It would not be hard at all to implement something like that in cmud. Several ways come to mind.

One way would be to make each of your training scripts into a variable of type string list, with each line you want to send to the mud as a field in the list. So you'll have @gatheringscript, @combatscript, @smithingscript, etc. You have another variable @currentscript, defaulting to null. When you want to start training, you set @currentscript = @combatscript, or whatever. Then every time you want to send a line to the mud, you do: #send %pop(@currentscript). That's just the basic idea. You'd also want it to turn off the training if @currentscript were null, and other details like that. If you explain in a little more detail what you want we can probably help further.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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