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


Joined: 15 Dec 2002
Posts: 35

PostPosted: Thu Jan 30, 2003 2:56 am   

#button arguments
 
i got a button as part of a script.. command goes like this

#BUTTON 1 {Experience: @exp of @lvl @gol} {} {} {} {@exp} {} {} {Size} {700} {11} {Pos} {0} {0} {} {} {Gauge|1|1|@lvl|0} {} "" {Explore} {} {exp} {4}

however when people paste this in, it sets the caption of the button as Experience: @exp of @lvl @gol with the numbers instead of the variables... is there anyway to put the variables in the caption instead of their values with a command?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Jan 30, 2003 5:09 am   
 
Make sure that Expand vars is not enabled under Script Parser in the Preferences.

Kjata
Reply with quote
dime
Novice


Joined: 15 Dec 2002
Posts: 35

PostPosted: Thu Jan 30, 2003 6:28 am   
 
it was not enabled..
:
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Jan 30, 2003 12:55 pm   
 
Put the escape character (~ by default) before the variables in the button's caption, but not behind any other variable.

Kjata
Reply with quote
dime
Novice


Joined: 15 Dec 2002
Posts: 35

PostPosted: Thu Jan 30, 2003 5:23 pm   
 
that fixed it right up.. thanks

also, is there a way is there a way for one of the arguments to dictate where the button goes?

in this button which is set to panel 4, i want to set it so it's automatically on the bottom...

#BUTTON 1 {Experience: ~@exp of ~@lvl ~@gol} {} {} {} {@exp} {} {} {Size} {700} {11} {Pos} {0} {0} {} {} {Gauge|9|9|@lvl|0} {} "" {Explore} {} {exp} {4}
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Jan 30, 2003 10:54 pm   
 
Nope, sorry. You have to create the button, and the edit it so the button's panel is at the bottom, not the top.

Kjata
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