Search found 1146 matches

by Jor'Mox
Wed Feb 08, 2023 3:09 pm
Forum: Help Forum
Topic: Switching from cMUD
Replies: 11
Views: 17136

Re: Switching from cMUD

When it comes to getting the text into the containers that you have set up, can you post a screenshot of the trigger you have setup to try to capture that text? Please also show or otherwise include the code you have that is creating those containers (not the code for the containers themselves, just...
by Jor'Mox
Wed Feb 08, 2023 3:05 pm
Forum: Help Forum
Topic: Switching from cMUD
Replies: 11
Views: 17136

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 al...
by Jor'Mox
Wed Feb 08, 2023 3:02 pm
Forum: Help Forum
Topic: Switching from cMUD
Replies: 11
Views: 17136

Re: Switching from cMUD

Looking at the code I had for the combat stuff, it looks like I just wasn't accounting for the initial nil value for the fightcounter variable. So you could use the timers as is, but at the very beginning of that code block, before any of the if statements, add this: fightcounter = fightcounter or 0...
by Jor'Mox
Tue Jan 31, 2023 6:08 pm
Forum: Help Forum
Topic: Switching from cMUD
Replies: 11
Views: 17136

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

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

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

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

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

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

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...