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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
Xphere
Beginner


Joined: 08 Jun 2004
Posts: 26
Location: USA

PostPosted: Tue Jun 08, 2004 5:35 am   

Uhg! Advanced Triggers, help please.
 
Ok folks, its been a while since ive been a active mudder, thus my trigger skills are a lil shy, but i need some help in a bad way.

On the opening page of the help file on Trigger States it gives an example of a multiline capture trigger. Which is really close to what i need.

So basically im not making a trigger for a game. I making a trigger to automatically update large files. Basically i work in offline mode, send a file to the "mud" and let the triggers change the buffer that i inturn am capturing in a log file. and vwalla, Search and Replace, but you can do alot more.. BUT!!! heres my dilemma, it only worked once. It worked beautifully, and then i tried to add a lil too it, and it broke, of course, then i undid what i did, but it was still broken. gave it a good ol fashioned gotta love windows reboot, and STILL no work..

Now if you look at the example, it shows in the second state of the trigger a if statement like this:

-----------------------------
#COND "CaptureLines" {} {#IF ((%line =~ @EndLine)|(%concat(%line,"$")=@EndLine)) {#SET CaptureLines 3 1} {<"<">@LineCapCommand>}} {looplines|param=99|notrig|disable}
-----------------------------

The Syntax Checker, gives me a syntax error pointing to the "@" in "{#IF ((%line =~ @EndLine)"

But this is really frustrating because i got it to work once, and cant figure out why it doesnt work now.

I would post my trigger, but ive hacked it up so much, im just going to start over, so i'll post a new one if i get anywhere near the working one i did have.

but basically i need to do a search and replace on a file. where the replaced portion is x ammount of lines (changes per txt) between two patterns, preferably multi line patterns. It worked once by placing the patterns in a variable, but yeah, ive been staring at this too long. please can someone help me out.. or at least give me some outside thoughts thanks

-Xphere
Reply with quote
Darker
GURU


Joined: 24 Sep 2000
Posts: 1237
Location: USA

PostPosted: Tue Jun 08, 2004 6:38 pm   
 
Could you repost this in the General forum? This one's only for Finished Scripts. Thanks.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts 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