Read only forum archive; join us on Discord for live discussions!

Can i get someone who uses MUSHclient to help?

Started by gsman on Jun 15, 2007 · 8 posts in thread

gsman (#1)

#1
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 (#2)

#2
<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.)
Quote:
^<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.

Chilliwack (#3)

#3
wow, all that necessary for a trigger in mush? that's why it's fail :(
Check it ouuuuut

gsman (#4)

#4
no... thats the copy/paste info for it... its MUCH simpler to write

Pintac (#5)

#5
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 (#6)

#6
IT NO WORKY!
i tried a lot of stuff and i cant get it to wokr pintac

Raolas (#7)

#7
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 (#8)

#8
i finally got one made anyway... somehow wihtout help, i had an :idea: