Can i get someone who uses MUSHclient to help?

This is the area for general chatting and discussion

Moderators: Moderators, Caretakers, Imps

Post Reply
gsman
Lowbie
Posts: 87
Joined: Sun Jan 21, 2007 10:00 pm

Can i get someone who uses MUSHclient to help?

Post 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?
Raolas
Newbie
Posts: 29
Joined: Fri Jun 01, 2007 1:16 pm

Post 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.
User avatar
Chilliwack
Tri-Avatar
Posts: 705
Joined: Tue Aug 02, 2005 4:46 am
Main Char: Chilliwack
Location: Ottawa, Ontario
Contact:

Post by Chilliwack »

wow, all that necessary for a trigger in mush? that's why it's fail :(
Check it ouuuuut
gsman
Lowbie
Posts: 87
Joined: Sun Jan 21, 2007 10:00 pm

Post by gsman »

no... thats the copy/paste info for it... its MUCH simpler to write
User avatar
Pintac
Newbie
Posts: 18
Joined: Mon Mar 05, 2007 5:17 pm
Main Char: Garrig

Post 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
gsman
Lowbie
Posts: 87
Joined: Sun Jan 21, 2007 10:00 pm

Post by gsman »

IT NO WORKY!
i tried a lot of stuff and i cant get it to wokr pintac
Raolas
Newbie
Posts: 29
Joined: Fri Jun 01, 2007 1:16 pm

Post 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.
gsman
Lowbie
Posts: 87
Joined: Sun Jan 21, 2007 10:00 pm

Post by gsman »

i finally got one made anyway... somehow wihtout help, i had an :idea:
Post Reply