Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, 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.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Plugins
➜ Infobar
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Safiya
(4 posts) Bio
|
| Date
| Sat 08 Aug 2009 07:41 PM (UTC) Amended on Sat 08 Aug 2009 08:39 PM (UTC) by Safiya
|
| Message
| In the Aard version of MUSH there is an infobar that has HP/Mana/Moves/EngagedMob Name and HP on the bottom of the screen all using bars.
Is there a way to add other info there as well? Like Xp TnL and/or Alignment? Not in bars. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,166 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sat 08 Aug 2009 10:04 PM (UTC) |
| Message
| Edit the plugin (in the plugins list click Edit), and in the middle somewhere find:
function draw_bar ()
InfoClear ()
-- item 7 is our HP
DoGauge (" HP: ", stats.hp_percent, "darkgreen", "maroon")
-- item 13 is enemy HP and item 12 is what we are doing, which should be "... fighting (enemy)"
if stats.enemy_percent ~= "9999" then
DoGauge (" " .. stats.enemy .. ": ", stats.enemy_percent, "darkred", "red")
end -- if fighting
-- item 8 is our mana
DoGauge (" Mana: ", stats.mana_percent, "mediumblue", "mediumblue")
-- item 9 is our movement points
DoGauge (" Move: ", stats.moves_percent, "gold", "gold")
end -- draw_bar
Add some extra stuff before the find "end" like this:
function draw_bar ()
InfoClear ()
-- item 7 is our HP
DoGauge (" HP: ", stats.hp_percent, "darkgreen", "maroon")
-- item 13 is enemy HP and item 12 is what we are doing, which should be "... fighting (enemy)"
if stats.enemy_percent ~= "9999" then
DoGauge (" " .. stats.enemy .. ": ", stats.enemy_percent, "darkred", "red")
end -- if fighting
-- item 8 is our mana
DoGauge (" Mana: ", stats.mana_percent, "mediumblue", "mediumblue")
-- item 9 is our movement points
DoGauge (" Move: ", stats.moves_percent, "gold", "gold")
InfoColour "black"
InfoFont ("Arial", 9, 0)
Info (" To level: ", stats.to_level)
Info (" Align: ", stats.align)
end -- draw_bar
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Safiya
(4 posts) Bio
|
| Date
| Reply #2 on Mon 10 Aug 2009 04:58 AM (UTC) |
| Message
| Ok, thank you. That is exactly what I was looking for. I was going crazy looking for an infobar plugin..its named Health Bar (I should have read the descriptions better).
What I dont see (or recognize as such) is where the size of the bar is determined. As is, it does not extend across the bottom of my screen and I would like it to so I can add more info there.
I am trying to learn this stuff but even the simple tasks are beyond me atm.
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,166 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Mon 10 Aug 2009 06:04 AM (UTC) |
| Message
| The width of the infobar is fixed, unfortunately.
However if you want to do fancier things you are probably better off using miniwindows. They can be made any size, and can have bars, text, images, whatever you want.
To help you get started, check out Willfa's module which does most of the work, so you can quickly draw text and gauges with a minimum of effort.
http://www.gammon.com.au/forum/?id=9097 |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Nick Gammon
Australia (23,166 posts) Bio
Forum Administrator |
| Date
| Reply #4 on Mon 10 Aug 2009 06:05 AM (UTC) Amended on Mon 10 Aug 2009 06:07 AM (UTC) by Nick Gammon
|
| Message
| |
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.
19,638 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top