Share your scripts and packages with other Mudlet users.
- Posts: 1101
- Joined: Wed Apr 03, 2013 2:19 am
I created two functions to capture text from a window in color, suited either for writing in labels or using with decho. They are copy2html and copy2decho. They both take a window name (defaults to "main"), the string you want to copy from that line (defaults to the entire line), and the instance of that string in the line that you want to copy (defaults to 1).
As an example, if you had a trigger capturing something that you wanted to display on a label, you could use the following code to do so with these functions: echo("my_label", copy2html(matches))
- Posts: 661
- Joined: Sat Dec 05, 2009 3:19 pm
This has gotten a bit buried and is super useful functionality that I kind of think Mudlet ought to include by default... would you mind if I put in a PR to include these functions as base Mudlet functionality?