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
➜ General
➜ world.colournote executing after mud returns
|
world.colournote executing after mud returns
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| MushclientNewbie
USA (33 posts) Bio
|
| Date
| Tue 16 Nov 2004 02:28 AM (UTC) Amended on Tue 16 Nov 2004 02:38 AM (UTC) by MushclientNewbie
|
| Message
| Trigger:
<trigger
enabled="y"
match="*has some small wounds and bruises."
script="OnLook75"
sequence="100"
>
</trigger>
Calls script:
Sub OnLook75 (name, line, wildcards)
world.ColourTell "#9ACD32", "", " 75-90%"
End sub
Result:
Soandso has some small wounds and bruises.
75-90%
My problem:
How can I get the colornote to fire before the MUD's newline? I'd like the note to come at the end of the 'condition' line like this:
Soandso has some small wounds and bruises. 75-90%
| | Top |
|
| Posted by
| Flannel
USA (1,230 posts) Bio
|
| Date
| Reply #1 on Tue 16 Nov 2004 05:00 AM (UTC) |
| Message
| Not with a trigger.
Triggers fire AFTER the newline, so nothing will happen beforehand.
Youre only option is to omit the whole line, and then replace (note, colournote, colourtell, etc) the full line, with the suffix. |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | | Top |
|
| Posted by
| MushclientNewbie
USA (33 posts) Bio
|
| Date
| Reply #3 on Tue 30 Nov 2004 01:52 AM (UTC) |
| Message
| | Humm. Is there any way to turn on "Omit from output" in a trigger and then use "Send to: Script"? I've tried it, but it seems like the omit option omits everything. Even notes and colournotes I try to send from the send box. Any thoughts? Will I have to... *gulp* make dozens of subroutenes for another simiar project I'm working on? | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #4 on Tue 30 Nov 2004 02:07 AM (UTC) |
| Message
| Check out this post:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4912&page=2
A recent change in MUSHclient lets you get the entire line (with style information) in a trigger, if you are using Lua.
Remember you can share the same trigger script between multiple triggers, so the "omit from output" problem shouldn't be too great. |
- 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.
19,987 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top