 |
godzilla1 Beginner
Joined: 14 Jul 2005 Posts: 22 Location: Budapest
|
Posted: Wed Jul 27, 2005 6:23 pm
trigger |
I would like to check if there are 2 consecutive lines with similar patterns between 2 prompts.
Similar now means * {@variable} * .
I tryed 2 way:
I made a trigger with (*) pattern, and in the trigger value i analyzed the line patterns. It worked well, except mud became slow (on a fast machine!).
My second way: i made two triggers, my first pattern is * {@variable} *, in the value:
...#t- firsttrigger;#t+ second trigger...
my second trigger is (*) pattern, and in the trigger value i analyze one line, then #t- secondtrigger;#t+ firsttrigger
I guess this should be faster, but my problem is the next:
When i test the triggers by enter a "xyz @variable xyz" type message,
first trigger fires, turn in second trigger, AND the second trigger fires TOO on the SAME line.
What should i do? |
|
|
 |
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
Posted: Wed Jul 27, 2005 7:24 pm |
Learn about multistate triggers. Specifically within lines type condition. {Within|Param=1}
http://www.zuggsoft.com/page.php?file=library/trigadv.htm
Would like to help more, but your examples are exceedingly vague. If you want more help, please provide more information. Are the *s and xyzs known values? Is/are the value(s) of @variable known, or do you wish to create a variable for every line which rolls over all lines constantly? |
|
|
 |
godzilla1 Beginner
Joined: 14 Jul 2005 Posts: 22 Location: Budapest
|
Posted: Wed Jul 27, 2005 8:04 pm |
The * is wildchar, the @variable is a stringlist.
And yes, multistate trigger helped me, although i would not need a day for a trigger like this, if someone wrote good help files! |
|
|
 |
nexela Wizard

Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
|
|
 |
godzilla1 Beginner
Joined: 14 Jul 2005 Posts: 22 Location: Budapest
|
Posted: Thu Jul 28, 2005 6:56 am |
But i cant open that link (from helpfile) because ffJmpWeb.dll file missing.
What is that file? How can i get it? From where? |
|
|
 |
godzilla1 Beginner
Joined: 14 Jul 2005 Posts: 22 Location: Budapest
|
Posted: Thu Jul 28, 2005 7:28 am |
Let me ask another question.
I basically want count the battle rounds for various reasons.
Easiest way to do this, if look for 2 consecutive melee attack lines between 2 prompt line, then start again.
Attack line looks like * hits/shoots/cleaves/massacres and so on *
If he has a weapon with special ability and it fires, or he hit somebody with fire/ice/lightning... shield, then you get a new line with message, what you can gag, and check next line for melee attack. Because this
the {within|param=1} doesnt work.
I made the next multistate trigger:
state0:
* {@roundattackform} *
val: if there were 2 consecutive lines alredy (@rounds=2) then nothing (#state 0), if werent then rounds=1 and let state1 begin.
Also make a temporal trigger what fires on prompt line. (temporal trigger set #state 0, and check a few things)
State1:(*)
If %1 = any shield or special message, then #state 1 again,
if %1 = melee attack then round=2, #state 0
else round=0, #state 0.
----------------------------------------------
I dont want multiple temp triggers, so i start my state0 trigger with removing the temptrigger.
I get a system message, what is very annoying, because it spams the hell out of my screen in a big fight.
View/preferences/general/script parser, unchecked echo messages.
Now i dont recieve the spam, but when i use my aliases like #SHOWDB %1 , zmud dont display it.
How should i handle this? |
|
|
 |
Vitae Enchanter

Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Thu Jul 28, 2005 1:58 pm |
godzilla1 wrote: |
But i cant open that link (from helpfile) because ffJmpWeb.dll file missing.
What is that file? How can i get it? From where? |
I've run into that before myself. Damned if i know what it means. |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Thu Jul 28, 2005 10:17 pm |
It has to do the help file creation process. I got this solved for the next version of the help. I switched it around so that the help file actually tells zMud to issue the #URL command. Essentially the help becomes capable of being a plugin for zMud.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
nexela Wizard

Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Thu Jul 28, 2005 10:30 pm |
Quote: |
But i cant open that link (from helpfile) because ffJmpWeb.dll file missing.
What is that file? How can i get it? From where? |
The link is in my Post! and your not limited to {withing|param=1} There are many choices you could do!, and you shouldnt need a temp var either. |
|
|
 |
Vitae Enchanter

Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Fri Apr 27, 2007 3:11 pm |
Vijilante wrote: |
It has to do the help file creation process. I got this solved for the next version of the help. I switched it around so that the help file actually tells zMud to issue the #URL command. Essentially the help becomes capable of being a plugin for zMud. |
Reviving OLD topic, sorry....
What "next version of help"? using zmud 7.21. Is there another help file somewhere else? Or better yet, did anyone actually get their hands on ffJmpWeb.dll so that if I run into this with any other help files?...
Again, sorry for the revive.. |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Fri Apr 27, 2007 7:33 pm |
Wow, blast from the past. I am pretty sure I passed those particular changes along to Zugg a long time ago, so those links should be working. I just never got to really making use of the plugin API for some of the other stuff I was contemplating.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
Vitae Enchanter

Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Fri Apr 27, 2007 7:43 pm |
Dunno :(
Is the latest hlp file located on here somewhere? Thought I remembered a mention once before that they were. |
|
|
 |
|
|