|
Wasperine Newbie
Joined: 30 May 2006 Posts: 6 Location: Langley, BC, Canada
|
Posted: 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!
Any help/pointers would be greatly appreciated.
Wasperine |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Wed Jun 07, 2006 7:32 pm |
in case you forgot to mention it the correct way is ~[MAIL~] for the trigger to work
|
|
|
|
Wasperine Newbie
Joined: 30 May 2006 Posts: 6 Location: Langley, BC, Canada
|
Posted: 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? |
|
|
|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: 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.
|
|
|
|
|
|