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
gamblejay
Beginner


Joined: 13 Jun 2015
Posts: 11

PostPosted: Tue May 30, 2017 1:35 am   

Capturing Multiple Lines
 
Trying to do two different things with capture but somewhat similar. I first thing I need is for a guild list, and everything combined sounds complicated to me so not sure if its even possible.

There are blah blah members awake:
: Member
: Member

These lesser people are also awake:

So just using #capture by itself only captures the members awake: line, is it possible to have it capture all lines down to where is says These lesser people are also awake. Those names get sent to the capture window, but I need the capture to trigger every 20-30 seconds and when it is captured again the previous stuff sent to the window is cleared with the updated one. So essentially every 20 seconds the list is updated in that window so I can see who wakes up at all times.


The second one is much the same with tells, I get tells but the sentence is normally on the next line.

Someone tells you:
Greetings.

All my capture is once again doing is sending the Someone tells you: part.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3513
Location: Pensacola, FL, USA

PostPosted: Tue May 30, 2017 3:20 am   
 
You want a multi-state #TRIGGER:

#TRIGGER {there are * members awake} {#CAPTURE Who;#GAG}
#CONDITION {: (%w)} {#CAPTURE Who;#GAG;#STATE 1} {within|param=1}

Something like that should capture them all to a special window, and suppress it from the main window. It will likely be a lot of spam once you are checking every 20 seconds.

#ALARM "whoChecker" +20 {#CLR Who;whoCommand}

That clears the window at regular intervals and looks to recapture data.
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
Reply with quote
gamblejay
Beginner


Joined: 13 Jun 2015
Posts: 11

PostPosted: Tue May 30, 2017 5:03 am   
 
Thank you for all the help!
Reply with quote
gamblejay
Beginner


Joined: 13 Jun 2015
Posts: 11

PostPosted: Fri Jun 16, 2017 4:00 am   
 
Having an issue when one of the members uses a certain spell it changes the way they look on the list.


: (Member)
: Member



Whats happening is that the trigger will only record up to that name inside the (Member) and capture it to the window then the (Member) and names below will be put on my cmud main screen and is not getting captured. Its essentially splitting the list between the list window and mud.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3513
Location: Pensacola, FL, USA

PostPosted: Mon Jun 19, 2017 9:26 pm   
 
so change the (%w) to ([%w%p])
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
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