Search found 1148 matches

by Jor'Mox
Fri Oct 13, 2023 5:37 pm
Forum: Help Forum
Topic: Conditional triggers nested inside main trigger?
Replies: 2
Views: 14354

Re: Conditional triggers nested inside main trigger?

Honestly, i don't see that being best done through gated triggers, as you have an open ended amount of time before you are done needing the follow up trigger. Rather, it seems to me that it would be easier to just use the first trigger to enable the failure condition trigger, and possibly a third tr...
by Jor'Mox
Mon Aug 28, 2023 11:44 am
Forum: Help Forum
Topic: Probably really easy IF THEN question
Replies: 5
Views: 31712

Re: Probably really easy IF THEN question

You are right that. I'm totally sleep deprived. My bad.Thanks.

Edit: Fixed the original post to use the right brackets, and pull out the other bit.
by Jor'Mox
Sun Aug 27, 2023 12:07 pm
Forum: Help Forum
Topic: Probably really easy IF THEN question
Replies: 5
Views: 31712

Re: Probably really easy IF THEN question

Interestingly, you can actually use tables to bypass most of the if/then stuff here, like this. local dirs = {"go 9e, 9n, 18w, 2s, 16e, 5s, 2w, 3n, 2w, 3s, 2w, 3n, 2w, 3s, 2w, 3n, 2w, 3s, 2w, 3n, 2w, 3s, d", "go 11s, 18e, 8n, 2w, 6s, 2w, 6n, 2w, 6s, 2w, 6n, 2w, 6s, 2w, 6n, 2w, 6s, 2w,...
by Jor'Mox
Wed Jul 19, 2023 6:48 pm
Forum: Mudlet Mapper
Topic: suggestion: add waiting button for special exit window in mapper
Replies: 7
Views: 58730

Re: suggestion: add waiting button for special exit window in mapper

So long as they are already using speedwalk with a delay, you could absolutely do something like that, where they set an extra delay variable in their script, that is executed, and it is reset when the continue_walk function runs its own wait timer where you indicated. And given that it would be ess...
by Jor'Mox
Tue Jul 18, 2023 4:10 pm
Forum: Mudlet Mapper
Topic: suggestion: add waiting button for special exit window in mapper
Replies: 7
Views: 58730

Re: suggestion: add waiting button for special exit window in mapper

Yeah, speedwalks with waiting included require special implementation because of the way that speedwalks work. Normally, they just spam out all the commands as fast as possible, and assume everything will go through properly. As far as I see it, there are three different approaches that could work i...
by Jor'Mox
Wed May 24, 2023 12:09 pm
Forum: Help Forum
Topic: Command Spam Prevention
Replies: 3
Views: 20054

Re: Command Spam Prevention

I rewrote some of your if statements just to highlight the sorts of things you can do with Lua to simplify your code. function command_count(event, command) commandCountKill = commandCountKill or 1 currentCommand = command commandCountKill = currentCommand == lastCommand and commandCountKill + 1 or ...
by Jor'Mox
Tue May 23, 2023 12:53 pm
Forum: Help Forum
Topic: Command Spam Prevention
Replies: 3
Views: 20054

Re: Command Spam Prevention

Instead of using an alias, you can create an event handler for the sysDataSendRequest event, and handle it that way. There is an example in the wiki, located here: https://wiki.mudlet.org/w/Manual:Lua_Fu ... urrentSend
by Jor'Mox
Fri May 19, 2023 1:54 pm
Forum: Help Forum
Topic: how to use basic list or array to see whether an item is in the list?
Replies: 3
Views: 19887

Re: how to use basic list or array to see whether an item is in the list?

Another way, especially if you have different actions to match different words you are looking for, is to use your matched words as keys, and the actions as entries, like this: action_table = {apple = "drop apple", orange = "eat orange", pear = "cast fireball pear"} -- ...
by Jor'Mox
Fri May 12, 2023 5:47 pm
Forum: Help Forum
Topic: Button Layout Bug?
Replies: 5
Views: 21233

Re: Button Layout Bug?

The description of the problem is great, as is showing it in action, but it would be useful if you showed the code you were using to generate those buttons, so we could hopefully figure out where the problem is occurring.
by Jor'Mox
Sat Apr 15, 2023 12:47 am
Forum: Help Forum
Topic: Capturing prompt
Replies: 2
Views: 20316

Re: Capturing prompt

So, you can add in a bit to make it work in both circumstances: ^Hp: (\d+)\((\d+)\) [\s\*\d]*Gp: (\d+)\((\d+)\) Xp: (\d+)\((\d+)\) Basically, it just makes a group of characters, spaces, numbers and asterisks, and then says that your pattern should look for 0 or more of them right before the Gp in y...