 |
Larkin Wizard

Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: 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? |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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?
|
|
|
 |
Larkin Wizard

Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: 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? |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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.
|
|
|
 |
|
|