eeek, looped trigger

by Unknown

Back to Mechanic's Corner.

Unknown2005-03-02 02:03:34
Ok! I've somehow annihilated Zugg's creation. I created a trigger such as:
Pattern: &harvestable
Action: %ansi( high,red)@harvestable

and it sets off an infinite loop blink.gif rather than a ZMUD error etc. And whenever a trigger updates (this one now does it constantly) you can't typ ein anything or close a window when it happens this fast at least. So Zmud becomes unfixable. So I had to close it in a task manager, so I figured I'd reopen it and throw in a quick #IG, but even before it sees the pattern it goes c'ah'razy. What's the dealio?
Unknown2005-03-02 02:08:27
Crap like this is the reason I stopped using Zmud, even though I'd liscensed it. Wasted money IMHO. I still love Zugg's mapping program though. Zmapper is nice.

I'm not sure how to solve you problem. When similar things happened to me I had to nuke portions of my system. You might have some good luck on the offical Zugg forums, lots of gurus there.
Singollo2005-03-02 02:40:10
QUOTE(SugarAndTheSun @ Mar 1 2005, 10:03 PM)
Ok! I've somehow annihilated Zugg's creation. I created a trigger such as:
Pattern: &harvestable
Action: %ansi( high,red)@harvestable

and it sets off an infinite loop  blink.gif rather than a ZMUD error etc. And whenever a trigger updates (this one now does it constantly) you can't typ ein anything or close a window when it happens this fast at least. So Zmud becomes unfixable. So I had to close it in a task manager, so I figured I'd reopen it and throw in a quick #IG, but even before it sees the pattern it goes c'ah'razy. What's the dealio?
63635



Don't understand what you're trying to do here

I can tell you what it is doing:

It's attempting to take every word and store it into @harvestable

Then it basically sends back the word/number @harvestable to Lusternia.

This can cause all sorts of loops since any word or number matches the pattern, and if you have pattern matching on commands enabled your commands match as well.
Terenas2005-03-02 02:47:21
Yeah, I really don't understand what you're trying to do as well. Are you trying to capture the number of plants that you are able to or want to harvest in a room, then store it into a variable so you can harvest them, or what? That trigger makes no sense as to what it is you're trying to accomplish.
Summer2005-03-02 02:56:56
Looks like a highlight to me. But dunno.
Unknown2005-03-02 02:57:20
Never make two classes with the same name in different locations. Zmud will let you save it and next time you open it all will screw up and you're done. Also, keep backups of your system.

And this post is totally unrelated to the topic.
Terenas2005-03-02 02:58:52
QUOTE(Summer @ Mar 2 2005, 02:56 AM)
Looks like a highlight to me. But dunno.
63719



Pattern: A sprig of chervil lies here.
Action: #co white

That's a highlight.

But in this one-

QUOTE
Pattern: &harvestable
Action: %ansi( high,red)@harvestable


I'm guessing what he wanted to do was #show %ansi( high,red)@harvestable.
Summer2005-03-02 03:10:26
Oh well, got fooled by the (high, red), since my client does /highlight {red, bold} {thing to highlight}
Unknown2005-03-02 13:02:45
I'd recommend trying to fix your settings by opening your character profile in Offline mode and editing it that way. No text coming in means no errant triggers firing. It's always a good idea to test your triggers offline using commands like #SHOW and #SHOWPROMPT, if you're unsure of whether it will work or cause a crash like this.

zMUD 7.05 should have detected a trigger infinite loop and given you the option to disable triggers. Maybe you're using an older version or maybe it's just the nature of this particular trigger that caused it to goof up and not get detected.

What you might have been trying to do, is add the herbs to a list variable and then expand that to highlight any herb names you see (just a guess):

CODE
#VAR HerbNames {calamus|chervil|galingale|reishi}
#TRIGGER {{@HerbNames}} {#CW white,blue}
Richter2005-03-02 23:45:00
For those of you that kill puppetmasters, do this:

#TRIGGER {brain} {take brain}

I did that. Twice. Idiot.
Unknown2005-03-03 02:19:42
QUOTE(Zarquan @ Mar 2 2005, 07:02 AM)
I'd recommend trying to fix your settings by opening your character profile in Offline mode and editing it that way. No text coming in means no errant triggers firing. It's always a good idea to test your triggers offline using commands like #SHOW and #SHOWPROMPT, if you're unsure of whether it will work or cause a crash like this.

zMUD 7.05 should have detected a trigger infinite loop and given you the option to disable triggers. Maybe you're using an older version or maybe it's just the nature of this particular trigger that caused it to goof up and not get detected.



I have 7.05, completely legal. I'm not sure why it did it. I'm trying to make it to where every single herb shows up as bright red, rather than making a trigger for each herb. Zarquan has the idea! Yay, thanks so much

EDIT: For whatever reason, Zarquan's script didn't quite do the job, here's my end result:
#trig {{flax|arnica|chervil|weed|yarrow|galingale|sargassum|reishi|sage|marjoram|colewort|rosehips|kombu|myrtle}} {#cw bold,blue}

I can't for th elife of me figure out how to run a pattern off a variable, it looks to me like your his method should work, yet it don't. Any advice?
Drago2005-03-03 02:42:04
#trig {{flax|arnica|chervil|weed|yarrow|galingale|sargassum|reishi|sage|marjoram|cole
wort|rosehips|kombu|myrtle}} {#cw bold,blue}

had an extra { at the begining
Unknown2005-03-03 02:44:39
sorry about that, when I went to add in the #trig { from the copy and paste from the trigger window I did that. I fixed the post
Drago2005-03-03 02:49:55
Ok, for me, when I copied/pasted zarquan's suggestion, it stripped the extra { } you need around the variable name.

It might do the same thing for you, just go in and manually add them in I suppose.
Daganev2005-03-03 03:22:04
Yes anytime you get infintie loops don't log back on... open up zmud without connecting. If it autoconects, disconnect your internet first.

Also, anytime someone sends yo ua system. All too often people sneak in a trigger like
Transver 1 credit to daganev for 0 gold and then trigger thta untill you have no more credits.

Its evil, and check your systems off line first and do searches for nasty things like that.