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
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.
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.