Targeting alias

Excelsi
Posts: 10
Joined: Thu Dec 24, 2009 3:09 pm

Targeting alias

Post by Excelsi »

I'm perfectly capable of doing this in other clients but I'm drawing a blank here. If I can get this done I'll be able to build from there.

This is what I've tried:

Code: Select all

^z (.*)$
target = matches[2]

Code: Select all

^x$
send ("play minorsecond"  .. target)
Either alias simply sends "z monster" to the MUD, which is a tell to someone who's name begins with Z.

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Targeting alias

Post by Vadi »

Try making sure that your alias (and the group(s) its in) are actually activated. (next version will auto-activate new items).

also:

Code: Select all

send ("play minorsecond "  .. target)

Excelsi
Posts: 10
Joined: Thu Dec 24, 2009 3:09 pm

Re: Targeting alias

Post by Excelsi »

Still nothing. Everything is active, emergency stop is not on...very odd.

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Targeting alias

Post by Vadi »

Post a screenshot please. Maybe it's something else we're missing out.

Excelsi
Posts: 10
Joined: Thu Dec 24, 2009 3:09 pm

Re: Targeting alias

Post by Excelsi »

Ignore the keyboard, my print screen key doesn't work.

http://yfrog.com/0dmudltarj
http://yfrog.com/2rmudltar2rj

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Targeting alias

Post by Vadi »

That seems ok... click on the folder the aliases are in, press the export button, and attach here. i'll try it on mine

Excelsi
Posts: 10
Joined: Thu Dec 24, 2009 3:09 pm

Re: Targeting alias

Post by Excelsi »

Done. I installed the mantis system and those aliases expanded fine, but they didn't involve variables.
Attachments
targexc.xml.xml
(877 Bytes) Downloaded 437 times

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Targeting alias

Post by Heiko »

Your target setting regex pattern doesnt match.
Use ^z (.*) instead.

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Targeting alias

Post by Vadi »

Either that or

Code: Select all

^z (\w+)$
Will. Not sure why (.*)$ isn't happy though

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Targeting alias

Post by Heiko »

^z (.*)$" *would* work nicely, *IF* he used that, but uses "^z (.*)$\s" which will never match in Mudlet.
That's why I told him to use the debug console in the future 8-)

Post Reply