|
Odious Newbie
Joined: 13 Jan 2002 Posts: 1
|
Posted: Sun Jan 13, 2002 11:06 pm
A Button question |
I have a toggle button that I use to keep track of whether or not a spell is active. The trigger I use to activate the button is
#TRIGGER {You hear a high-pitched shriek as the air hardens around you.} {%btncol( barmor, cyan)}
This is working decently. The problem I am having is that after the trigger phrase is echoed to the screen, a number is also echoed after the phrase. Generally this number is 48. I have the same problem with the trigger that turns the button another color when the spell wears off.
Anyone know why this is occurring? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Jan 14, 2002 1:13 am |
quote:
I have a toggle button that I use to keep track of whether or not a spell is active. The trigger I use to activate the button is
#TRIGGER {You hear a high-pitched shriek as the air hardens around you.} {%btncol( barmor, cyan)}
This is working decently. The problem I am having is that after the trigger phrase is echoed to the screen, a number is also echoed after the phrase. Generally this number is 48. I have the same problem with the trigger that turns the button another color when the spell wears off.
Anyone know why this is occurring?
It's the %btncol() function. The basic premise of a function is to return a value, in this case it is probably returning the number of the button named barmor. You can use the #NOOP command to have ZMud disregard any function return values.
Other than that, functions should rarely start a line and never when you aren't looking to send things to the MUD.
li'l shmoe of Dragon's Gate MUD |
|
|
|
|
|
|
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
|
|