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
Wasperine
Newbie


Joined: 30 May 2006
Posts: 6
Location: Langley, BC, Canada

PostPosted: Wed Jun 07, 2006 6:12 pm   

Toggle Button Difficulties
 
I'm trying to create a toggle button that will trigger itself on when the string [MAIL] is displayed by the MUD (Medievia), and that will trigger itself off when I type "receive".


Here's what I've got so far:


Variables: 1

mail


Triggers: 2

Pattern: [MAIL]
Value: #VAR mail 1

Pattern: receive
Value: #VAR mail 0


Buttons: 1

Kind: Toggle
Caption: MAIL
State: Button Up
Value: #NOOP %btncol( 1, 7, black)
State: Button Down
Value: #NOOP %btncol( 1, 12, black)
ID: MAIL
Value: @mail


Ok, so far the triggers don't seem to be working properly when I'm connected to the MUD. However, when I'm offline the triggers work to change the state of the button (I can see it going up and down), but the color change is happening to a different button (my HP gauge). Quite confusing! Confused


Any help/pointers would be greatly appreciated.



Wasperine
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Wed Jun 07, 2006 7:32 pm   
 
in case you forgot to mention it the correct way is ~[MAIL~] for the trigger to work
_________________
http://www.Aardwolf.com
Reply with quote
Wasperine
Newbie


Joined: 30 May 2006
Posts: 6
Location: Langley, BC, Canada

PostPosted: Wed Jun 07, 2006 9:19 pm   
 
Vitae wrote:
in case you forgot to mention it the correct way is ~[MAIL~] for the trigger to work


I just tried that and it didn't work.

Does the order in which triggers or buttons appears in the list matter?
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Thu Jun 08, 2006 6:01 pm   
 
Use your button ID (currently appears to be "MAIL") as the first parameter to %btncol instead of the button number.
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