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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Apr 26, 2009 5:13 am   

[3.06pro]Window redirection seems not to be working correctly
 
Code:

<alias name="ShowChannel" id="27">
  <value>:History:#clr
#forall @{Channel$chan} {:History:%i}</value>
  <arglist>$chan</arglist>
</alias>


Window redirection via an alias and a named parameter seems to not be working correctly. This alias evaluates properly (%i in the forall is populated with the correct item from the correct stringlist variable), but the information is sent to the main window as a command sent to the game rather than to the specified window. This behavior does not seem to be evident in aliases that rely on %1...%99 instead of named parameters.

EDIT: Found a new way to do it via #WINDOW and %expandlist that doesn't cause problems, but I'm still not sure why the above acts so goofy. Back to the manual, I guess...

Another thing I noticed was that the two alias options (Auto append and Parse arguments) seem to have the same tooltip/status bar text in the Package Editor.
_________________
EDIT: I didn't like my old signature
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Sun Apr 26, 2009 11:21 am   
 
You can only use : on the command line. Use #execwin elsewhere. And I think the status bar thing is a known issue.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
shalimar
GURU


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

PostPosted: Sun Apr 26, 2009 5:38 pm   
 
I use the : method in MXP send commands as well, without issue.
_________________
Discord server
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Apr 27, 2009 5:13 pm   
 
As Fang mentioned, using #execwin is preferred for newer scripts. The :window: method was only intended to be used on the command line.
Reply with quote
shalimar
GURU


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

PostPosted: Mon Apr 27, 2009 5:39 pm   
 
'Preferred' was never even mentioned, i was debating the 'can only be used on the command line' statement, but that is quibbling semantics...
_________________
Discord server
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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