|
entropyv Newbie
Joined: 21 Dec 2003 Posts: 3
|
Posted: Sun Dec 21, 2003 1:42 am
Triggers to turn on toggle buttons...? |
I'm attempting to make a toggle button toggle via triggers.
Anyone have an example trigger they could post and I could likely steal? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Dec 21, 2003 2:55 am |
#TR {Turn button 1 on} {#VAR button1 1}
#TR {Turn button 1 off} {#VAR button1 0}
#TR {Toggle button 1} {#MATH button1 ((@button1 + 1)2)
This assumes you've assigned a variable (@button1 in the examples) to control the state of the button. You can also use expressions to control them. See the help for Advanced Button Properties. |
|
|
|
Glinka Wanderer
Joined: 20 Dec 2000 Posts: 53 Location: USA
|
Posted: Sun Dec 21, 2003 7:24 am |
I use a small one..
Trigger pattern: Your (*) just broke!
Value:
#echo attacks off
#T- attacks
#bu 2
Trigger pattern: You ready your (*).
Value:
#echo attacks on
#T+ attacks
#bu 2
The #bu command just toggles the button of that number as if
you had clicked it.
Hope this helps,
G. |
|
|
|
entropyv Newbie
Joined: 21 Dec 2003 Posts: 3
|
Posted: Sun Jan 25, 2004 8:06 pm |
Both very helpful, thank you.
I have use for both methods. |
|
|
|
|
|