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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
umdbandit
Wanderer


Joined: 31 Oct 2004
Posts: 94

PostPosted: Tue May 08, 2007 4:48 am   

multi like capture not working
 
#CLASS {RoomCapture}
#VAR Objects {} {}
#TRIGGER "ObjCap" {^*~([andeusw, ]~)$} {Objects=""}
#COND {} {#IF (%match( %line, "HP:%d EP:%d~>")) {
#STATE ObjCap 3
#SET ObjCap 3 1
} {Objects=%concat( @Objects, "|", %line)}} {looplines|param=30|prompt}
#COND {*} {
#STATE ObjCap 0
#ECHO Error in ObjCap: Exceeded 30 line capture limit.
}
#COND {} {#NOOP Further processing here.} {manual}
#CLASS 0


That is my Zmud multi line capture, for pulling out room contents (With the storage variable and class)..... I've tinkered around with it a lot, and it fires, but none of the conditions work. Works fine in Zmud, but I dont get anything in CMUD.. Thanks for the help, like always.
_________________
Rufus- Winner of Stuff
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Tue May 08, 2007 2:50 pm   
 
I'll take a look a this for you, but I'll need you post an example or two of the room text that this trigger is supposed to capture.

At first glance though, I would say it's because your second and fourth conditions don't actually say what they are matching.
_________________
Asati di tempari!
Reply with quote
umdbandit
Wanderer


Joined: 31 Oct 2004
Posts: 94

PostPosted: Tue May 08, 2007 6:24 pm   
 
worked after i rebooted, for whatever reason.

Wierdness :P
_________________
Rufus- Winner of Stuff
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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