Gatekeeper Beginner
Joined: 22 Jul 2002 Posts: 15 Location: USA
|
Posted: Sat May 31, 2003 3:23 am
#ONINPUT and #COND {reparse} |
The following trigger doesn't completely work:
#ONINPUT {^Test (%d) (*)} {#GAG;#show %2}
#COND {Test 1} {#ECHO Cond 1 Works!} {reparse}
The first part goes off fine, but the conditional doesn't work when something like "Test 1 Yay" is entered. However, after changing the second line to:
#COND {*} {#ECHO Cond 1 Works!} {reparse}
The trigger state fired, sending the command "Test 1 Yay" to the mud ungagged and then Echoing "Cond one Works!" like it should have. Changing the trigger in the #cond line around to be a universal wildcard was the only way I could get it to work.
I see that there's been notes on similar topics to this before on the beta board, but I couldn't find any with solutions posted. Is there a way to do this that would allow using conditionals in #oninput triggers? I'd rather avoid splitting it up into multiple parts or including 12 if checks, if at all possible. |
|