Targetting alias conflict in Mudlet

Post Reply
hruskka87
Posts: 1
Joined: Mon Oct 05, 2020 5:17 pm

Targetting alias conflict in Mudlet

Post by hruskka87 »

Hi guys, i hope im writing in the right session.
I just switched to Mudlet because of Catalina unable to run Wine anymore. So bye bye Zmud.

Anyway im having a hard time to set a simple targetting alias because of a conflict.

i have an alias for the spell DISINTIGRATE wich works like this:

Pattern: ^dis(.*)$

Command: send ("cast 'disintegrate' " .. matches [2])

now i have another alias for my spell DISPEL MAGIC wich has pattern ^disp(.*)$ and Command: send ("cast 'dispel magic' " .. matches [2])

the problem is, everytime i cast DISP, i automatically fire both DISP and DIS because somehow it reads and react to the same letters contained in the other word.

Now i know that changing the alias would be a problem-solver...but can you help me understand what am i supposed to do to solve this please?

breakone9r
Posts: 24
Joined: Sun Jul 26, 2020 1:39 am

Re: Targetting alias conflict in Mudlet

Post by breakone9r »

Code: Select all

^dis\b(\w+)?
and

Code: Select all

^disp\b(\w+)?
respectively.

Yours wants to see the p in disp as part of the match for the first one, and so the second one never gets seen.

However,

Code: Select all

\b
is "word boundary" which could be a space.. or just.. nothing beyond.

Post Reply