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
➜ General
➜ How to set up a Live Damage Display?
|
How to set up a Live Damage Display?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| RyhL19
(2 posts) Bio
|
| Date
| Thu 27 Oct 2011 09:05 PM (UTC) Amended on Thu 27 Oct 2011 09:06 PM (UTC) by RyhL19
|
| Message
| ..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. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Fri 28 Oct 2011 02:21 AM (UTC) |
| Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | 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.
11,054 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top