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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
donki1
Beginner


Joined: 02 Oct 2004
Posts: 12

PostPosted: 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
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: 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!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion 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