Search found 792 matches

by demonnic
Fri Jan 28, 2022 1:02 am
Forum: Scripts & Packages
Topic: Miniconsole Wrap Indent
Replies: 3
Views: 33

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: 3
Views: 33

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: 48

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: 48

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: 266

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...
by demonnic
Thu Jan 13, 2022 8:32 pm
Forum: Help Forum
Topic: Trigger for Bump-testing Hidden Exits
Replies: 5
Views: 266

Re: Trigger for Bump-testing Hidden Exits

It's certainly doable, yeah. You'd want to list out all the possible directions you want to check in a table, and then make a trigger for the exits line from your game which captures the exits and loops the table of possible directions. So if the exits come in as "Obvious exits: north, east, so...
by demonnic
Tue Jan 11, 2022 3:12 am
Forum: Scripts & Packages
Topic: GREP - for searching your main buffer with regex.
Replies: 0
Views: 80

GREP - for searching your main buffer with regex.

Announcing GREP ... why all caps? I haven't backronymed it yet! but also it seemed less likely to clash with someone else's grep implementation. Can download it at https://github.com/demonnic/mudlet-grep/releases/latest . Adds alias "grep <regex> <optional pg to display>" which searches yo...
by demonnic
Sun Jan 09, 2022 11:31 pm
Forum: Help Forum
Topic: [bug report] Interpretation of @desc content as command
Replies: 2
Views: 110

Re: [bug report] Interpretation of @desc content as command

Can you give an example of what you mean? I'm not following you.
by demonnic
Sun Jan 09, 2022 11:31 pm
Forum: General Forum
Topic: Mudlet features and API requests
Replies: 528
Views: 477977

Re: Mudlet features and API requests

General a. You can change how many lines are shown in the buffer (and how many are deleted at once) using setConsoleBufferSize https://wiki.mudlet.org/w/Manual:Lua_Functions#setConsoleBufferSize b .Which system messages? The only system messages we print to the main window are things we feel are imp...