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?
Can i get someone who uses MUSHclient to help?
Moderators: Moderators, Caretakers, Imps
<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.)
the % calls a wildcard, what follows, before the space, is the name of the wildcard.
<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.)
what the send does is casts resurrect (target)^<any amount of anything1> ghosttalks (anything)ResPlz(anything)$
the % calls a wildcard, what follows, before the space, is the name of the wildcard.
- Chilliwack
- Tri-Avatar
- Posts: 705
- Joined: Tue Aug 02, 2005 4:46 am
- Main Char: Chilliwack
- Location: Ottawa, Ontario
- Contact:
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.
<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.