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
jon_stroble
Newbie


Joined: 08 Dec 2001
Posts: 3
Location: USA

PostPosted: Sat Dec 08, 2001 8:17 am   

multiple lines and triggers
 
Hello,
I am stumped by a problem I am having using triggers on my MUD. I think this is a very simple fix and I apologize in advance for what I am sure must be a repetition of a typical 'newbie' problem.

Basically, all I want to do is capture all 'tells' sent to me and display them in a dedicated 'tell' window. Also, I'd like the text of the tell to be highlighted, and a beep to occur.

So, I have this trigger:
tells*you: -> #hi;#cap tell;#gag;#beep

(I have included a wildcard between the words 'tells' and 'you' because it's possible to see: 'Dave tells Bob, Doug and you: hello, there'.)

Ok, this trigger works well, -except-: if the tell message is longer than one line, only the first line is captured properly. The remaining lines are displayed, unaltered, on my main playing window.

How can I get all the lines up to my tell window?

thanks,
Jon.
Reply with quote
Gryphon
Beginner


Joined: 13 Dec 2000
Posts: 15
Location: USA

PostPosted: Sun Dec 09, 2001 3:36 am   
 
use the capture command.
so make a trigger to respond to tells and then use #Cap (i think i havent scripted with zmud for a long time) to capture the line, see the help file for more info on capture.
Reply with quote
Acaila
Apprentice


Joined: 30 Aug 2001
Posts: 187
Location: Netherlands

PostPosted: Sun Dec 09, 2001 10:18 am   
 
Check out Rainchild's script here:

http://www.zuggsoft.com/forum/topic.asp?TOPIC_ID=3199&FORUM_ID=29&CAT_ID=5&Topic_Title=Rainchild%27s+TellWindow+%28TM%29&Forum_Title=Finished+MUD+Scripts

It has some useful features you can incorporate in your triggers and it solves the multiline problem.

Acaila
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