|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: 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. |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: 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 |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: 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 |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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. |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: 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 |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: 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 |
|
|
|
NO Xplode Newbie
Joined: 03 Dec 2007 Posts: 4
|
Posted: Thu Dec 06, 2007 12:26 am |
have you tried using "", instead of {}
|
|
|
|
|
|