Double spacing in log files

Posted by Nojh on Thu 13 May 2010 03:04 AM — 6 posts, 18,727 views.

#0
Hi there. I recently started using MUSH Client and I'm trying to recreate some functionality my older MU* client used to have. Namely the ability to automatically double space log files.

I thought perhaps it might be as simple as creating a trigger on '\n' that outputs '\n' to the log file. But that didn't seem to work.

Could anyone help me determine how I could replicate this feature using MUSH Client?

Thanks.
USA #1
<triggers>
<trigger
 match="^$"
 regexp="y"
 keep_evaluating="y"
 send_to="12"
 sequence="100">
  <send>
    if IsLogOpen() then
      WriteLog("\r\n")
    end
  </send>
</trigger>
</triggers>


Make sure "Triggers can match on an empty line" is active, in File -> Global Preferences -> General.
Amended on Thu 13 May 2010 03:32 AM by Twisol
#2
Hi! Thank you for the response. Could I also ask that you point me to the help file or documentation that tells me how to install that particular trigger? I'm only familiar with the dialog entry format.
USA #3
Sure, sorry. Copy the entire contents of the code box there, and go to Game -> Configure -> Triggers. Click the Paste button on the bottom of the dialog, and it should import the trigger for you.
Australia Forum Administrator #4
A simpler method is to go into the Logging configuration for the world, and near the bottom, where it says Output lines ... Postamble put "%n" into the box (without the quotes). That will put a newline as a postamble after each line. You will also need to put that into the box for "commands" and "script notes" as well, if you want them double spaced too.
#5
Thank you Nick Gammon. That worked perfectly.

Twisol: I tried the trigger and it didn't appear to work. Interestingly enough after I closed and re-opened the application, the trigger had changed. I tried deleting and re-pasting but that didn't work either.