Prompt Echo and Deleting Lines

Posted by Gore on Sat 20 Jan 2007 03:46 PM — 4 posts, 22,368 views.

#0
Hello. I recently started gagging/echoing my prompt in order to show some other information. One of the things is, if my health or mana has changed from the previous prompt, I show a [-100h] or [+100m] and so on.

Only problem is, I started using deletelines on triggers I gag to try and cut down on my spam. The prompt preceeding the gagged line shows, and is echo'd and is then deleted. But when it has a change in health or mana, that change is deleted as well.

2375h, 5200m exdb-                  <--- echo'd
You take a drink from a black-walnut vial.
The elixir heals and soothes you.
3033h, 5200m exdb-[+658h]                 <--- is gagged
You need to specify what you wish to kick.<--- gagged line
3033h, 5200m exdb-                        <--- is what is shown after the heal instead


Basically I was wondering if there was an easy way to show my change in health or mana in the prompt that is echo'd and showing on my screen, instead of the one that is deleted by a gag.

Does this make sense? Any suggestions?

Also I have a timestamp in my prompt echo, and I can see that when I am deleting a few lines it can take up to a second or two to complete.

Does this have any negative affects? Would it slow down my healing system?

Thanks all
USA #1
Take a look at this posting of mine ...
http://www.gammon.com.au/forum/?id=7517

That is the EXACT trigger I use, granted it is in LUA, but you ought to get the basics from it...

it is ALL within a SINGLE trigger, it gags, and then does a DoAfterSpecial to call the functions that build up the altered prompt. It ALSO alters colors based upon set percent values, and numeric values as well.

I believe it ought to be a great starting point for you to use.

Laterzzz,
Onoitsu2
#2
My prompt is fine. I do appreciate it, however. I was just wondering how to get the change in health/mana from the previous prompt, updated to the last prompt after a gag instead of to the prompt before a gag.
Australia Forum Administrator #3
It isn't totally clear what you are doing here. Using DeleteLines might be dangerous. You can always do a test to see if the line you are planning to delete has the thing in it, that you expect.