Mudlet Questions

by Rika

Back to Mechanic's Corner.

Unknown2012-08-06 09:33:19
Is there a better way to do exclusions?

I currently have this:


^ (\\w+) was in the sign of the (.*)\\w+\\b(?


That code spits this out, via echos:


On that date:
Sun was in the sign of the Skull.
Sun Skul
Moon was in the sign of the Glacier.
Moon Glacie
Eroee was in the sign of the Skull (retrograde).
Eroee Skul
Sidiak was in the sign of the Skull (retrograde).
Sidiak Skul
Tarox was in the sign of the Skull (retrograde).
Tarox Skul
Papaxi was in the sign of the Spider.
Papaxi Spide
Aapek was in the sign of the Skull (retrograde).
Aapek Skul


Is there a way to get it to capture the entire word, and not just part of it? I admit I just looked up regex exclusions and it brought me to negative lookbehinds, so I might be doing something very wrong.

Basically, I want to be able to capture the planet (Sidiak, Eroee, etc) and the sign (Burning Censer, Skull, etc) and only capture those words regardless of the (retrograde) in the line itself.

Here's some more examples:

Sidiak was in the sign of the Burning Censer.
Eroee was in the sign of the Skull (retrograde).
Calixa2012-08-06 10:24:07

^(\\w+) was in the sign of the (.+) ?(retrograde)?\\.$


Tested with http://regexpal.com/ and matches both examples given. matches should hold the planet, and matches the sign. I think retrograde (without the brackets, I believe) will be in matches so you can use that in the script if somehow needed.
Unknown2012-08-06 15:11:37
Jello:

Anyone know what the r,g,b color parameters are of the dark green text in your health for when you have full or close to full health? I want to be able to match it exactly, it annoys me when it's a little bit off.


Use a color picker. You can find them all over the place for use in helping you do just that, match an rgb value to something (often in a picture, or something like that). I believe photoshop comes with one (I would be very surprised if it lacked such a feature) and I'm almost dead certain the GIMP has it. Worst case, take a screenshot of the screen the text up, zoom in, color pick, and you've got your values.
Enyalida2012-08-06 19:06:45
Escape the parenthesis with slashes.

^(\\w+) was in the sign of the (.+) ?\\(retrograde\\)?



Though matching more than you want is usually not a problem!
Kelly2012-08-06 19:14:44
I think this is what you want...?
^(\\w+) was in the sign of the (.+)\\b(?:\\s\\(retrograde\\))?.$
Unknown2012-08-06 19:19:03
Yep, that works, thanks.
Unknown2012-08-08 18:25:34
How do I capture a multiline trigger in order to store its information?



On that date:
Sun was in the sign of the Dragon.
Moon was in the sign of the Glacier.
Eroee was in the sign of the Antlers.
Sidiak was in the sign of the Volcano.
Tarox was in the sign of the Glacier.
Papaxi was in the sign of the Dolphin.
Aapek was in the sign of the Bumblebee.


I want to be able to capture and store each planet and sign to keys and values in a table... is this possible?
Unknown2012-08-08 18:49:01
I used demonniac's great astrology tracker and tweaked the display. That uses a gate to capture nativities. Get a copy of that, he's kindly provided it for free on the forums, and pick it apart to find how it works or plug your code to use his tables.
Calixa2012-08-08 20:49:58
Myrkr, grab the regexp that Kelly provided some posts up. Then simple put this in the trigger to create and fill a table with key / value pairs. Skip the first line if you table is already defined elsewhere, of couse.


astrology = astrology or {}
astrology] = matches
Unknown2012-08-08 20:57:03
Calixa:

Myrkr, grab the regexp that Kelly provided some posts up. Then simple put this in the trigger to create and fill a table with key / value pairs. Skip the first line if you table is already defined elsewhere, of couse.


astrology = astrology or {}
astrology] = matches



Thanks, gonna work with this. Very appreciated!
Theomar2012-08-09 05:38:29
Where can I find the newest version for Mac OSX? I'm running rc7 right now.
Unknown2012-08-09 05:58:43
Yeah, there's an rc8 located here.
Unknown2012-08-12 06:04:21
Is there a way to have the mapper attempt to go to a room by name, or display a path to that room based on the room's name?

I ask because the ability to click on room links and travel to them in the version of the mapper I have seems to be broken. When I click on a blue room name link I get the following error:

Lua error::1: ')' expected near 'markets'
Unknown2012-08-12 06:05:19
Jello:

Is there a way to have the mapper attempt to go to a room by name, or display a path to that room based on the room's name?

I ask because the ability to click on room links and travel to them in the version of the mapper I have seems to be broken. When I click on a blue room name link I get the following error:

Lua error::1: ')' expected near 'markets'



rf (name of room)

Instead of clicking...

goto (roomnumber)
Unknown2012-08-12 06:13:40
That displays the room numbers but I would like to have a trigger that actually starts auto-walking to the first room number.
Calixa2012-08-12 10:56:21
When I do rf, it gives the room number as a link, which if clicked starts the autowalking. Also, typing goto starts autowalk. I saw in the GUI thread you are not on the latest version of Mudlet, so consider updating, test4 is the more current one for windows. Also make sure to have the latest version of the IRE mapping script: http://wiki.mudlet.org/w/IRE_mapping_script
Unknown2012-08-19 05:20:26
I'm not sure how/why this happened, but after I turned off transparency with windows Aero in windows 7, the next in my miniconsoles no longer has anti-aliasing applied to it and looks all crinkly and dark. Anyone know a fix to this?
Unknown2012-08-19 07:42:31
Are you sure you did not do more than simply turn transparency off? Is it the case that you have no anti-aliasing at all in all of Windows? That's the only thing I can think of right now.
Unknown2012-08-20 09:49:42
My laptop is dying or something, transparency turned itself back on and now it's fine :lol: