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


Joined: 10 Jan 2001
Posts: 5
Location: USA

PostPosted: Fri Jun 06, 2003 3:30 pm   

Help with scripting
 
So I want to get the #gauge command work properly but I'm not sure that I am doing it right. I want it to capture my hps, end, and exp to next level. Currently my prompt looks like this...

[2149|2149hp 7339|7339en] [1563xp]

the xp is out of a base 2000. The first part of the hp/end is current and the second part is total. Of course the total changes depending on the equippment I am wearing at the time. If anyone can help write a script that will capture all of this into a gauge format that would be great.

Thanks for the effort ahead of time...

Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Jun 06, 2003 5:29 pm   
 
#TRIGGER {~[(%d)~|(%d)hp (%d)~|(%d)en~] ~[(%d)xp~]} {#VAR hp %1;#VAR maxhp %2;#VAR end %3;#VAR maxend %4;#VAR xp %5} "" {prompt}
#GAUGE hpgauge "Hp" @hp @maxhp (@maxhp/10)
#GAUGE endgauge "End" @end @maxend (@maxend/10)
#GAUGE xpgauge "Xp" @xp 2000 200

Change the colors of each gauge to the way you want them.

Kjata
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