![]() ![]() ![]() The sample ones are from a long-dead game called Lithmeria.Ĭheatsheet = Geyser.Label:new(for _, cmdt in ipairs(t) do if cmdt then s = string.format(], cmdt, cmdt) else s = "".cmdt."" endendcheatsheet:echo("".ncat(s, ""). ![]() This is how I get the room id and area and store it within my own system and blink the rooms.Ĭreate a label cheatsheet with your combat aliases. Extended color table: Adds two sets of colors, Aetolian color (specially-named colors that match Aetolia's standard output) and the 'dead' series (super dark colors, great for backgrounds). Near the beginning of the mudlet manual is a section called saving variables which explains it all. perhaps Mudlet in future will give this us anyway, sorted by relevancy From time to time, I like to share things I've made on Mudlet. I believe its table.save(file,table) and table.load(file,table) for storing and loading the table, and the mudlet manual goes over how to add variables and their values to a table. transform the kv table into a table of tables for cleaner code. Local rooms = mmp.searchRoomExact(roomname) Very useful for PK.Īll credit goes to Tysandr who wrote this in Imperian. I use this when I farsee or who b enemy targets and it will blink up the room they are located in. TempTimer( durationn 1, function() unHighlightRoom( room ) end )ĮndA room blinker. TempTimer( i 0.5, function() unHighlightRoom( room ) end ) TempTimer( i, function() highlightRoom( room, r,g,b,br,bg,bb, 1, 255, 255 ) end ) If not duration then durationn = 5 else durationn = duration end If you are not sure, we would suggest you check out the table on the Help. " \n " end end setClipboardText ( parsed ) end registerAnonymousEventHandler ( "onMouseCopyExample", "onMouseCopyExample" ) ansi2decho ansi2decho(text, default_colour) Converts ANSI colour sequences in text to colour tags that can be processed by the decho() function.Function doblink( room, color, duration ) Carrion Fields has teamed up with Mudlet to create our own User Interface for. symbol end end if l ~= endRow then parsed = parsed. symbol else lastColor = color parsed = parsed. ![]() An example showing implementing a hecho-friendly copy option: addMouseEvent ( "hecho copy", "onMouseCopyExample" ) function rgbToHex ( r, g, b ) local rgb = ( r * 0x10000 ) ( g * 0x100 ) b return string.format ( "#%x", rgb ) end function onMouseCopyExample ( event, menu, window, startCol, startRow, endCol, endRow ) - Check whether there's an actual selection if startCol = endCol and startRow = endRow then return end local parsed = "" local lastColor = nil - Loop through each symbol within the range for l = startRow, endRow do local cStart = l = startRow and startCol or 0 moveCursor ( window, cStart, l ) local cEnd = l = endRow and endCol or # getCurrentLine () - 1 for c = cStart, cEnd do selectSection ( window, c, 1 ) local symbol = getSelection ( window ) or "" - Convert the foreground color to a hex format, suitable for hecho local color = rgbToHex ( getFgColor ( window )) - Don't repeat the color if previous one was the same if color = lastColor then parsed = parsed. One issue though - Mudlet is not yet at the stage where Unicode is operable - at present the table now lists it as yes whereas it can currently only be. They deal mainly with miniconsole/label/gauge creation and manipulation as well as displaying or formatting information on the screen.ĪddCommandLineMenuEvent addCommandLineMenuEvent( label, eventName)Īdds item to right click menu associated with command line. set to -1 if you want to create a key folder instead. The list is a bit long to list out in full so it is available here. Introduction This tutorial will show you how to create a simple defense tracker in the IRE MUD, Aetolia. All functions that help you construct custom GUIs. actual key to use - one of the values available in mudlet.key, e.g. ![]()
0 Comments
Leave a Reply. |