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
Rappy
Wanderer


Joined: 15 Jul 2005
Posts: 96

PostPosted: Wed May 14, 2008 12:13 am   

multi-line capture
 
I hate asking this because I am sure it's been answered before (tried searching for it, but nothing was quite how I was needing it done.)

This was posted here years ago when zMUD was using elicense (not sure when that was, but an older version no doubt) and this script sort-of worked, now it gives an infinite loop.

Code:

#CLASS {Quest note}
#TRIGGER {read note$} {#VARIABLE endline "        - Dahnigal"}
#COND {} {#IF ((%line =~ @EndLine)|(%concat(%line,"$")=@EndLine)) {#SET CaptureLines 3 1} {<"<">@LineCapCommand>}
} {looplines|param=5}
#CLASS 0


The output from the MUD is always the same beginning and end.

Gallant [character name],
A most heinous criminal, a wretched prisoner, has escaped from the dungeon!
Since the escape, he has murdered 20 civilians! The penalty for this crime
is death and *you* are to deliver the sentence!
Seek him out somewhere in the vicinity of A Cell. This is in the general
area of The Dungeon.
- [questmaster name]

The bolded items I would like variabled as well if that is possible... 1) target 2) room name 3) area name

I was wanting to multi-line capture because the line breaks makes it impossible to always variable the three above, not knowing where the break is going to be. If approaching this from a different angle is easier, by all means, run it by me.

Any help with this would be appreciated.

BTW. I am using zMUD 7.21 on XP.

-Rappy
_________________
Windows 11 Pro,
cMUD 3.34
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