Overall, it's amazing that folks have put as much work as they have into this project, but it's nearly impossible to figure out how to use any of it. I created a basic script that declares them on startup each time. Checkmarking them is supposed to save them, but it doesn't work. Variables get deleted at startup for some reason. Or if I see the echo, then I'll know my code is silently failing. I've used this countless times to discover that my keybinding or whatever wasn't even firing. If you're wondering if your scripts is even firing, copy-paste all your code to a notepad file, then delete it all from Mudlet and replace it with echo("I'm working!"). However, setAreaName(001, "MyArea") with the quotation marks works perfectly because that's the syntax the function needs. No error or indication that it even tried to run. For example, setAreaName(001, MyArea) seems to do nothing. If it exists, it can be called from any alias, trigger, etc. For example, I created a keybinding (ctrl-W) called DoSomething, and it calls whatever function I'm wanting to test at the time.Īny Lua function in any script is fair game. They have to be called in a trigger, or keybinding, or alias, or something like that. You can't call Lua functions from the main console. Here are some general learnings for anyone else stumbling on this thread X years from now: By leveraging the specific 'out of band' packets sent by Discworld MUD's server, discMapper correcly identifies rooms, stops creation of duplicate rooms, and accurately tracks your character's location on the map as you move about the disc. In my case, it was a local function, so it couldn't be called outside of the script. Discworld MUD mapping script for Mudlet The discMapper project gives Discworld MUD players improved access to the advanced mapping features of the Mudlet MUD client. :pįor what it's worth, I figured out what was going on here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |