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
NeverNor
Novice


Joined: 18 Nov 2006
Posts: 32

PostPosted: Thu Jul 05, 2007 7:48 pm   

Help:Echos to main window only
 
IS there a way to force echos into the main window only, when I am looking at another window? Or/and, should I say, any output from me goes to the main window?


Last edited by NeverNor on Thu Jul 05, 2007 8:01 pm; edited 1 time in total
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Jul 05, 2007 7:57 pm   
 
One simple syntax:

:MainWindowName:#echo whatever

It used to be that one command (I think it was #echo) always sent text into the mud output window, and #say could be used for other windows. I guess that's changed.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
NeverNor
Novice


Joined: 18 Nov 2006
Posts: 32

PostPosted: Thu Jul 05, 2007 8:16 pm   
 
Where do I put that? I am not sure I am getting the right idea across let's say I have a main window and a familiar window. If I have the main window up and I let this code run

Code:
#CLASS {SSClass} {disable}
#VAR SSClassVar {prep seer;#maxrt 2|har 6|cast;#var maxrt 2|#var iSSClassVar 1;#ECHO {SSUP};#T- SSClass}
#VAR iSSClassVar {1} {1}
#ALARM "SSClassAlarm" {@maxrt} {#EXEC {%item( @SSClassVar, @iSSClassVar)};#T- SSClassAlarm} "" {disable}
#TRIGGER {{You raise your arms skyward|You tap into|You gesture.}} {#add iSSClassVar (+1);#T+ SSClassAlarm}
#TRIGGER {You don't have a spell prepared} {rel;#var iSSClassVar 1;#T+ SSClassAlarm}
#TRIGGER {You strain, but cannot harness that much power.} {rel;#WAIT 30000;#var iSSClassVar 1;#T+ SSClassAlarm}
#CLASS 0



the words "SSUP" will appear in whatever window I am looking at and I would like them to appear in only the main one when I am looking at the familiar or any window. So the script that triggered this class will continue to function.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Jul 05, 2007 9:03 pm   
 
Just change the part that says ";#echo {SSUP};" to ";:MainWindowName:#echo {SSUP};".
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
NeverNor
Novice


Joined: 18 Nov 2006
Posts: 32

PostPosted: Thu Jul 05, 2007 9:25 pm   
 
I have to do that for every single echo script I have?! Man!! There isn't some sort of global setting?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Jul 05, 2007 9:28 pm   
 
That's the only foolproof way. If no other cyan text gets sent to the windows you could kludge a trigger based on line colour that would #cap and #gag any line that's the right colour.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
NeverNor
Novice


Joined: 18 Nov 2006
Posts: 32

PostPosted: Thu Jul 05, 2007 10:01 pm   
 
Hmm sounds less obtrusive, how would I go about doing that? As in what gsl would I use for DragonRealms?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Thu Jul 05, 2007 10:07 pm   
 
#ECHO #SHOW #SAY Those are three ways to send "info" messages to your window.

#ECHO will show it to the currently active window
#SAY is like #ECHO but will only show it to the window that called it
#SHOW is like #SAY but it processes the text as if the mud sent it

The easiest way to accomplish what you want is to change all your #ECHO's to #SAY's, Fang's example would work but isn't as failsafe if you change window names
As for gagging on the colors I don't recomend that either :p
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
NeverNor
Novice


Joined: 18 Nov 2006
Posts: 32

PostPosted: Fri Jul 06, 2007 2:32 am   
 
Hmm have to go back and change them all, but that seems to work, thanks.
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