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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  Adapting Slow walk Plugin for multi-lined exits

Adapting Slow walk Plugin for multi-lined exits

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


Posted by Xandler   (47 posts)  [Biography] bio
Date Thu 11 May 2023 12:37 AM (UTC)

Amended on Thu 11 May 2023 12:50 AM (UTC) by Xandler

Message
Sorry if this has been asked before or a subject for it already exists, I went looking for similar things and didn't see anything related to my plight. The subject pretty much says it all. I'm trying to adapt the slow walk speedwalk plug-in found here:

To a mud that uses multi-lined exits and for the life of me, I just can't figure it out because the plug-in unedited ends up timing out.

The mud I play on has exits designed like so:

Quote:
Visible Exits:
> north - Northern Space
> south - Southern Space
> west - Western Space


Is there something special I need to add into the exits trigger so that it can see the new lines below Visible Exits?
[Go to top] top

Posted by Fiendish   USA  (2,514 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Fri 12 May 2023 11:53 PM (UTC)
Message
Hoooooo boy...uh...

I think that depends on whether it's possible for you to convert the exit trigger pattern into a multiline trigger (you'd also have to add the multiline flag to the created trigger in the waitforregexp function.)

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Nick Gammon   Australia  (22,982 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Sat 13 May 2023 04:16 AM (UTC)
Message
Can't you just change the exit trigger to "Visible Exits:"? You may not parse the exit names, but I don't think you need to.

So, in the plugin change the exits_trigger line(s) near the start to be:



 <!ENTITY exits_trigger 
      "^Visible Exits:$" >

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Xandler   (47 posts)  [Biography] bio
Date Reply #3 on Sat 13 May 2023 03:22 PM (UTC)
Message
Much appreciated, that fix seemed to have done the trick.
[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.


3,194 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]