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


Joined: 18 Jan 2002
Posts: 3
Location: USA

PostPosted: Fri Jan 18, 2002 11:20 pm   

Multi-line captures to a seperate window.
 
Basically here's my problem..

I can capture single and double line "thoughts" to a seperate window, but anything past that it fails. Also when I do successfully capture the thought, it doesn't #GAG everything. The first example is what the thought looks like exactly in the mud (Gemstone3)

>
You hear the subdued thoughts of Andiago echo in your mind:
"selling 'an assassin's falchion' 5x somewhat damage weighted. 90/200.
3pounds. show dedicated with onar and black as a void. w/ matching assassin
gloves. 10m Think to Andiago!"
>
The successfull captures show as this in the main window

>
You hear the subdued thoughts of Jacinto echo in your mind:
>

Here is my script..


pattern is

You hear the subdued thoughts of (%w) echo in your mind:$("*")$

and the commands are this

#GAG
#SAY %1 "(%2)" %time(tt)
#CAPTURE Subdue
#GAG


I'm pretty new with all of this and appreciate the help..

Thanks
Josh
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Jan 19, 2002 12:47 am   
 
I think you would be better of using a few single line triggers:

#TR {You hear the subdued thoughts of (%w) echo in your mind:$} {#CAPTURE Subdue;#GAG;#SAY %1 "(%2)" %time(tt)};#TRIGGER CapLines {*} {#CAPTURE Subdue;#IF (%ends(%trigger,%char(34)) {#UNTRIGGER CapLines};#GAG};#GAG}}

This is all one trigger but it creates another one that grabs every line. That trigger then checks to see if the line that triggered it ends with a " if it does then it removes itself. This could also be done with C+ and GAGON but I forgot whether triggers will get fired before the auto gag or not. Please not I might be missing a { or }.
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