vortitraders.blogg.se

Mudlet use lua socket
Mudlet use lua socket







If you want to keep the order you add them in but still be able to reference them by your own unique key you can use a second table to cache the indexes. I could use it to add an additional nested table with the variable keyname, but then this makes finding/manipulating the deeper values stupid-loopy.

mudlet use lua socket

Table.insert() would be ideal, but this function does not seem to allow you to assign a key name. I would need to store an additional value representing the order in which it was added, and re-sort the growing table every time I add to it. Every time the list is populated, things end up being in a different order. The problem is that these keys are created and stored in no particular order. Lua documentation indicates that if the name of the key is not known when you initially create/populate the table, you should use Table = whatever, which will both create the key, and assign the value.

mudlet use lua socket

I would like to create something like this: And would I have to put it after my siphon trigger in order to still siphon when the call comes, or would it just gag it but still be available to trigger off of? Would I do another subtrigger then that is just (Ship): and have it demonnic.chat:append() ? Is there a way to do it with functions, instead? Something like selectString(). Is there a good way to do this, considering Cap'n Hook might be replaced with Cap'n Crunch on a different flight ? I would think if I did a parent trigger of (Ship): then I could have a subtrigger that is ^\(Ship\): \w+ says, "Siphon"$ or the like and have it just deleteLine(). Let's say I want to get rid of (Ship): Cap'n Hook says, "Siphon" because that's, like, 90% of my chatlog. On a related note, cutting down aetherchat spam. I want to find a way to leave the main window still saying (Glomdoring): (Glomdoring): Nothing matters but Glomdoring!Ĭan I change it to this in the chat window:īut that will change both the main window, and the chat window. In other words, if this pops in the main window: Is there a way to change the copied text (what ends up in the chatbox) without changing what's on the main window? So, I use demonnic's chatbox, but I imagine that the question works for anything that copies text to a smaller container. I don't have Mudlet in front of me, but I think "args" is a variable that demonnic assigns for the style strings unpack is feeding that into the function. Also I think that demonnic uses Geyser, so you can look at that specific documentation or try something like this. Is it a mudlet thing? Is it magic? I would certainly like to prettify this.Īlso, is there a reference list somewhere of what properties can be used in label CSS?Ĭheck out - and scroll down to the properties. I'm not sure what the unpack() part of the function is doing exactly, since I can't find reference to it in any of demonnic's other code. These are the attribute the other gauges have, that I want to add: I'm mostly fine with that, but I'm not sure how to modify that style sheet, either before or after that gets called.

mudlet use lua socket

The gauge that gets spit out is clunky in comparison to the sleek, lean look of the other gauges and windows I've stolen, and I want to pretty it up, but the only reference to the gauge style I can find is:ĭ:setStyleSheet(unpack(args)) This is more about labels than the specific anitimer code though. I'm working with demonnic's anitimer, which is giving me a formatting problem. There's probably a way to add a whole new 'family' category to nameDB, but again. The obvious disadvantage to this method is that you can't track what Orders the Shevats are in at the same time. Or you can MMCONFIG SHEVATCOLOR (whatever) to set it. I'm not good enough to do that.įrom there, MMCONFIG POLITICS will let you muck about with the highlights just like normal. There's probably also a way to build a trigger on FWHO or FAMILY TREE SHEVAT to mass add people, but.

mudlet use lua socket

Then you can manually add family members the same way. Starting off you can do: 'ndb set Daraius order Shevat' and a new order will be added (Shevat's order) with Daraius as a member. I'm not 100% sure on the specifics here, but if you use m&mf and NameDB, then you can set a new order, Shevat, and then add people to it. Right now I just have a highlight trigger with each name entered manually, but I suspect there's a much more efficient and effective way to go about it. So I want all my lovely family members' names highlighted in Shevat beryl. I'm guessing I can add a line to the following to check for dreamweaving: I'm not sure how to do most of that, but it seems reasonable.









Mudlet use lua socket