|
Tygerhart Novice
Joined: 04 Oct 2001 Posts: 43 Location: Canada
|
Posted: Sat Oct 25, 2003 8:32 pm
Misnamed Buttons State? |
Hi again all!
Here's my lastest question for the Masters of Zmud.
I wish to creat a button the will turn a command off and on in a multi-command trigger. Here's what I've got so far:
The Button in question is IDed as Offerings
Pattern:
You receive %d experience points.
Value:
#IF (#BU Offerrings 0) {offerings corpse}
sac blood
look
@MobVar = 100
I'm pretty sure that the problem is somewhere in (#BU Offerrings 0) But, I'll be danged if I can figure out what it is.
Any hints or suggestions would be greatly appreciated.
Thanks in advance,
Tygerhart |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sat Oct 25, 2003 10:32 pm |
First, create a variable to contain the state of the button. Next, go to edit the button and in the Advanced tab, enter the name of this variable into the field called Variable (without the @.) Finally, in your script, you check to see if the button is pressed or not by checking the value of this variable:
#IF (@OfferingsBut) {offerings corpse}
Change @OfferingsBut to whatever you called your variable. |
|
|
|
Tygerhart Novice
Joined: 04 Oct 2001 Posts: 43 Location: Canada
|
Posted: Sat Oct 25, 2003 10:44 pm |
Thanks Kjata!
Works like a dream!
Tygerhart |
|
|
|
|
|