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
Zhiroc
Adept


Joined: 04 Feb 2005
Posts: 246

PostPosted: Tue Jun 05, 2007 12:14 am   

#state trigger ID not optional?
 
The zmud docs suggest that if you use #state 0 (note: no ID), then that trigger itself is set to that state. But that doesn't seem to work:
Code:
#TRIGGER {^foo} {}
#COND {^bar} {#state 0}
#COND {^byfar} {}

Doing #sh foo, followed by #sh bar, leaves the trigger at state 2, not 0.

Is this a bug, or is the doc wrong?


Last edited by Zhiroc on Tue Jun 05, 2007 12:33 am; edited 2 times in total
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Jun 05, 2007 12:32 am   
 
Seems like a bug, but it's pretty trivial to add an ID to the trigger. This is a problem in CMUD as well, though, so you might want to post about it in the CMUD beta forum as well so it gets added to the CMUD buglist.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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