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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Omit From Output... Replace Output?

Omit From Output... Replace Output?

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


Posted by VBMeireles   Brazil  (47 posts)  [Biography] bio
Date Fri 17 Sep 2010 11:51 AM (UTC)

Amended on Fri 17 Sep 2010 11:53 AM (UTC) by VBMeireles

Message
As suggests the topic subject, is it possible to have a trigger actually not only omit, but replace the output sent by the MUD with custom text/data set by the trigger script?

EDIT: The reason for that is that in my prompt, I get a distance output that is "20 feet", and I don't like the "feet" part. I was wondering if I can make it omit only the " feet", leaving the "20" and maybe even have the trigger calculate that in meters and show me the prompt with the distance in meters replacing the "20 feet".

Vinícius
[Go to top] top

Posted by Worstje   Netherlands  (899 posts)  [Biography] bio
Date Reply #1 on Fri 17 Sep 2010 11:54 AM (UTC)

Amended on Fri 17 Sep 2010 11:57 AM (UTC) by Worstje

Message
Yes. This is done by omitting from output, and then Sending to Output and typing what you want to see in the Send field, or, if you want to do it fancy and maybe with multiple colors, by Sending to Script (or using a function in your script file), in which you use a combination of world.Tell & world.Note, or the coloured varieties world.ColourTell and world.ColourNote.
[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.


10,696 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at HostDash]