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


Joined: 21 Dec 2003
Posts: 3

PostPosted: 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?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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.
Reply with quote
Glinka
Wanderer


Joined: 20 Dec 2000
Posts: 53
Location: USA

PostPosted: 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.
Reply with quote
entropyv
Newbie


Joined: 21 Dec 2003
Posts: 3

PostPosted: Sun Jan 25, 2004 8:06 pm   
 
Both very helpful, thank you.
I have use for both methods.
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