|
Amil Newbie
Joined: 08 Oct 2006 Posts: 4
|
Posted: 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?
|
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: 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 :) |
|
|
|
Amil Newbie
Joined: 08 Oct 2006 Posts: 4
|
Posted: 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? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
|
|