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


Joined: 24 Feb 2004
Posts: 2

PostPosted: 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.
Reply with quote
Timas
Novice


Joined: 05 Jan 2003
Posts: 39
Location: Netherlands

PostPosted: 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?
Reply with quote
anuviel
Newbie


Joined: 24 Feb 2004
Posts: 2

PostPosted: 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.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: 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
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