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
JimmyMud
Newbie


Joined: 08 Jan 2013
Posts: 5

PostPosted: Tue Jan 08, 2013 4:23 pm   

Command History Save With Directions
 
I just realized I posted this to Zmud forum when I meant to post to Cmud...sorry about that. Reposting here.

Hi,

I'm trying to create a file that is a series of commands that includes directions and actions. I'd love to be able to basically "replay" part of my mud session at a later date. Histsave and Histload would be perfect, if they also captured directions. I can't figure out an easy way to capture my commands (with directions) during play. I don't want the mud's output, because I want to be able to re-enter them later. Any ideas?


An example might be:

n
open n
l man
l woman
s
e
open n
dance
put gem in pot
l pot

Basically, I play a mud that gives points for "exploring" areas, with each character. So, after I explore an area once I want to be able to efficiently explore it again with my next character by re-entering the all the commands needed to walk and explore the area.


Thanks in advance.
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Tue Jan 08, 2013 7:09 pm   
 
You can make a command input trigger that fires on everything and write it to a file. Off the top of my head, untested:
Code:
#oninput "inputcapture" {^(*)$} {#file 1 "inputlog.txt";#write 1 %1;#close 1}


Then you can just turn it on and off as needed with #T+/#T- inputcapture.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Jan 08, 2013 9:17 pm   
 
Check out the Preferences. There's a preference that lets you specify the minimum length of characters a command must be in order to be saved in command history.
_________________
EDIT: I didn't like my old signature
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4672
Location: Pensacola, FL, USA

PostPosted: Tue Jan 08, 2013 10:58 pm   
 
you could make you own log of commands with #FILE #WRITE and an #ONINPUT trigger
_________________
Discord: Shalimarwildcat
Reply with quote
JimmyMud
Newbie


Joined: 08 Jan 2013
Posts: 5

PostPosted: Wed Jan 09, 2013 1:55 pm   
 
Just wanted to update this thread too (since I accidentally started one here and one on Zmud)...

Thanks all for the good suggestions. Matt's super simple solution worked though...so I'm all set!!
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