Search found 796 matches

by demonnic
Thu May 05, 2022 6:25 pm
Forum: Scripts & Packages
Topic: Copy Color as BBCode
Replies: 3
Views: 196

Re: Copy Color as BBCode

I would maybe recommend changing the function name to something which speaks to what it does. copyAsBBCode or some such. otherwise you might clash with everyone else who started by copying it from the wiki but didn't change the function name =)
by demonnic
Thu Feb 17, 2022 2:24 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: Howto: Get Mudlet on a raspberry pi!
Replies: 3
Views: 7880

Re: Howto: Get Mudlet on a raspberry pi!

try sudo luarocks install lua-yajl YAJL_LIBDIR=/usr/lib/arm-linux-gnueabihf/ YAJL_INCDIR=/usr/include It's looking for the 64bit binary by default. https://wiki.mudlet.org/w/Compiling_Mudlet?pk_vid=2c05c591c47b77941645107767c19f4c#Compiling_on_Raspberry_Pi_OS is I believe the most recent set of inst...
by demonnic
Mon Jan 31, 2022 3:25 pm
Forum: Help Forum
Topic: Upgrading Mudlet
Replies: 1
Views: 318

Re: Upgrading Mudlet

We put a fair bit of effort into making sure Mudlet stays backwards compatible, so your scripts and such should largely just work after the upgrade. If you run into something that doesn't work afterwards we'll be more than happy to help you sort it out though.
by demonnic
Fri Jan 28, 2022 6:11 pm
Forum: Scripts & Packages
Topic: Miniconsole Wrap Indent
Replies: 5
Views: 613

Re: Miniconsole Wrap Indent

hmm, ok, firstly I believe this only wraps the first line if it's wrapped, and not the following lines. And secondly it doesn't seem to work on miniconsoles, for some reason. Though I thought it did
by demonnic
Fri Jan 28, 2022 1:02 am
Forum: Scripts & Packages
Topic: Miniconsole Wrap Indent
Replies: 5
Views: 613

Re: Miniconsole Wrap Indent

https://wiki.mudlet.org/w/Manual:Lua_Fu ... WrapIndent this is the function you'll want.
Code: [show] | [select all] lua
setWindowWrapIndent("All", 1) -- or however many spaces you want it indented
by demonnic
Thu Jan 27, 2022 7:50 pm
Forum: Scripts & Packages
Topic: Miniconsole Wrap Indent
Replies: 5
Views: 613

Re: Miniconsole Wrap Indent

As in you don't want it to wrap to the size of the miniconsole, but maintain the wrapping it gets on the miniconsole instead?

Best bet would be to set the wrap width on the miniconsole to the same wrap width as you have on your main console.
by demonnic
Thu Jan 27, 2022 5:44 pm
Forum: Scripts & Packages
Topic: Phrase Color Triggering for #00FF00 within Miniconsole
Replies: 5
Views: 803

Re: Phrase Color Triggering for #00FF00 within Miniconsole

You could accomplish this by doing replaced = string.gsub(replaced, "<0,255,0>", "<255,0,0>") to change it from the green to red for instance. you'll need to use the r,g,b decimal format since it's using ansi2decho and decho. And you'd want to do it ahead of the decho.
by demonnic
Thu Jan 27, 2022 3:19 pm
Forum: Scripts & Packages
Topic: Phrase Color Triggering for #00FF00 within Miniconsole
Replies: 5
Views: 803

Re: Phrase Color Triggering for #00FF00 within Miniconsole

How is the text getting to the miniconsole?
by demonnic
Sat Jan 15, 2022 9:55 pm
Forum: Help Forum
Topic: Trigger for Bump-testing Hidden Exits
Replies: 5
Views: 710

Re: Trigger for Bump-testing Hidden Exits

you'll want to try the pattern ^\[Exits: (.*)\] And for the code try instead local dirs = {"north", "east", "south", "west", "up", "down" } local knownExits = string.split(matches[2], " ") for _, exit in ipairs(dirs) do if not tab...