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.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Suggestions
➜ An option to evaluate incomplete lines.
An option to evaluate incomplete lines.
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Zet Hikari
USA (2 posts) 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. | Top |
|
Posted by
| Ked
Russia (524 posts) 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. | Top |
|
Posted by
| Zet Hikari
USA (2 posts) 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. | Top |
|
Posted by
| Ked
Russia (524 posts) 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. | 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.
15,045 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top