Heading back to the editor, the other substring triggers are "Start of line", which is the same as substring but it must start the at the beginning of the line only. Highlights the Bob in Bobbin, but not the one in bobbed, because of the lowercase b. Going back to the main window, we can see that These patterns are both substring patterns, which means if the text in the box appears exactly like that anywhere in a line, it will be highlighted. In this case, it encountered 'Bob' before 'Jr.' and fires for all instances of Bob on the line, but didn't keep checking any of the patterns after that. When a trigger has multiple patterns in it, and multi-line AND is not checked, then it will check each of its patterns in order from top to bottom, and stops when it finds the first one that matches and fires on that. Going back into the editor, I can explain why. You can add another substring pattern below that for Jr. If we click save, then go back to the main window and repeat the previous echo, you can see that both Bob's are now highlighted. Going back to the editor, if we check off "match all" here, then it will match for every instance on the line. His son, Bob Jr, is likely to be caught up in this feud as well so we want to make sure he is also highlighted. Oh dear, we see here that it's only highlighted the first instance of Bob. `echo Bob appears from across the horizonĪs you can see, Bob is highlighted and his name just leaps out of the text at you. In the Mudlet main window, we'll use the `echo alias which comes preinstalled in Mudlet profiles for testing triggers to show the highlight. Bob is now our enemy! So let's add Bob's name to pattern 1 here of this trigger. Now, let's imagine that Bob was recently caught stealing a cow from our farm, and boy does that make us mad. We'll accept the defaults, red on yellow is VERY easy to see. We really want them to stand out, so let's check off highlight here in the bottom right. We'll use this trigger to highlight our enemies, as the name implies. Then we'll click on "Add Item" to make a new trigger. Then let's click "Add Group" and name this group "Tutorial Triggers" and click save. Let's start by clicking on Triggers to bring up the trigger editor. In this tutorial, I will cover the three different types of substring triggers in Mudlet and what the differences between them are, as well as some of the basic overall trigger features.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |