[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  How to set up a Live Damage Display?

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

How to set up a Live Damage Display?

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by RyhL19   (2 posts)  [Biography] bio
Date Thu 27 Oct 2011 09:05 PM (UTC)  quote  ]

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.
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Fri 28 Oct 2011 02:21 AM (UTC)  quote  ]
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
[Go to top] 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.


529 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]