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


Joined: 16 Apr 2006
Posts: 4

PostPosted: Sun Apr 16, 2006 10:16 am   

Medievia HP/Mana/MV Gauge help plz
 
Ok well im new to zmud and im trying to get some gauges setup.

my prompt looks like this

<411/411hp 516/516m 530/530mv 100br 21,486,182xp -r>

btw this is hp | mana | movement | breath | xp tnl | range, incase you need that

when i set promp in medievia it say this


Ok, prompt set to #w<#x&h#b/&Hhp #x&m#b/&Mm #x&v#b/&V&umv #x&b#b&ubr #w&X#bxp #x&Rr#w>.

im just haveing problems makeing the gauges and triggers for it ive tried others ive found here from searching but none seem to work

if someone could please help me out in getting this to work that would be great thank you
Reply with quote
baylen
Newbie


Joined: 16 Apr 2006
Posts: 4

PostPosted: Sun Apr 16, 2006 11:42 am   
 
from my reading ive tried makeing a trigger that dosnt work...thats like this

#TR { ^[ (%d)/(%d)][ (%d)/(%d)][ (%d)/(%d)]} {#VAR HP %1;#VAR MaxHP %2;#VAR MP %3;#VAR MaxPP %4;#VAR MV %5;#VAR MaxMV %6} {} {nocr|prompt}

and ive set 3 gauges so far hp mana movement

there all set up as @hp @maxhp @maxhp/4 (mp for mana and mv for movement) i havent tried any other gauges cause i still cant get these 3 to work..
Reply with quote
baylen
Newbie


Joined: 16 Apr 2006
Posts: 4

PostPosted: Sun Apr 16, 2006 12:08 pm   
 
well the more reading i do the more i progress.. though im still not real sure whats going on... now i have this,,

#TR {[ (%d)/(%d)hp][ (%d)/(%d)m][ (%d)/(%d)mv][(%d)br][(%d)xp][(%d)r]} {#VAR HP %1;#VAR MaxHP %2;#VAR MP %3;#VAR MaxPP %4;#VAR MV %5;#VAR MaxMV %6} {} {nocr|prompt}

and im getting this


<411/411hp 516/516m 526/530mv 100br 15,637,097xp -r> Variable HP not defined
Variable MaxHP not defined
Variable MP not defined
Variable MaxMP not defined
Variable MV not defined
Variable MaxMV not defined
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Sun Apr 16, 2006 1:06 pm   
 
This is one option. The other is to change them to the percents and assign them urself
Code:

#TRIGGER {^~<&hp/&maxhp{hp}%s&mp/&maxmp{m}%s&mv/&maxmv{mv}%s&breath{br}%s(*)xp%s*~>} {#VARIABLE XP %replace( "%2", ",")}
_________________
Confucious say "Bugs in Programs need Hammer"
Reply with quote
baylen
Newbie


Joined: 16 Apr 2006
Posts: 4

PostPosted: Sun Apr 16, 2006 1:14 pm   
 
whoot that did it ty.. now all i have to do is figure out what ythat all means hehe so i dont mess it up later
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Mon Apr 17, 2006 5:27 am   
 
#TRIGGER {^~<&hp/&maxhp{hp}%s&mp/&maxmp{m}%s&mv/&maxmv{mv}%s&breath{br}%s(*)xp%s*~>} {#VARIABLE XP %replace( "%2", ",")}

&HP automatically sets #VAR for you when it sees trigger line
&maxHP automatically sets #VAR for you when it sees trigger line
&mp automatically sets #VAR for you when it sees trigger line
&maxHP automatically sets #VAR for you when it sees trigger line
&mv automatically sets #VAR for you when it sees trigger line
&maxmv automatically sets #VAR for you when it sees trigger line
&breath automatically sets #VAR for you when it sees trigger line
* makes %1 = your XP but since it includes commas %replace( "%2", ",") --> replaces all instances of , with nothing so you get 13534 instead of 13,543 so that your addition works properly when you try to use #MATH
the {hp} had to be in quotes so it would match 550hp
%s - matches any amount of empty spaces

Hope that helps ya some
_________________
Confucious say "Bugs in Programs need Hammer"
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