Search FAQ

Gammon Forum

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.
 Entire forum ➜ MUSHclient ➜ General ➜ Prompt Echo and Deleting Lines

Prompt Echo and Deleting Lines

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Gore   (207 posts)  Bio
Date Sat 20 Jan 2007 03:46 PM (UTC)
Message
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
Top

Posted by Onoitsu2   USA  (248 posts)  Bio
Date Reply #1 on Sun 21 Jan 2007 09:51 AM (UTC)
Message
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
Top

Posted by Gore   (207 posts)  Bio
Date Reply #2 on Sun 21 Jan 2007 09:21 PM (UTC)
Message
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.
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #3 on Mon 22 Jan 2007 01:24 AM (UTC)
Message
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.

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


16,616 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.