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

Gammon Forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  An option to evaluate incomplete lines.
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

An option to evaluate incomplete lines.

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


Posted by Zet Hikari   USA  (2 posts)  [Biography] bio
Date Tue 06 Jun 2006 12:36 AM (UTC)
Message
There should be an option for triggers that allows them to evaluate incomplete lines, for a trigger to stop evaluating a line at a character.

An example would be the prompt for Achaea, which does not end with a linefeed, and therefore cannot be accurately evaluated by triggers. But the prompt's last character, as far as triggers would be concerned at least, is a hyphen. Having a trigger that evalutates the 'incomplete' line up to the hyphen could prove useful.
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Reply #1 on Tue 06 Jun 2006 01:55 AM (UTC)

Amended on Tue 06 Jun 2006 01:56 AM (UTC) by Ked

Message
There is already such an option (in a way) - the OnPluginPartialLine callback. It doesn't allow triggers to match on partial lines, but lets you get early access to them via scripting.

As for Achaean prompts... You can look at this plugin for a way to make triggers match on them: http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=6606.
Another way is to enable the "Convert EOR/GA to newline" option under World properties -> Appearance -> Output. The plugin is better though, since it doesn't leave extra newlines in the output, and cleans up those duplicate newlines that are sent by the MUD.
[Go to top] top

Posted by Zet Hikari   USA  (2 posts)  [Biography] bio
Date Reply #2 on Tue 06 Jun 2006 07:30 PM (UTC)
Message
The problem I have is that I lack the coding skills to create a plugin, but I would like to be able to make a trigger that can remove the prompt and make a status window from it.
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Reply #3 on Tue 06 Jun 2006 07:33 PM (UTC)
Message
You can just install the plugin the link to which I posted and match normal triggers on your prompts. The plugin terminates the prompts with newlines before triggers get to them, so your triggers will match without problems.
[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.


2,906 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 FutureQuest]