Dark Legacy MUD Forum


Multi User Fantasy Text Game
It is currently Fri Apr 26, 2024 10:45 pm

All times are UTC





Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Can i get someone who uses MUSHclient to help?
PostPosted: Fri Jun 15, 2007 2:12 pm 
Offline
Lowbie
 Profile

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


Top
 

 Post subject:
PostPosted: Sat Jun 16, 2007 11:35 pm 
Offline
Newbie
 Profile

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


Top
 

 Post subject:
PostPosted: Sun Jun 17, 2007 12:05 am 
Offline
Tri-Avatar
User avatar
 E-mail  WWW  Profile

Joined: Tue Aug 02, 2005 4:46 am
Posts: 705
Location: Ottawa, Ontario
wow, all that necessary for a trigger in mush? that's why it's fail :(

_________________
Check it ouuuuut


Top
 

 Post subject:
PostPosted: Sun Jun 17, 2007 1:57 am 
Offline
Lowbie
 Profile

Joined: Sun Jan 21, 2007 10:00 pm
Posts: 87
no... thats the copy/paste info for it... its MUCH simpler to write


Top
 

 Post subject:
PostPosted: Wed Jun 20, 2007 2:08 am 
Offline
Newbie
User avatar
 Profile

Joined: Mon Mar 05, 2007 5:17 pm
Posts: 18
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

_________________
http://world3.knightfight.co.uk/?ac=vid&vid=86122501


Top
 

 Post subject:
PostPosted: Mon Jul 16, 2007 12:27 pm 
Offline
Lowbie
 Profile

Joined: Sun Jan 21, 2007 10:00 pm
Posts: 87
IT NO WORKY!
i tried a lot of stuff and i cant get it to wokr pintac


Top
 

 Post subject:
PostPosted: Mon Jul 30, 2007 2:58 am 
Offline
Newbie
 Profile

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


Top
 

 Post subject:
PostPosted: Sat Oct 20, 2007 12:57 pm 
Offline
Lowbie
 Profile

Joined: Sun Jan 21, 2007 10:00 pm
Posts: 87
i finally got one made anyway... somehow wihtout help, i had an :idea:


Top
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC



Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group  
Design By Poker Bandits