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, 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 ➜ Healthbar plugin - Monitoring variables

Healthbar plugin - Monitoring variables

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


Posted by Rynne   France  (5 posts)  Bio
Date Mon 01 Oct 2007 12:04 AM (UTC)

Amended on Mon 01 Oct 2007 12:29 AM (UTC) by Rynne

Message
Hello there. I fiddled around with the Healthbar plugin and got it to work, it's real neat.

but now what I'd really love to do, is add another gauge, that'll monitor the healer's spell points.

but i don't have it in my prompt, I have it in another line that doesn't look like my prompt at all

this is the MUD's output

==============================================
|Loktai     | HP: 100% | SP:  54% | EP: 100% |
|Rynne      | HP: 100% | SP: 100% | EP:  98% |
|Ostivel    | HP: 100% | SP:  94% | EP:  76% |
|Azamir     | HP: 100% | SP:  54% | EP: 100% |
|Starstorm  | HP:  46% | SP:  76% | EP:  31% |
|Darf       | HP: 100% | SP:  76% | EP: 100% |
|Rita       | HP: 100% | SP:  59% | EP: 100% |
==============================================


What I want is to, say, type "monitor Starstorm SP", and the 4th gauge will update accordingly.

I've considered making a trigger that'd math on |*| HP: *% | SP: *% | EP: *% |

then filter the extra spaces
then check if the first wildcard match the variable set by the monitor alias
then store revelant value in monitorValue
and finally add a DoGauge after the 3 already existing

but when I add a Note(GetVariable("monitorValue")) for debug purposes in the DoPrompt function, it returns a blank string. Even when I forcefeed it with a graceful /SetVariable in command box.

I also tried using script variables, but it didn't work.

(oh and it'll have no troubles updating, since i get a prompt right after that output)




--------------


I can only blame myself and feel stupid for not reading the helpfile completely.

After moving the triggers and aliases to the plugin file, it all worked great.
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.


9,152 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.