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
Leitia
Adept


Joined: 04 May 2007
Posts: 292
Location: Boston

PostPosted: Fri Jan 16, 2009 8:55 pm   

Correct Method
 
I was wondering what is the proper way to write a help alias to load a status window.

I dislike the text not having margins so am using a space like these:

Code:

#stw + " "%ansi( white)" BB q q [%3]"
#stw + " "%ansi( white)" set new default speed quick [cast BB at %3 (new target)]"
#stw + " "%ansi( white)" inputs BB highlighted, this will fire on old target with new default speed change"
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Sat Jan 17, 2009 12:31 am   
 
I usually find it easier to build my variable then then display it once. It's probably a bit more efficient since you're only drawing the screen once versus 3 times.

Code:
#VAR Status {" "%ansi( white)" BB q q [%3]"}
#VAR Status %concat(@Status, " "%ansi( white)" set new default speed quick [cast BB at %3 (new target)]")
#VAR Status %concat(@Status, " "%ansi( white)" inputs BB highlighted, this will fire on old target with new default speed change"

#stw @Status


I did that off the top of my head so you may have to play with the syntax a bit. Also not you could probably do it one line with %concat() and %crlf
_________________
Asati di tempari!
Reply with quote
Leitia
Adept


Joined: 04 May 2007
Posts: 292
Location: Boston

PostPosted: Sat Jan 17, 2009 3:53 am   
 
Neat, I'll try it. Don't really see the new lines yet, but I like the idea. TY
Reply with quote
Leitia
Adept


Joined: 04 May 2007
Posts: 292
Location: Boston

PostPosted: Fri Jan 23, 2009 2:06 pm   
 
I pasted that into an alias and got hugeish complaints from the editor. This fooled the syntax help

#VAR Status {%literal( "BB q q [%3]")}
#STW %ansi( white) @status

I suppose I should proceed this way. Some small weirdness there between the normal use of quotes and %literal quotes by the syntax checker
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