Page 1 of 1

Blind Guy Needing Script Help

Posted: Tue Nov 22, 2016 8:35 am
by Mronz
Hey Guys,
I came across this feature, while plaing a different mud, that actually had client based features actually built into its game.... The game would remember your last X number of communications, be it tells, chats, narrates, etc.

EX: if you typed,
tells, the last 30 tells would appear
chats, last 30 chats, and so forth.

For those of you that have played with me over the years, probably get tired of me saying, repeat that, or "ignoring" you altogether, since I miss so much communication, being blind.

I know tons of you guys are total code/scripting fanatics...

So, I'm asking, if anyone out there is bored, and would be willing to help script something like this for me, and the particular mud client, that works with my screen reading program?

Mush CLient, is the client that works with my screen reader.
https://www.gammon.com.au/scripts/doc.p ... =scripting
That is the link that talks about the 8 languages the client understands, but the developer recommends using, Lua?

It would really transition my entire mudding experience, if I could reference tells, nars, and chats...

So, please direct all your coder/scripting nerds, to this post, and hopefully we can find someone that would be interested in trying this for me.

Thanks guys,

Mronz

Re: Blind Guy Needing Script Help

Posted: Tue Nov 22, 2016 8:41 am
by Itesh
I haven't messed with complicated scripting for years, but in Z/CMUD at least, it sounds like you'd need your tells saved to a stringlist variable, where each tell would be a seperate entry you could call up by its reference no. I don't know how MUSH client works, sorry, but maybe this thought will be helpful to anyone who does and who wants to try. I think Jomin is involved in MUSH Client somehow?

Re: Blind Guy Needing Script Help

Posted: Tue Nov 22, 2016 12:58 pm
by Elokar
This isn't quite what you requested, but maybe it will work until someone with more experience can help. You can't enter triggers/aliases/etc into the command line like zmud/cmud, so there are a few extra steps.

First, copy everything inside this quote box from <triggers> to </triggers>.
<triggers>
<trigger
enabled="y"
group="Tells Capture"
match="* tells you *"
name="Tells"
send_to="5"
sequence="100"
>
<send>%1 tells you %2</send>
</trigger>
</triggers>
Next open the mud.
ctrl+shift+8

This should bring up the trigger configuration window.

alt+p

This should create the trigger. Now whenever someone sends you a tell, it will be recorded into a window inside of MUSHClient called Trigger:Tells. The main issue is that I can't find the keyboard shortcut to swap windows inside of MUSHClient and it keeps all of the tells from the session with the newest being at the bottom.

If that works, let me know. Otherwise, I'll try to keep looking for more options.

Re: Blind Guy Needing Script Help

Posted: Tue Nov 22, 2016 2:28 pm
by Elokar
Here are the chat/narrates. Just a caution that some people on the MUSHClient forum said if the file gets too long, it can start to lag the client. So you may need to close the window on occassion during long gaming sessions.
<triggers>
<trigger
enabled="y"
group="Chat Capture"
match="* chats *"
name="Chats"
send_to="5"
sequence="100"
>
<send>%1 chats %2</send>
</trigger>
</triggers>
<triggers>
<trigger
enabled="y"
group="Narrate Capture"
match="* narrates *"
name="Narrates"
send_to="5"
sequence="100"
>
<send>%1 narrates %2</send>
</trigger>
</triggers>

Re: Blind Guy Needing Script Help

Posted: Tue Nov 22, 2016 2:29 pm
by Guest
Elokar, as stated, not quite what I was looking for, but that works amazingly!

Seriously, this is going to totally resolve missing communications, well except for says, and that's ok with me!

Thank you

Re: Blind Guy Needing Script Help

Posted: Tue Nov 22, 2016 3:15 pm
by Naerin
Minor quibble: Since this is just capturing things it won't be a big deal, but someone could definitely mess with the script if they felt like it.

You say 'Milian tells you 'flee' '
You say 'Milian tells you 'lots man' '
You say 'Milian tells you 'wish I were abs like real men play' '
You say 'Milian tells you 'i rip' '

Re: Blind Guy Needing Script Help

Posted: Tue Nov 22, 2016 4:34 pm
by Elokar
I'm not sure how to have it check start of line, but still capture if it happens right after the health bar.

Re: Blind Guy Needing Script Help

Posted: Tue Nov 22, 2016 7:32 pm
by Elokar
The scripts currently capture the entire line, so you can't mimic anyone. However, the triggers apparently run in a particular order, instead of whichever trigger should fire first. For instance, the following captures the entire line in the chat window, instead of the tells window.
* HP:Healthy MV:Fresh >
Talia tells you 'Naerin chats 'Milian tells you 'test test'''
Obviously not perfect, but not a risk per se.

Re: Blind Guy Needing Script Help

Posted: Tue Nov 22, 2016 8:55 pm
by Elokar
Regexp was the trick. Should be able to copy everything in the quote box and paste just once. The only downside is that (\w+) only checks for a single word, so "A grocer tells you" or a "Shienaran scout narrates" won't be captured, but it will work for a single named mob like Cyril in TV. Probably for the better regarding spam anyways.

Let me know if you have any issues.
<triggers>
<trigger
enabled="y"
group="Tells Capture"
regexp="y"
match="^(\w+) tells you (.*)"
name="Tells"
send_to="5"
sequence="100"
>
<send>%0</send>
</trigger>
</triggers>

<triggers>
<trigger
enabled="y"
group="Chat Capture"
regexp="y"
match="^(\w+) chats (.*)"
name="Chats"
send_to="5"
sequence="100"
>
<send>%0</send>
</trigger>
</triggers>


<triggers>
<trigger
enabled="y"
group="Narrate Capture"
regexp="y"
match="^(\w+) narrates (.*)"
name="Narrates"
send_to="5"
sequence="100"
>
<send>%0</send>
</trigger>
</triggers>

Re: Blind Guy Needing Script Help

Posted: Fri Nov 25, 2016 6:50 pm
by Jomin
Itesh wrote:... I think Jomin is involved in MUSH Client somehow?
Nope, you're confounding MUSHClient with Mudlet - I think back in the days before I got involved with it there was an old version Mudlet 1.? that had been reworked to operate with a screen reader system but I do not think anyone kept it up to date. Certainly proper support for screen reader software is something on our wish-list but, sadly, I think it will be some time before that gets fresh attention. You might also get some way with TinTin++ {I've had code patches accepted into that some years ago} - being a CLI rather than the GUI client that Mudlet is, it is inherently simpler to plumb in a screen-reader to that client IMHO...