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


Joined: 11 May 2014
Posts: 9

PostPosted: Mon Jan 11, 2021 12:08 pm   

Capuring conversations
 
Hello,
I have a small issue that I can not solve, I am trying to capture different communications channel with different triggers, the problem is that it only captures the first line and omits the following lines
I think i can understand that it is related to the line wrapping but i am not able to solve it
Reply with quote
shalimar
GURU


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

PostPosted: Mon Jan 11, 2021 5:16 pm   
 
You can make a trigger state to capture subsequent lines.

Here is an XML example of one such trigger that I use:

Code:
<trigger priority="1" id="488">
  <pattern>^%w {tell|ask}{s|} %w{ |}:</pattern>
  <value>#CAP Tells</value>
  <trigger type="Within Lines" param="1">
    <pattern>^    %s    (*)</pattern>
    <value>#EXECWIN Tells {#SAYADD { %trim(%1)}}
#STATE 1</value>
  </trigger>
</trigger>


The spacing may not be the same on your game, so some editing is bound to be needed to make it work, but that is the basic concept.
_________________
Discord: Shalimarwildcat
Reply with quote
sonic306
Newbie


Joined: 11 May 2014
Posts: 9

PostPosted: Thu Feb 11, 2021 7:03 pm   
 
Thank you
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