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


Joined: 08 Oct 2006
Posts: 4

PostPosted: Sun Oct 08, 2006 3:22 pm   

Guages
 
I have a basic understanding of how to do the guages, but what if my max health or such isn't listed? How would I still be able to make a guage that does list it?
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Sun Oct 08, 2006 6:55 pm   
 
If you know what it is then set the variable for it manually rather than setting the variable for it automatically via a trigger.
_________________
Taz :)
Reply with quote
Amil
Newbie


Joined: 08 Oct 2006
Posts: 4

PostPosted: Sun Oct 08, 2006 10:15 pm   
 
1940h, 1202m, 1940e, 10p ex-

This is my prompt

Then I just make variables for my hax and such? How would the final script look?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Oct 09, 2006 3:42 am   
 
I'm thinking you might be able to get away with a @MaxHealth variable and a comparison to derive your max health. You will notice some oddities when first executing if your MaxHealth variable isn't set beforehand, and of course if you use this script with multiple characters you may be getting inaccurate info:

#trigger {yadda yadda prompt stuff goes here} {#if (%1 > @MaxHealth) {MaxHealth = %1};other stuff goes here} "" {nocr|prompt}

The bold parts require you to write the proper pattern or zscript code.
_________________
EDIT: I didn't like my old signature
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