![]() What you do instead if create a function (for example, send() and echo() are functions) that you can then call from your alias or trigger. Now, while in Mudlet you can call another alias with the expandAlias() function, this is strongly discouraged. ![]() While the first use is good, the second isn’t - because the user can also run this alias at an inopportune time, because if you want to call an alias it has to match all alises again, and so on. The typical workflow in Nexus is that you’d define the aliases for yourself to use, and also use aliases for system-related things (things like checking if you’d need to eat a herb, etc). SelectString (line, 1) bg("") resetFormat() Note that this is a direct Nexus→Mudlet comparison certain functions in Mudlet have much more capability.ĮnableAlias("")/enableTrigger()/enableKey()/enableTimer()ĭisableAlias("")disableTrigger()disableKey()disableTimer() Now that we got the ifs covered, lets go over the Mudlet equivalents of other Nexus functions. following lines are all _one_ single if statement. blocks in its constituent clauses may have multiple lines. This shows how ifs continue (on 'logical' lines) even though the #echo These commands are all on separate lines too! Note: If you just have a pattern with a ' is Match the end of a line (not the actual newline character) Match one or more of anything EXCEPT 'a', 'b', or 'c' Match one or more of either 'a', 'b' or 'c'. Match one or more numeric digits (a number) ![]() Match one or more non-whitespace characters (a 'word') Make sure to set the pattern type in Mudlet to be perl regex, because the default substring works differently. For translating Nexus patterns into Mudlet, use the following table below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |