This might mean that the number is not saved across sessions, though. If you want to keep track of how many times you've used the patted emote across sessions. You'll need to use the loadVars() and saveVars() functions.
I recommend doing
patted = patted or 0
As that's quicker in Lua, takes up less space as well.
My Mudlet mapper doesn't seem to want to download new maps any more - I'll get the notification to update the map, but it just twiddles a bit on the 'Downloading new map' window which then closes without having downloaded anything... is this just me?
My Mudlet mapper doesn't seem to want to download new maps any more - I'll get the notification to update the map, but it just twiddles a bit on the 'Downloading new map' window which then closes without having downloaded anything... is this just me?
When I had this problem, it was because I made a new profile other than the standard one mudlet starts with. For me, I had to connect to "lusternia.com," precisely like that. When I did www.lusternia.com it would not work.
A simple thing, but it worked for me. Hopefully it helps.
Mayor Steingrim, the Grand Schema says to you, "Well, as I recall you kinda leave a mark whereever you go."
My Mudlet mapper doesn't seem to want to download new maps any more - I'll get the notification to update the map, but it just twiddles a bit on the 'Downloading new map' window which then closes without having downloaded anything... is this just me?
When I had this problem, it was because I made a new profile other than the standard one mudlet starts with. For me, I had to connect to "lusternia.com," precisely like that. When I did www.lusternia.com it would not work.
A simple thing, but it worked for me. Hopefully it helps.
Sadly I already use lusternia.com to connect... it seems to have happened just after the new area was released (I was downloading the map happily before this).
You have to use functions to highlight regex triggers unfortunately, but if I can get onto a comp before leaving for work I'll post the function I use.
@Turnus function colorLine(section, fgcolor, bgcolor)
fgcolor = fgcolor or "white"
bgcolor = bgcolor or "black"
resetFormat()
selectString(section,1)
fg(fgcolor)
bg(bgcolor)
resetFormat()
end
You can leave out the bgcolor part if you want it to default to the regular screen background. It's not really set to ignore fgcolor, though I might update it someday.
Now, what that does is select the line, tack on a black background, put a timestamp in the org tab, put the line in the org tab, delete the line and delete the next prompt too. Effectively it makes sure the line never shows up in the main window but does appear in the chat tab.
My issue is this: When I log the game, by using the screendump command (alias that captures everything in the buffer and sticks it in a log file) I don't log what goes into the chat tabs because that is cut out of the main game feed. I haven't tried if the Mudlet logging button does work around this, but that would mean I'd have to have logging on all the time and that could eat some disk space.
I am wondering what the possible solutions are to get logs with -everything- in it, while still having tabbed chat. I find it a bit ugly if text would go into both the main window and the tabs, but if that is the only way then I will just deal with that. However any more elegant solution would be vastly preferred.
Hope that makes sense and that someone can help
You have received a new honour! Congratulations! On this day, you have shown your willingness to ensure a bug-free Lusternia for everyone to enjoy. The face of Iosai the Anomaly unfolds before you, and within you grows the knowledge that you have earned the elusive and rare honour of membership in Her Order. Curio Exchange - A website to help with the trading of curio pieces in Lusternia.
Unrelated to the logging part of your question, but you could use getTime(true, "hh:mm:ss") instead of your getTime().hour etc. to condense that line a bit.
As for logging, as a way of learning how to manipulate Mudlet's database functions, I made something that captures everything and adds it to a database before I replace/echo/delete lines. Does mean that it's an all plain text log though, and that it's on all the time, so if there's a better way, I'd be interested in hearing myself.
I keep getting the Mudlet crash loop on my Mac. I have tried removing the map and mapper wholly from my game, and it still occurs, along with the constant asking for an update. Any clues on a fix for this, anyone?
I love Mudlet Mapper and use the walk goto all the time to quickly move from place to place. A very basic alias example would look like the following:
Alias name: Walk Guild
Pattern: ^walkguild$
Substitution: goto 14656
However, I would now love to integrate psymet glide into my Mudlet mapper goto. I originally started to make separate aliases for walk ~AND~ glide, but this caused double work and bloated my alias list.
Alias name: Glide Guild
Pattern: ^glideguild$
Substitution: goto 14656 glide
I want to combine both walk/glide under a single alias that would be the simplest to code and most efficient to enact in-game. However, I have very limited knowledge of how to script. Whatever little coding I once knew is now long, long forgotten.
Can someone give a suggestion how to achieve this effect?
To avoid unnecessary scripting and in what I think would be a better solution, I would recommend using the mapper's room mark functionality. You can, for example, do ROOM MARK 21401 THRONE, and then "goto throne" or "goto throne glide" would work as normal. ROOM MARKS shows your room marks, and you can use ROOM UNMARK THRONE to remove them.
To avoid unnecessary scripting and in what I think would be a better solution, I would recommend using the mapper's room mark functionality. You can, for example, do ROOM MARK 21401 THRONE, and then "goto throne" or "goto throne glide" would work as normal. ROOM MARKS shows your room marks, and you can use ROOM UNMARK THRONE to remove them.
THANK YOU!
This is exactly what I was looking for. Sure, I'll have to rewrite all of my goto aliases, but this method is far preferable to what I had previously. Outta curiosity, where are the "room" values saved?
You can probably delete all of your "goto aliases", since you can just "goto guild" or whatever if you just set your room marks up.
The values get saved in one of the mapper files that's in the folder for your active Mudlet profile. The map code is a little too complex for me to easily dig around where exactly it is, so, hopefully that suffices for curiosity sake!
Shoddy coding practices. Self-taught bad habits are hard to break. Like others have also said, using expandAlias is itself not recommended. But for me, whatever works.
Hmm. @Lerad's def got the best idea, but out of curiosity - why concatenate an empty string in the last expandAlias?
Why is @Lerad's idea better than @Kelly. Coding efficiency or some other in-game result (like faster walking). I do love Kelly's idea so far... even if the syntax use is a bit lengthy for my tastes.
The two suggestions are independent of one another. Lerad's showing you how to automatically change up your speedwalking based on your active abilities/defenses.
Comments
function Sphere_Antlers()
if nAntlersSun == "+4" or "+3" or "+2" or "+1" then
cecho("AstroRight","\n<medium_spring_green> [ ANTLERS : " .. nAntlersSun .. " ] ")
elseif nAntlersSun == "-1" or "-2" or "-3" then
cecho("AstroRight","\n<deep_pink> [ ANTLERS : " .. nAntlersSun .. " ] ")
else
cecho("\n<gray> [ ANTLERS : 00 ] ")
cecho("AstroRight","\n<gray> [ ANTLERS : 00 ] ")
end
end
But the "or" doesn't seem to be clicking.
if nAntlersSun == "+4" or nAntlersSun == "+3" or nAntlersSun == "+2" ...
( "+4" or "+3" or "+2" or "+1" )
Signature!
Sadly I already use lusternia.com to connect... it seems to have happened just after the new area was released (I was downloading the map happily before this).
@Turnus
function colorLine(section, fgcolor, bgcolor)
fgcolor = fgcolor or "white"
bgcolor = bgcolor or "black"
resetFormat()
selectString(section,1)
fg(fgcolor)
bg(bgcolor)
resetFormat()
end
You can leave out the bgcolor part if you want it to default to the regular screen background. It's not really set to ignore fgcolor, though I might update it someday.
Signature!
My chat capturer triggers look like this:
Now, what that does is select the line, tack on a black background, put a timestamp in the org tab, put the line in the org tab, delete the line and delete the next prompt too. Effectively it makes sure the line never shows up in the main window but does appear in the chat tab.
My issue is this: When I log the game, by using the screendump command (alias that captures everything in the buffer and sticks it in a log file) I don't log what goes into the chat tabs because that is cut out of the main game feed. I haven't tried if the Mudlet logging button does work around this, but that would mean I'd have to have logging on all the time and that could eat some disk space.
I am wondering what the possible solutions are to get logs with -everything- in it, while still having tabbed chat. I find it a bit ugly if text would go into both the main window and the tabs, but if that is the only way then I will just deal with that. However any more elegant solution would be vastly preferred.
Hope that makes sense and that someone can help
You have received a new honour! Congratulations! On this day, you have shown your willingness to ensure a bug-free Lusternia for everyone to enjoy. The face of Iosai the Anomaly unfolds before you, and within you grows the knowledge that you have earned the elusive and rare honour of membership in Her Order.
Curio Exchange - A website to help with the trading of curio pieces in Lusternia.
As for logging, as a way of learning how to manipulate Mudlet's database functions, I made something that captures everything and adds it to a database before I replace/echo/delete lines. Does mean that it's an all plain text log though, and that it's on all the time, so if there's a better way, I'd be interested in hearing myself.
The values get saved in one of the mapper files that's in the folder for your active Mudlet profile. The map code is a little too complex for me to easily dig around where exactly it is, so, hopefully that suffices for curiosity sake!
Pattern: ^got (.+)$
Codebox:
if mm.defc.gliding then
expandAlias("goto " .. matches[2] .. " glide")
elseif mm.defc.adroitness then
expandAlias("goto " .. matches[2] .. " sprint")
else
expandAlias("goto " .. matches[2] .. "")
end