Search found 107 matches

by Zaphob
Wed Oct 22, 2014 3:16 pm
Forum: Help Forum
Topic: Newbie Multi-Line Trigger
Replies: 9
Views: 2639

Re: Newbie Multi-Line Trigger

Thanks Jor'Mox. Here is yet another explanation I received: because matching only goes in one direction (from left to right), you need to distinguish match start and match end, and you can only control greedyness of the end the start is always as early (greedy) as possible I am getting a better feel...
by Zaphob
Wed Oct 22, 2014 11:35 am
Forum: Help Forum
Topic: Newbie Multi-Line Trigger
Replies: 9
Views: 2639

Re: Newbie Multi-Line Trigger

Still not sure, why it was so greedy, but the following more specific pattern works as expected:
Code: [show] | [select all] lua
weapon, damagetype = string.match(text, "%. ([^%.]-) macht folgenden Schaden: ([^%.]-)%.")
display(weapon)
"Ein Bienenstachel"
by Zaphob
Mon Oct 20, 2014 9:59 pm
Forum: Help Forum
Topic: Newbie Multi-Line Trigger
Replies: 9
Views: 2639

Re: Newbie Multi-Line Trigger

Unfortunately, the line breaks are completely random aka when the line is full. Depending on length of names, etc, this can be at different places. So I will go the string.match way and see where it takes me. Then again, pattern matching doesn't offer the exact functionality I try to recreate, some ...
by Zaphob
Sun Oct 19, 2014 8:19 pm
Forum: Help Forum
Topic: Help a noob coder out, please!
Replies: 2
Views: 888

Re: Help a noob coder out, please!

Welcome Ishin, maybe let the noob read this: http://sscce.org/
by Zaphob
Thu Oct 09, 2014 11:07 pm
Forum: Help Forum
Topic: Newbie Multi-Line Trigger
Replies: 9
Views: 2639

Re: Newbie Multi-Line Trigger

you reach the end, where you reset your check variable and do whatever you need to do once you have all the info you want. I solved some simpler patterns, but still struggle with the more complex regex. Here is another example: (Er|Sie|Es) ist gegen (schneidenden Schaden|stechenden Schaden|reissend...
by Zaphob
Thu Oct 09, 2014 12:42 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: Run Lua code from the command line
Replies: 14
Views: 23442

Re: Run Lua code from the command line

So, I love this module ever since I found it back a few years ago. And now it seems, Mudlet 3.0 comes bundled with it already! My question now: How do you expect the script packages to manage? I would like to include "run lua" for all users 2.1, who don't have it already installed themselves. Of cou...
by Zaphob
Thu Oct 09, 2014 9:19 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: Display Raw Packets for what is sent from the Server
Replies: 3
Views: 1713

Re: Display Raw Packets for what is sent from the Server

Have you tried opening your Debug Console? This is how I can see my GMCP transmissions (Not the contents, but which parts were updated), maybe it's similar for MXP?
by Zaphob
Tue Oct 07, 2014 9:34 am
Forum: Scripts & Packages
Topic: NumPad Movement
Replies: 3
Views: 4507

Re: NumPad Movement

Thanks guys, this seems interesting! I found it through the wiki: http://wiki.mudlet.org/w/Keybindings Is there any way to understand which keyCode / keyModifier relates to which button on Keyboard? Following is the Lua code again for your comparison. <KeyPackage> <KeyGroup isActive="yes" isFolder="...
by Zaphob
Sat Oct 04, 2014 11:14 pm
Forum: Help Forum
Topic: Newbie Multi-Line Trigger
Replies: 9
Views: 2639

Re: Newbie Multi-Line Trigger

Thanks Jor'Mox, this was very helpful indeed. So here is what I did: create a new trigger, which would be triggered by the first line of the text block to be captured. set "fire length" to 1 in trigger GUI put your code in the trigger There was only one problem, I had to remove your "not" from the l...
by Zaphob
Sat Oct 04, 2014 4:58 pm
Forum: Help Forum
Topic: Newbie Multi-Line Trigger
Replies: 9
Views: 2639

Newbie Multi-Line Trigger

I tried around for some time, I read the manual on Trigger chains and filters, but still can't seem to capture anything past the first line. I have some output like: Ein Schmetterling ist absolut fit und ist damit absolut, unglaublich schwaecher als Du. Er kaempft mit seinen Fluegeln. Er macht damit...