|
anuviel Newbie
Joined: 24 Feb 2004 Posts: 2
|
Posted: Tue Feb 24, 2004 10:12 pm
status bar and window |
I have a problem in getting stats that i want into my status bar and window. i use the latest version of zmud.
my mud prompt is as follows (%h %m %v %x %p %q)%e [%B]
%h - hit
%m - mana
%v - move
%x - xperience
%q - time
%e - exits
%B - mobile hit
i have a follownig trigger set up:
It triggers on prompt line (checked under trigger options)
trigger is (%d) (%d) (%d)
value is #var hp %1
#var mana %2
#var move %3
my status bar is as follows - Hit: @hp Mana: @mana Move: @move
Up to this point it works just fine i get things displayed in status bar and all works fine.
As soon as i add one more (%d) in my trigger exmp.
(%d) (%d) (%d) (%d)
#var hp %1
#var mana %2
#var move %3
#var xp %4
and try do display it in status window all the values of my variables change to percentages and display %1 %2 instead of the numbers that shoud be stored in them by a trigger. I hav no idea what is causing this so if anyone knows let me knwo ppl.
Thanks. |
|
|
|
Timas Novice
Joined: 05 Jan 2003 Posts: 39 Location: Netherlands
|
Posted: Tue Feb 24, 2004 10:31 pm |
I can't get it to not work, can you maybe show a copy of your actual prompt?
|
|
|
|
anuviel Newbie
Joined: 24 Feb 2004 Posts: 2
|
Posted: Wed Feb 25, 2004 1:57 am |
this is the copy of my prompt
(2557 754 1132)[24 4376910 0][EW] :)>>
i really have no idea what's wrong, thanks. |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Wed Feb 25, 2004 2:50 am |
(2557 754 1132)[24 4376910 0][EW] :)>>?????
well of course (%D) (%D) (%D) (%D) won't match your missing ()'s and []'s
Okay assuming this order
(hp mana move)[level exp time?][exits] :>>
Here is one simple way of doint it.
PATTERN:
^~((%d) (%d) (%d)~)~[(%d) (%d) (%d)~]*:~>~>
VALUE
hp=%1
mana=%2
move=%3
level=%4
exp=%5
time=%6 |
|
|
|
|
|