Page 1 of 1

Can i get someone who uses MUSHclient to help?

Posted: Fri Jun 15, 2007 2:12 pm
by gsman
I'm trying to make a trigger so that when someone types
"ghost rres"
I will res them... I dont know how to get the name in a variable... How do i do that?

Posted: Sat Jun 16, 2007 11:35 pm
by Raolas
<triggers>
<trigger
enabled="y"
group="3rdPartyCommand"
keep_evaluating="y"
match="^(<cstplr>.*) ghosttalks (.*)ResPlz(.*)?"
regexp="y"
sequence="100"
>
<send>cast resurrect %cstplyr</send>
</trigger>
</triggers>

So, essentially this looks for a line matching:
(^ in regular expression shows starting of a line, $ is the end.)
^<any amount of anything1> ghosttalks (anything)ResPlz(anything)$
what the send does is casts resurrect (target)

the % calls a wildcard, what follows, before the space, is the name of the wildcard.

Posted: Sun Jun 17, 2007 12:05 am
by Chilliwack
wow, all that necessary for a trigger in mush? that's why it's fail :(

Posted: Sun Jun 17, 2007 1:57 am
by gsman
no... thats the copy/paste info for it... its MUCH simpler to write

Posted: Wed Jun 20, 2007 2:08 am
by Pintac
errmm..in mush..in the "trigger" box, put this * ghosttalks rrhes
Then, in the "send" box, put this cast resurrect %1
that should work..and is much simpler

Posted: Mon Jul 16, 2007 12:27 pm
by gsman
IT NO WORKY!
i tried a lot of stuff and i cant get it to wokr pintac

Posted: Mon Jul 30, 2007 2:58 am
by Raolas
for what i sent you, if you notice, in the mushclient trigger screen, theres a copy and a paste... copy everything i said inside:

<trigger>
</trigger>

and then go to mushclient and to the trigger section, then hit the paste button. it will work. but you might need to put < > around cstplyr
so its:
cast resurrect %<cstplyr>

but it should work without the < > around it... and i have it so they have to "ghosttalk ResPlz" to get it cast on them.

Posted: Sat Oct 20, 2007 12:57 pm
by gsman
i finally got one made anyway... somehow wihtout help, i had an :idea: