Search found 1142 matches

by Jor'Mox
Sat Jan 28, 2023 10:22 pm
Forum: Help Forum
Topic: Switching from cMUD
Replies: 11
Views: 16353

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: 11
Views: 16353

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: 11
Views: 16353

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: 441
Views: 405994

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: 441
Views: 405994

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: 9513

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: 9513

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: 9513

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: 441
Views: 405994

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...
by Jor'Mox
Mon Dec 19, 2022 12:31 am
Forum: Mudlet Mapper
Topic: Generic Mapping Script
Replies: 441
Views: 405994

Re: Generic Mapping Script

As the person who wrote the basis of this script, I can say that it is at least possible, as the script looks at every command sent while it is active, to check for movement commands. So, as it already treats 'n' and 'north' as identical, it wouldn't be overly complicated to make it have a bigger li...