Status bar

Posted by Zendu on Tue 10 Feb 2004 12:30 PM — 5 posts, 27,965 views.

#0
Is there a way i can omit the status bar (at times!!)

ive omited the results (you have hit a blahblah, but the bar itself still shows up

the bar looks like
H:1671 M:1112 [eb]
the things that can change are *
H:**** M:****[*****]
#1
Yeah, MUSHClient has two types of status bars, a status bar and an infobar..


http://www.gammon.com.au/scripts/function.php

Go through that list and look up the following stuff

Info
InfoClear
InfoColor
InfoBackground
InfoFont
SetStatus
ShowInfoBar

Remember, these are functions you do with scripting, so you'll have to script it out.

So, you could probably do something like this..

Quote:

<triggers>
  <trigger
   enabled="y"
   match="^H\:(.*?) M\:(.*?) (.*?)$"
   name="prompt"
   regexp="y"
   script="set_info_bar"
   sequence="100"
   other_text_colour="black"
   other_back_colour="black"
  >
  </trigger>
</triggers>

Sub Set_Info_Bar (name,output,wildcard)
  World.InfoClear
  World.Info "Health -> " & wildcard(1) & " Mana -> " & wildcard(2)
End Sub



Pretty sure something like that would work. Have fun
Canada #2
I think what he's looking for is simpler than that. When he says status bar, I suspect he is referring to a text line from the mud indicating his status.

Zendu, you don't need a wildcard for every single character that could vary. You could simply trigger on this:

H:* M:* [*]

...and then check the 'Omit from output' option for your trigger.
Australia Forum Administrator #3
If you made a trigger like this:

H:**** M:****[*****]

It would probably run very slowly. The regular expression parser gets bogged down trying lots of different ways of slotting the possibilities into the wildcards.

As Magnum says, you should use:

H:* M:*[*]

Also, that line won't be omitted until the next line starts, as those prompt lines are often not terminated by a newline.

Try omitting the prompt at the MUD end, and also adding another asterisk, like this:

H:* M:*[*]*

#4
thanks!