|
JimmyMud Newbie
Joined: 08 Jan 2013 Posts: 5
|
Posted: 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. |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: 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. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Tue Jan 08, 2013 10:58 pm |
you could make you own log of commands with #FILE #WRITE and an #ONINPUT trigger
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
JimmyMud Newbie
Joined: 08 Jan 2013 Posts: 5
|
Posted: 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!! |
|
|
|
|
|