Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ General ➜ Status bar

Status bar

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Zendu   (66 posts)  Bio
Date Tue 10 Feb 2004 12:30 PM (UTC)
Message
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:****[*****]

God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url]
Top

Posted by Gore   (207 posts)  Bio
Date Reply #1 on Tue 10 Feb 2004 07:28 PM (UTC)
Message
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
Top

Posted by Magnum   Canada  (580 posts)  Bio
Date Reply #2 on Wed 11 Feb 2004 03:28 AM (UTC)
Message
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.

Get my plugins here: http://www.magnumsworld.com/muds/

Constantly proving I don't know what I am doing...
Magnum.
Top

Posted by Nick Gammon   Australia  (23,052 posts)  Bio   Forum Administrator
Date Reply #3 on Wed 11 Feb 2004 04:03 AM (UTC)
Message
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:*[*]*


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Zendu   (66 posts)  Bio
Date Reply #4 on Wed 11 Feb 2004 10:46 AM (UTC)
Message
thanks!

God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url]
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


20,765 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.