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
Josiah.Bruns
Apprentice


Joined: 04 Mar 2007
Posts: 103

PostPosted: Sun Mar 04, 2007 11:26 pm   

Need Help with #WIN command
 
I am trying to use the #Win command with a variable. Should be simple but i am a bit confused with the use of variables and different command interpreter modes.

i have a variable:
Named: SummaryWindow
Value: StatisticsSummary %ansi( cyan, bold)

My Goal is to write something like this.

#win summarywindow MobName = %eval @MobName
and i would like to have "MobName = %eval @MobName" go to a window called StatisticsSummary and i would like it to be in cyan.

I have a command like this that is curently doing the trick.
#WIN StatisticsSummary %ansi( cyan, bold) MobName = %eval @MobName
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Mar 04, 2007 11:58 pm   
 
Use brackets. The #WINDOW command helpfile has details on which set to use.
_________________
EDIT: I didn't like my old signature
Reply with quote
Josiah.Bruns
Apprentice


Joined: 04 Mar 2007
Posts: 103

PostPosted: Mon Mar 05, 2007 12:26 am   
 
I was unable to figure it out, or see the reference in the #windows command help file.

It looks like i should try something like

#win <@SummaryWindow> hello

but that just creates a new window named <StatisticsSummary (square symbol) [0;36;40;1m>

if i do it without the <> its the same window name only it doesn't have the <> surrounding the name.

The hello is in the window thats created though.
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Mon Mar 05, 2007 12:37 am   
 
You can use the colon character to do this:

SummaryWindow:whatever
:SummaryWindow:whatever

The first changes focus, the second doesn't.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Josiah.Bruns
Apprentice


Joined: 04 Mar 2007
Posts: 103

PostPosted: Mon Mar 05, 2007 12:43 am   
 
is the reason this isn't working because of this line of explination in the variable help file?

Most commands that create settings do not preform expansion on variables. The expansion occurs when the setting is used.

and if so is there a way to work around this?
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