Search found 1094 matches

by Jor'Mox
Tue Sep 18, 2018 12:26 am
Forum: Scripts & Packages
Topic: Drag and Drop GUI Framework
Replies: 11
Views: 2316

Re: Drag and Drop GUI Framework

Someone asked on Discord that I share the setup I used for the demo video, so here it is. I had this in an alias and was using it while doing development and testing, so it is pretty basic. But I think it shows how little needs to be done to make use of this script. mapper = Geyser.Mapper:new({name ...
by Jor'Mox
Mon Sep 17, 2018 9:57 pm
Forum: Scripts & Packages
Topic: Drag and Drop GUI Framework
Replies: 11
Views: 2316

Re: Drag and Drop GUI Framework

I forgot, here is a brief demo video of this script in action.
Mudlet Frame Demo.mp4
(4.9 MiB) Downloaded 172 times

edit: Zaphob: Watch on Youtube:
https://www.youtube.com/watch?v=VWbugxsCmNA
by Jor'Mox
Mon Sep 17, 2018 4:45 pm
Forum: Scripts & Packages
Topic: Drag and Drop GUI Framework
Replies: 11
Views: 2316

Drag and Drop GUI Framework

This script makes a GUI framework that allows the user to add Geyser windows/containers to any of 6 existing spots, 4 of which are tab switched to allow multiple windows/containers in them. The containers can be resized and windows can be moved around on the fly by the user ( right click and drag on...
by Jor'Mox
Mon Sep 10, 2018 10:59 am
Forum: Help Forum
Topic: Help with another alias please...
Replies: 3
Views: 546

Re: Help with another alias please...

Sure, just add an if statement to your trigger (assuming your name is being added to the list by that), like so:
Code: [show] | [select all] lua
if matches[2] ~= "my name" then
    table.insert(consent_tbl,matches[2])
end
by Jor'Mox
Sun Sep 09, 2018 8:53 pm
Forum: Help Forum
Topic: Help with another alias please...
Replies: 3
Views: 546

Re: Help with another alias please...

Okay, so first, you want an alias for the "consenting" command, which will reset a table you will use to track the people, and turn on a trigger to capture the names, like so: consent_tbl = {} -- you can name the trigger whatever you want, but this has to match it exactly enableTrigger("Consenting N...
by Jor'Mox
Sat Sep 08, 2018 3:10 pm
Forum: Scripts & Packages
Topic: Easy Auto Wrapping Console Class
Replies: 2
Views: 801

Easy Auto Wrapping Console Class

Here is a simple script that creates an autoConsole class that automatically readjusts text in the window whenever it is resized. I added all of the relevant functions that can be used to interact with a miniConsole to the class, so the returned object can use them as methods. One exception is that ...
by Jor'Mox
Fri Sep 07, 2018 7:25 pm
Forum: Help Forum
Topic: Keeping variables through multiple lines
Replies: 4
Views: 550

Re: Keeping variables through multiple lines

There are several predefined character groups in regex, such as \w, \d, and \s (they are all letters, numbers and _, all numbers, and all white space, respectively). But if you instead use the upper case version of the letter, you get everything NOT in that group. So \W is everything that isn't a le...
by Jor'Mox
Thu Sep 06, 2018 8:13 pm
Forum: Help Forum
Topic: Cant save trigger/alias/butons
Replies: 11
Views: 1173

Re: Cant save trigger/alias/butons

Make a new script, and for the first line of that script, put this: print(getMudletHomeDir()) Then save the script. Something will be printed to the screen. I have a feeling that the normal alias that lets you execute code from the command line that they are asking you to use likely also got deleted...
by Jor'Mox
Thu Sep 06, 2018 4:28 pm
Forum: Mudlet Mapper
Topic: Generic Mapping Script
Replies: 371
Views: 60635

Re: Generic Mapping Script

Okay, so we can easily make a revised pattern to get the optional water exits, like this: ^([A-Z].+)\(([\w\s,]+)\)\s*\[?([\w\s,]*)\]? And then we modify the script to combine both sets of captured exits before searching them, like this: local dirs = {n = 'north', s = 'south', w = 'west', e = 'east',...
by Jor'Mox
Thu Sep 06, 2018 11:34 am
Forum: Mudlet Mapper
Topic: Generic Mapping Script
Replies: 371
Views: 60635

Re: Generic Mapping Script

Okay, I think the key will be changing the way we do the direction replacement. In doing so, we will make it so we can detect if there are real exits being detected or not, and if there aren't, we will ignore that match because it isn't really exits. Like this (using this as the trigger pattern: ^([...