Adapting Slow walk Plugin for multi-lined exits

Posted by Xandler on Thu 11 May 2023 12:37 AM — 4 posts, 13,280 views.

#0
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?
Amended on Thu 11 May 2023 12:50 AM by Xandler
USA Global Moderator #1
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.)
Australia Forum Administrator #2
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:$" >
#3
Much appreciated, that fix seemed to have done the trick.