|
doomfyre Apprentice
Joined: 03 Jan 2002 Posts: 152 Location: USA
|
Posted: Mon May 13, 2002 6:18 pm
Negative values in variables |
On Realms of Dispair, we have an alignment, which can be anything from -1000 to 1000.
Ive made a variable to show my alignment on the status line, but it doesn't seem to like negative numbers. What needs to be done to the variable to allow negatives?
Heres the prompt:
<655/636 837/837 720 (-1000)()(S)(1034708)(7595529)(night)>
I set up the variables under preferences/mud prompt (v6.16), which are:
currhp
maxhp
currmana
maxmana
currmoves
align
when i manually set the value of align to -1000, it goes back to 1000 upon closing the editor. Thanks for any help |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue May 14, 2002 1:02 am |
I'm guessing that you're using the #SETPROMPT command and that it ignores the - the same way it ignores all other non-numeric characters. This just means you'll have to use a #TRIGGER instead. You don't have to use the entire line as a pattern, only enough to make it unique and provide the numbers for the variables you want.
#TR {~<(%d)/(%d) (%d)/(%d) (%d) ~((%n)~)} {#VAR currhp %1;#VAR maxhp %2;#VAR currmana %3;#VAR maxmana %4;#VAR currmoves %5;#VAR align %6}
LightBulb
Vague questions get vague answers |
|
|
|
|
|
|
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
|
|