How to set up a Live Damage Display?

Posted by RyhL19 on Thu 27 Oct 2011 09:05 PM — 2 posts, 11,679 views.

#0
..or even a health-gain from healing display/calculator?

Using v4.79, Lua language, and the trigger used is:

*h, *m, *e, *w

I'm pretty new to scripting so I don't even know how to open the "box" where you enter scripting commands. Is it the Immediate box?

Back to the subject, I first tried setting a trigger where everytime my health and mana pops out each prompt, the client recalls the previous health value set as a variable and then deducts the current health display, prints the difference in value, and then resets the current health as the previous health for the next prompt.

But I end up printing the entire command, instead of the values. This is what I see, or something like:

(GetVariable "healthlast")-(GetVariable "healthnow")

Also, how do I make it print onto the side of the current health/mana display, instead of having it print on a new line? This way there won't need to be 2 lines (very spammy) everytime I receive damage/healing.

Or should I forget about this printing thing, and consider another method? Which method? Anyone?
Thanks in advance, new to MUSHClient too.
Amended on Thu 27 Oct 2011 09:06 PM by RyhL19
Australia Forum Administrator #1
Take a look at the video here:

http://www.gammon.com.au/forum/?id=9626

That walks through setting up a simple trigger that captures your exits (when they appear) and displays them in a separate window on top of the scrolling text.

You might modify that to capture your prompt instead, and display that. It would be fairly simple to remember what your health is last time, and subtract this time, to get a difference.

Also look at some of the other videos in the "Getting Started" section of the forum.