I don't know that I would worry too much about it for the given function, though if you're going to use it during combat i could see wanting to eke out every cycle you can. Brief summary of issue / Description of requested feature: Mudlet logger (HTML or text) does not log cecho() or creplaceLine() commands within an if statement. I've made a note to look it over when I get a few moments. Do you happen to have any links? I believe you, but that kind of thing fascinates me and I'd love to read up on it. There are problems with the GC and concat when used rapidly (like a combat system tends to do). String.format, however, is done outside of the lua engine on the C side and doesn't suffer this problem. So if you concat three times, you end up with four separate concatenation functions and the memory sits until the GC clears it up. Nickneim replied to the topic Mudlet Scripts in the forum Share Yo Scripts. string.format ends up being a lot faster than concatenations, because the lua engine creates an entirely new memory address for each concat. In the macro, the send() still isn't quite right. You can use n in an echo to insert a new line. miniconsoleName: (optional) the miniconsole to echo to, or: labelName: (optional) the label to echo to. That will make it echo on a new line, instead of just after the previous prompt, making it more visible. echo echo(miniconsoleName or labelName, text) This function appends text at the end of the current line. You might want to add a to the beginning of your echo: echo(' Target is set to '.target.'.'). #MUDLET ECHO MOD#Clicking on any link further back than that executes the command in link (n mod 20. No, I spent a good deal of time looking this up a while back. with what you have, so I'm not sure exactly what's wrong. Brief summary of issue When using echoLink, the links are only correct up to the 2000th link counting backwards. I imagine a lot of it has to do with your coding roots. Some folks prefer concat, some folks prefer string.format. Demonnic wrote:In this case, "better" is a matter of opinion.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |