 |
donki1 Beginner
Joined: 02 Oct 2004 Posts: 12
|
Posted: Wed Mar 15, 2006 9:00 am
manual multistate trigger, help pls |
What should this trigger do?
#TRIGGER "trigger" {a} {#set trigger 1} "" {manual}
#COND {b} {#say fire}
Offline mode -in my opinion - it should do nothing until i type "a", after that it display fire every time i type "b".
But this is what happens: it display fire every time when i type "a".
What do i do wrong? i use 7.20b |
|
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Wed Mar 15, 2006 3:17 pm |
I'm not too familiar with the #SET command but I am seeing the behaviour you suggested. I'm not sure if it's by design or a bug... but I think using #STATE should accomplish what you want. Try the following:
| Code: |
#TRIGGER "trigger" {a} {#ECHO a was matched}
#COND {b} {#say fire; #state "trigger" 1}
|
|
|
_________________ Asati di tempari! |
|
|
 |
|
|
|