|
dime Novice
Joined: 15 Dec 2002 Posts: 35
|
Posted: 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? |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Thu Jan 30, 2003 5:09 am |
Make sure that Expand vars is not enabled under Script Parser in the Preferences.
Kjata |
|
|
|
dime Novice
Joined: 15 Dec 2002 Posts: 35
|
Posted: Thu Jan 30, 2003 6:28 am |
it was not enabled..
: |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
dime Novice
Joined: 15 Dec 2002 Posts: 35
|
Posted: 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} |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
|
|