Search found 1148 matches

by Jor'Mox
Thu Mar 09, 2023 1:46 am
Forum: Help Forum
Topic: Commands not working
Replies: 1
Views: 9038

Re: Commands not working

There is no way that you could use arrow key movement via Mudlet, because Mudlet doesn't sent anything to the game at all until you hit Enter. This is distinctly different from base Telnet, which sends each key stroke as you type, and so allows for some very particular features that basically no MUD...
by Jor'Mox
Thu Feb 09, 2023 2:39 pm
Forum: Help Forum
Topic: Switching from cMUD
Replies: 11
Views: 17638

Re: Switching from cMUD

Okay, so I see the problem now. You aren't actually creating anything to put text or whatever into in these tabs. They are all empty except for the mapper tab. When all these tabbed containers are created, they also create a container linked to the tab, where if the name of the tab is Tab1, the name...
by Jor'Mox
Wed Feb 08, 2023 3:09 pm
Forum: Help Forum
Topic: Switching from cMUD
Replies: 11
Views: 17638

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

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

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

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

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

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

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: 443
Views: 489369

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.