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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Mon Dec 28, 2009 1:52 pm   

[3.12] Multistate trigger bug?
 
I have a problem that needs an immediate fix. I have a multistate trigger where the second line can be a prompt. However, if you check the option to Trigger on prompt for the Within lines 1 state it fires even if it is two lines after.

This is line one.
This is another line.
This is line two. fired

This should not happen should it?

Trigger code:
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <trigger priority="10" regex="true" copy="yes">
    <pattern>^This is line one\.$</pattern>
    <trigger type="Within Lines" param="1" regex="true" newline="false" prompt="true">
      <pattern>^This is line two\.</pattern>
      <value>#print "fired"</value>
    </trigger>
  </trigger>
</cmud>


The problem is if the prompt line follows the line immediately then I need to reset something. Except now it is reseting even if it doesn't, which totally messes up everything. Sad
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Tue Dec 29, 2009 4:14 am   
 
Never mind. Apparently you have to check the option for both Trigger on New Line AND Trigger on Prompt for it to work correctly.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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