|
obor Wanderer
Joined: 20 Dec 2001 Posts: 56 Location: USA
|
Posted: Tue Sep 02, 2003 4:00 pm
activating a toggle button off a trigger |
Doggone it, I know I'm missing something immeasurably stupid.
#tr {You are surrounded by a white aura} {#var sanc 1}
I have a variable named "sanc"
I have a button, of the toggle variety.
when sanctuary is cast on me, I see the message "You are surrounded by a white aura"
I want my sanc variable to switch to 1, so that my button toggles to the "on" position.
Then, of course
#tr {The white aura around your body fades.} {#var sanc 0}
what the heck am I doing wrong? my sanc variable isn't updating when I see that message (cut and pasted, no typos), so my button isn't moving.
gah.
any help greatly appreciated. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Tue Sep 02, 2003 4:13 pm |
I'm not in fron of zMUD right now, so I don't remember the exact name, but there is a field in the Options for the button that lets you specify the name of the control variable for that button. zMUD will then toggle the button automatically when you change the value of the variable.
|
|
|
|
obor Wanderer
Joined: 20 Dec 2001 Posts: 56 Location: USA
|
Posted: Tue Sep 02, 2003 11:28 pm |
yeah, that's the problem, I been futzing with everything in the options for the button, and I am missing something.
Read the dern helpfile about a dozen times over. Never had problem with buttons "way back in the day" with...what...4.62 or whatever?
some stuff changed around, and my feeble mind is having problems coping, it seems. :(
I am probably missing something inanely minor, too, that is what is so frustrating.
EDIT - okay, to really confuse matters, the button only works when sanc turns "off", but won't pop in when it is turned "on"
#tr {You are surrounded by a white aura.} {#var sanc on}
#tr {The white aura around your body fades.} {#var sanc off}
both messages make proper adjustments to the sanc variable. I cast sanc, I get the message, I check the variable, sanc is "on". but the button doesn't pop up.
I manually click the button so that it shows the "on" state. I cancel the spell, the sanc variable adjusts itself...and the button works.
*complete boggle aura*
all I have entered in the sanc button fields is the message that shows on the button itself, I don't have any of the other fields filled out. Very bizarre, any help greatly appreciated *before I lose what little sanity I have* |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Wed Sep 03, 2003 12:48 am |
Try 1 and 0 instead of on and off.
|
|
|
|
DMUS Beginner
Joined: 01 Sep 2003 Posts: 19 Location: USA
|
Posted: Wed Sep 03, 2003 2:53 am |
I think what your looking for is
#tr {You are surrounded by a white aura.} {#BU id}
#tr {The white aura around your body fades.} {#BU id}
where id is the name/# for your button you entered into the ID field located on the Advanced properties tab.
Then just enter sanc=1 into the Button Up Value field, and
sanc=0 into the Button Down Value field.
(recalling from memory and using the zMUD v6.x help files, so I hope that's correct) |
|
|
|
dskorren Novice
Joined: 07 Feb 2002 Posts: 48 Location: Philippines
|
Posted: Wed Sep 03, 2003 3:09 am |
right click your button
button state -> kind: toggle
advanced -> value: @sanc |
|
|
|
obor Wanderer
Joined: 20 Dec 2001 Posts: 56 Location: USA
|
Posted: Wed Sep 03, 2003 3:57 am |
dskorren had it! Thanks, that solved the issue perfectly! :)
thanks for everyone's help too. I appreciate it. I don't have much hair to pull out, and missing a stupid little thing like that makes me want to pull out what little I have remaining. :) |
|
|
|
|
|