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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
shalimar
GURU


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

PostPosted: Wed Jun 07, 2006 3:10 am   

Echo commands
 
Is there a simple way to reroute commands send to echo in a child window instead of the main one? Those sent via triggers and whatnot as well as those entered on the command line.
_________________
Discord: Shalimarwildcat
Reply with quote
Arcane_of_Discworld
Wanderer


Joined: 29 Jan 2002
Posts: 99
Location: UK

PostPosted: Wed Jun 07, 2006 9:45 am   
 
Easiest way would be to disable echoing of commands and scripts within preferences (Script Parser) then create a window using #WIN eg: '#WIN Commands', so you don't have to always create it when starting zMud it is best if you right click on the new window and select Edit Menu the in the settings window that pops up save (File>Save as) the settings file (by default it will be the name of the window name), then close the settings. Position the window where you would always like it and then save the layout.

To actually reroute the echoing of commands I would use an #ONINPUT trigger such as:
Code:
#ONINPUT {(*)} {:Commands:#SAYPROMPT %time( hh:nn:ss:zzz)%char( 32)
   :Commands:#SAY %1} "" {notrig}

The above also adds a time stamp to the beginning of the line.
Reply with quote
shalimar
GURU


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

PostPosted: Wed Jun 07, 2006 10:03 am   
 
that only works for the ones entered on the command line, what about those fired off from triggers?
_________________
Discord: Shalimarwildcat
Reply with quote
Arcane_of_Discworld
Wanderer


Joined: 29 Jan 2002
Posts: 99
Location: UK

PostPosted: Wed Jun 07, 2006 10:58 am   
 
No idea.. I don't have any triggers that send commands to the mud..
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Jun 07, 2006 11:33 am   
 
Input triggers also work for commands that are sent from a script.
_________________
Kjata
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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