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
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Wed Dec 05, 2007 2:47 am   

#UNTRIG question...
 
How would I #UNTRIG this:
Code:

#TRIGGER {magical stone%s80} {save}


I tried:
Code:

#UNTRIG {magical stone%s80}


As the help files for zMUD imply is proper, but it didn't work.
Reply with quote
Tech
GURU


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

PostPosted: Wed Dec 05, 2007 3:08 am   
 
It worked fine for me.

I notice from your code pattern that you have a blank line before the command, so make sure the code is on a line by itself.
_________________
Asati di tempari!
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Wed Dec 05, 2007 3:44 am   
 
Habit from another forum to put all bbcode tags on a line before themselves ;)
So, now, why wont this work for me? Using zMUD 7.21 and it doesn't untrig it.
Or can't it be untrigged from within the trigger?

My actual trigger is this:
Code:
#TRIGGER {magical stone%s80} {#ECHO Test Trigger Fired;#UNTRIG {magical stone%s80}}
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Wed Dec 05, 2007 3:55 am   
 
Scratch that, even using #UNTRIG from command line it doesn't delete it.
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Dec 05, 2007 4:00 am   
 
With the various #UNwhatever commands, you have to be in the default class for it to do anything. Try using #CLASS classname, where classname = 0 for root class.
_________________
EDIT: I didn't like my old signature
Reply with quote
Tech
GURU


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

PostPosted: Wed Dec 05, 2007 4:55 am   
 
By the way, if your really looking to do trigger that goes away after it's been fired, you may want to look into #TEMP instead.
_________________
Asati di tempari!
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Wed Dec 05, 2007 5:30 am   
 
Heh, we already had a big discussion about #temp in another thread that's lead him to use #untrig instead.

You could try giving the triggers IDs and then using untrig with the ID instead. It's easier on the fingers, too.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Wed Dec 05, 2007 11:37 am   
 
Except that zMUD's #UNTRIG doesn't work off that ID, at least not that is documented in help files, like CMUD's does. ;)
I'll do the class editing, thanks.
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Wed Dec 05, 2007 11:56 am   
 
Well, having it:

Code:
#TRIGGER {magical stone%s80} {#ECHO Test Trigger Fired;#CLASS autoprac;#UNTRIG {magical stone%s80};#CLASS 0$}


Does not work either, however moving it to the root class does. What a severe limitation. But oh well, whatever works.
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
Reply with quote
NO Xplode
Newbie


Joined: 03 Dec 2007
Posts: 4

PostPosted: Thu Dec 06, 2007 12:26 am   
 
have you tried using "", instead of {}
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