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


Joined: 04 Oct 2001
Posts: 43
Location: Canada

PostPosted: Sat Oct 25, 2003 8:32 pm   

Misnamed Buttons State?
 
Hi again all!

Here's my lastest question for the Masters of Zmud. Very Happy

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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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.
Reply with quote
Tygerhart
Novice


Joined: 04 Oct 2001
Posts: 43
Location: Canada

PostPosted: Sat Oct 25, 2003 10:44 pm   
 
Thanks Kjata!

Works like a dream! Very Happy

Tygerhart
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