Search found 1101 matches
- Wed Jan 16, 2019 9:16 am
- Forum: Help Forum
- Topic: Pattern matching a variable
- Replies: 8
- Views: 3921
Re: Pattern matching a variable
What you would do is make a script, with the code like so: local highlight_strings = {"string one","string two","string three"} function do_highlight() local index for i,v in ipairs(highlight_strings) do index = 1 while selectString(v,index) > -1 do fg("red") ...
- Wed Nov 28, 2018 9:06 pm
- Forum: Mudlet Mapper
- Topic: Generic Mapping Script
- Replies: 404
- Views: 184175
Re: Generic Mapping Script
While the original version of this script works with Mudlet 2.1, the current version does not. It uses numerous changes that have been made since as part of how it functions, including the error you noticed here. Fixing this particular error would be easy, but it would just lead you down a path of h...
- Thu Nov 15, 2018 12:31 pm
- Forum: Scripts & Packages
- Topic: Easy Auto Wrapping Console Class
- Replies: 2
- Views: 2625
Re: Easy Auto Wrapping Console Class
Not to my knowledge, no. For a lot of use cases of miniConsoles, this is excessive, so it would definitely be something you would want as optional, not a built in part of normal function.
- Thu Nov 15, 2018 12:30 pm
- Forum: Mudlet Development
- Topic: Requesting Hotkey Freedom
- Replies: 8
- Views: 5830
Re: Requesting Hotkey Freedom
It's a typing game, by and large, you would think that most of the standard keys would be something you wouldn't want to turn into a hotkey... but that doesn't mean that there can't be specific exceptions where using them that way makes sense, even when working in a language that needs the key in qu...
- Sat Oct 27, 2018 3:48 pm
- Forum: Help Forum
- Topic: GMCP image display
- Replies: 3
- Views: 1849
Re: GMCP image display
Yup, just make sure you check to see if the file needs to be downloaded, or if it is already available locally, and you should be good.
- Sat Oct 27, 2018 12:05 am
- Forum: Help Forum
- Topic: GMCP image display
- Replies: 3
- Views: 1849
Re: GMCP image display
You likely just got a gray square because the file path for the image either wasn't right, or had \ as the directory separator, instead of / (which happens on Windows, but not other OSs, when you use getMudletHomeDir()). To make the image display correctly, you want to replace the backslashes with f...
- Thu Oct 25, 2018 8:16 pm
- Forum: Scripts & Packages
- Topic: An Easier Way to Make Colored Links
- Replies: 0
- Views: 2772
An Easier Way to Make Colored Links
I wrote a function that uses cecho to write out text, with the added ability to put links in the middle of it (via cinsertLink), using a <link> tag. Just put the tags around whatever you want to make a link (as described in the comments at the top), and it will do it all the rest of the work for you...
- Fri Oct 19, 2018 12:54 pm
- Forum: Help Forum
- Topic: Table script among other stuff
- Replies: 3
- Views: 1855
Re: Table script among other stuff
So, first, I STRONGLY recommend you take the time to use proper tab-indenting in your code. Your code above has two extra end statements that were very hard to spot because things weren't properly lined up. I'm going to guess that the reason you added them is due to some thought that you need a sepa...
- Thu Oct 18, 2018 12:18 am
- Forum: Help Forum
- Topic: Achaea Runewarden runelore script + alias
- Replies: 7
- Views: 2748
Re: Achaea Runewarden runelore script + alias
Just replace ‘green’ with ‘blue’, ‘yellow’. I intionally put all the ink colors in mini tables, so each one is it’s own list that can have any number of colors you want. Just separate the colors with commas, and you should be good. Side note, don’t copy from this post, it was written on my phone and...
- Wed Oct 17, 2018 11:03 pm
- Forum: Help Forum
- Topic: Variable Timer?
- Replies: 4
- Views: 1804
Re: Variable Timer?
Yes.