Search found 1123 matches

by Jor'Mox
Tue Jan 31, 2023 6:08 pm
Forum: Help Forum
Topic: Switching from cMUD
Replies: 6
Views: 263

Re: Switching from cMUD

If you find you really like the repeat functionality that you had in cMUD, you can more or less mimic it by just making a script and putting a simple function into it that will do what it does, like this: function reSend(cmd, num) for i = 1, num do send(cmd) end end That way, you only have to do all...
by Jor'Mox
Sat Jan 28, 2023 10:22 pm
Forum: Help Forum
Topic: Switching from cMUD
Replies: 6
Views: 263

Re: Switching from cMUD

Oh, about the chat windows, you send the text to the window you want like this:
Code: [show] | [select all] lua
--selects and copies an entire line to user window named "Chat"
selectCurrentLine()
copy()
appendBuffer("Chat")
by Jor'Mox
Sat Jan 28, 2023 10:20 pm
Forum: Help Forum
Topic: Switching from cMUD
Replies: 6
Views: 263

Re: Switching from cMUD

I don't think there is a mechanism to use a table in your trigger patterns like you have done, so you will need a more complicated trigger pattern to match things in the way you are looking to. This is a pattern I made for my game that tries to capture all the relevant bits of info in a line such as...
by Jor'Mox
Sat Jan 28, 2023 8:22 pm
Forum: Help Forum
Topic: Switching from cMUD
Replies: 6
Views: 263

Re: Switching from cMUD

Okay, so firstly, you should know of the two main ways to construct a string containing a value from a variable, as you will clearly be making use of one or both of them quite a lot. The simplest way is to use the string concatenation symbol ".." to connect the various pieces, like this: &...
by Jor'Mox
Thu Jan 19, 2023 11:26 pm
Forum: Mudlet Mapper
Topic: Generic Mapping Script
Replies: 439
Views: 315675

Re: Generic Mapping Script

With the function, setRoomName. Give it the roomID, and the name you want it to have, and BAM, the room now has that name.
by Jor'Mox
Tue Jan 10, 2023 3:40 pm
Forum: Mudlet Mapper
Topic: Generic Mapping Script
Replies: 439
Views: 315675

Re: Generic Mapping Script

Thanks much for having some foundation for map scripting. I'm finding it helpful in learning through your work. I was wondering if anyone here has any suggestions or ideas on how I can ignore/prevent tick information from messing up the room description? For example:- You are hungry. You are thirst...
by Jor'Mox
Thu Dec 29, 2022 9:21 pm
Forum: Help Forum
Topic: Creating temporary variables within aliases/triggers?
Replies: 5
Views: 631

Re: Creating temporary variables within aliases/triggers?

The "Scripted Aliases" bit is indeed a folder, with the idea being to make it easier to keep them together in case you needed to delete them or something. It would be created as an alias, just as if you had created it by hand. You can, optionally, create temporary aliases, that are created...
by Jor'Mox
Wed Dec 28, 2022 9:08 pm
Forum: Help Forum
Topic: Creating temporary variables within aliases/triggers?
Replies: 5
Views: 631

Re: Creating temporary variables within aliases/triggers?

The main difference between setting the variable in the script vs having it as a "variable" object is the value permanence between sessions. A variable object will remember its value even when you close Mudlet and reopen it, whereas using a variable declared in a script will instead always...
by Jor'Mox
Sat Dec 24, 2022 4:45 pm
Forum: Help Forum
Topic: Creating temporary variables within aliases/triggers?
Replies: 5
Views: 631

Re: Creating temporary variables within aliases/triggers?

To make the variable persistent, but ONLY while the profile is open, you can make a blank script, make sure that script is checkmarked, and create the variable inside that script. Then it will always start with whatever value you give it in the script, without having a permanent variable created for...
by Jor'Mox
Mon Dec 19, 2022 11:03 pm
Forum: Mudlet Mapper
Topic: Generic Mapping Script
Replies: 439
Views: 315675

Re: Generic Mapping Script

In the version I'm looking at, the function capture_move_cmd starts on line 1334, this is where you are going to want to focus your attention. On line 1346, I see: local door = string.match(dir,"open (%a+)") That bit of code compares the command sent to the pattern given, and stores the ma...