Status bar

by Navaryn

Back to Mechanic's Corner.

Unknown2005-03-18 23:10:35
Using an ID of 0 for buttons will create them with the next available index in your settings. It's recommended to use it for scripts like this that are handed out and imported in several places.
Archthron2005-03-20 01:49:02
I just have this Really annoying problem I can't seem to fix where it doesn't take the data from a line until you're in the next line, if you know what I mean. Like, I lose 500 health and it says so in my prompt, but the value doesn't change until some other output appears. Anyone know how to fix that?
Unknown2005-03-20 09:13:52
Heheh, in fact all zMUD triggers are defaulted to do that. For capturing prompts, you must check the "prompt" checkbox, and unchecking the "new line" one. Or alternatively, you can add this code to the end of your trigger:
CODE
"" {prompt|nocr}

For example:
CODE
#TRIGGER {^(%d)h, (%d)m} {#VARIABLE Health %1;#VARIABLE Mana %2} "" {prompt|nocr}

What this does is make this trigger match as soon as it is received, before a new line is added. wink.gif
Archthron2005-03-20 21:12:52
Yeah, it works now, thanks!