 |
NeverNor Novice
Joined: 18 Nov 2006 Posts: 32
|
Posted: 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 |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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. |
|
|
 |
NeverNor Novice
Joined: 18 Nov 2006 Posts: 32
|
Posted: 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. |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu Jul 05, 2007 9:03 pm |
Just change the part that says ";#echo {SSUP};" to ";:MainWindowName:#echo {SSUP};".
|
|
|
 |
NeverNor Novice
Joined: 18 Nov 2006 Posts: 32
|
Posted: 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?
|
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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.
|
|
|
 |
NeverNor Novice
Joined: 18 Nov 2006 Posts: 32
|
Posted: 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?
|
|
|
 |
nexela Wizard

Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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 |
|
|
 |
NeverNor Novice
Joined: 18 Nov 2006 Posts: 32
|
Posted: Fri Jul 06, 2007 2:32 am |
Hmm have to go back and change them all, but that seems to work, thanks.
|
|
|
 |
|
|