Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
SiberianPhoenix
Newbie


Joined: 04 Dec 2003
Posts: 6
Location: USA

PostPosted: Thu Dec 04, 2003 8:52 pm   

Newb to trigs
 
I was hoping that someone could help me by writing a simple trig for me...
here's what I want to have happen:
(another chars name) tells you: (whatever they say)
is what happens
what I'd like is for what they say to be displayed in a message window ala #message
for instance:

Indra tells you: Hi Silverbolt how are you today?

then a message window pops up with the message
Indra just told you: Hi Silverbolt how are you today?

The mud I'm on when your a mage you get a hell of a lot of spam in many different colors... it's often difficult to tell when someone sends you a tell so I thought a message window would help immensely
Thanks for any help
Reply with quote
Snookumz
Beginner


Joined: 19 Nov 2003
Posts: 13

PostPosted: Thu Dec 04, 2003 9:27 pm   
 
You're looking for the ECHO command.

I've never used it so not sure how to go about doing it.
Something like this

#ECHO %1 has just told you: %2

when Pattern = %1 tells you: %2

Not exactly sure. Might be wrong.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Thu Dec 04, 2003 9:41 pm   
 
#TR {(*) tells you(*)} {#MESS "%1 just told you%2"}
Reply with quote
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Thu Dec 04, 2003 9:41 pm   
 
#tr {tells you~:} {#cap Tells}
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Dec 05, 2003 12:50 am   
 
#MESSAGE disappears after 10 seconds, so if you need to refer back to that tell after it goes away you're pretty much screwed. Making a Tells window like Talahaski shows is probably your best bet.
Reply with quote
Snookumz
Beginner


Joined: 19 Nov 2003
Posts: 13

PostPosted: Fri Dec 05, 2003 2:14 am   
 
Ok I just found this trigger that records tells and puts them into a text file (like notepad) and also has a "View Recent Tells" part.

(this is all zMud 5.55)

1) open a file when you log in to record all tells:
#FILE 1 my-tells.txt

2) Trigger to record tells in a file and add them to a list.

Pattern:
&dude tells you: &message

Action:
#WRITE 1 {@dude tells you: @message}
lasttell={@dude told you: @message}
tellslist={@tellslist|@lasttell}
#AD maxtell 1

3) Macro to show your recent tells.

#LOO 1,@maxtell {#echo %item(@tellslist, %{i}) }
maxtell=1
tellslist=""
Reply with quote
Toetag
Magician


Joined: 10 Oct 2000
Posts: 356
Location: USA

PostPosted: Fri Dec 05, 2003 5:09 am   
 
another option:

Trigger pattern
^(%w) tells you: (*).

Command:
#WIN tells %1 tells you: %2

This opens up a new window called: tells. and displays the "tell" information. You can then get fancy and format the color of %1 and %2 so it looks real pretty.
Reply with quote
SiberianPhoenix
Newbie


Joined: 04 Dec 2003
Posts: 6
Location: USA

PostPosted: Sat Dec 06, 2003 10:59 pm   
 
thanks guys... wow didn't expect this many replies so fast... I'm beginning to like this forum
Reply with quote
SiberianPhoenix
Newbie


Joined: 04 Dec 2003
Posts: 6
Location: USA

PostPosted: Wed Dec 10, 2003 10:17 pm   
 
hey my friends wants to acclomplish the same thing... only he uses the free version of zmud... many things seem different to me and I can't seem to get it worknig for him...
I ended up using for mine:
#trigger %1 tells you %2
#message %1 has told you: %2

works great for me as I only need it to popup and tell me what happened.. ten seconds is fine for both of us
however I try the same thing on his version and it returns nothing
Reply with quote
Toetag
Magician


Joined: 10 Oct 2000
Posts: 356
Location: USA

PostPosted: Wed Dec 10, 2003 11:00 pm   
 
I don't have the Free version installed on my system as it wont run, but i've got a copy of the help file for it. There is no #MESSAGE command in the command reference of the help file.


Your best bet for him is to use the #WINDOW command instead.

#trigger %1 tells you %2
#WINDOW TELL %1 said: %2
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net