|
saryon Beginner
Joined: 27 Nov 2003 Posts: 13 Location: USA
|
Posted: Sun Nov 30, 2003 11:52 am
Guages and Mana |
I have all my guages set up properly, but got a problem. When mana or movement goes into the negatives, none of the guages are updated any longer, I am assuming since they cant be divided for the lowguage portion. Here is the code I am using.
(%d)/(%d)hp (%d)/(%d)m (%d)/(%d)mn <-- prompt trigger
#var hp %1
#var maxhp %2
#var move %3
#var maxmove %4
#var mana %5
#var maxmana %6
Variables, and then the guages set up with @maxhp/4 @maxmana/4 etc for the low guage function.
Thanks for any help in this topic.
Matt |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sun Nov 30, 2003 12:36 pm |
Well, yes, they can't update. What does having -15% move mean? How is it supposed to display? Once the values go back into positive, it should continue working properly.
|
|
|
|
saryon Beginner
Joined: 27 Nov 2003 Posts: 13 Location: USA
|
Posted: Sun Nov 30, 2003 1:56 pm |
There is a spell called black plague that consistently drains mana and movement. So yes, I know it is a hassle. The only problem is that other triggers dont work either. I have one that just counts the -- Tick that is sent from the mud, and it doesnt even update when the number is negative. I am just trying to figure out if there is a way to make other triggers work when the guages are malfunctioning.
It is only a once and awhile thing that I get this cast on me(since I am PCFL and it only occurs in a Battlefield), but it is kinda annoying.
So what I am wondering I guess, is there a way to normalize the response to where if it is negative, it just reads back 0 so the other triggers can work, or am I kinda out of luck.
Thanks Kjata for your reply.
Matt |
|
|
|
Vodoc Apprentice
Joined: 11 Apr 2003 Posts: 119 Location: Sweden
|
Posted: Sun Nov 30, 2003 3:59 pm |
I don't have zMUD at hand for the moment so I can't check for sure but I belive you should change your trigger from using %d to %n (check the help files to be sure it's the right command). %d only matches digits so the "-15" doesn't match, %n matches the sign and the digits.
|
|
|
|
|
|