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
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Tue Jan 15, 2008 9:38 pm   

[2.18 Pro] Command Input triggers and the Trigger on Trigger option?
 
I'm having a bit of trouble here, and I vaguely recall that I asked this way, way back and can't find it now because of too many search results and too little time...

When I create a Command Input trigger using #ONINPUT, the Trigger on Trigger option is off by default. This means that my trigger fires when I enter a matching command on the command line, but it doesn't match text sent to the MUD from another trigger. It's caused some nasty loops in my code, and setting the Trigger on Trigger option makes it work the way I want and expect.

Two questions:
1. Is there a logical reason for this being the default setting or is this considered a bug and just still on the list to be fixed?
2. Assuming the former is the case, is there a way I can create a Command Input trigger through zScript code that doesn't disable the Trigger on Trigger option?

Thanks in advance for any advice or insights you may provide.


Edit:
I spoke too soon and/or lied. It doesn't fix my loop problem and seems that the Command Input trigger won't fire reliably when the text is sent from another trigger. So, short of making an alias to parse this instead, is there any way I can make this more reliable?
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Jan 22, 2008 5:32 pm   
 
How exactly is the text being sent from the other trigger? Are you using the #SEND command, or doing something else? Can you give me a sample set of triggers that will recreate this problem?
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Tue Jan 22, 2008 11:02 pm   
 
My settings are very complex, so it's hard for me to water it down and give examples. I also don't wish to post large chunks of my combat system on the forums.

I'm not using send. There is no "apply" alias that might get in the way of the command input trigger. I do use #EXEC, if that makes a difference?
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed Jan 23, 2008 1:09 am   
 
Try using #SEND to send text to the MUD if you can. That command specifically sends the text through the OnInput trigger system.
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