|
coldlamper Beginner
Joined: 10 Sep 2002 Posts: 13
|
Posted: Sun Aug 29, 2004 1:15 am
Triggers not working |
Are there any know problems with triggers not working? I would say over 95% of the time they work but every once in a while a trigger just wont work? And I can not figure out why? Anyone else have this problem?
|
|
|
|
Dumas Enchanter
Joined: 11 Feb 2003 Posts: 511 Location: USA
|
Posted: Sun Aug 29, 2004 1:23 am |
Typically, problems like this end up being either slight problems with the pattern, or the settings of the trigger(ie prompt/newline, etc).
|
|
|
|
Orang Apprentice
Joined: 22 Jul 2004 Posts: 118 Location: USA
|
Posted: Sun Aug 29, 2004 2:17 am |
well if it gets messed up, (like sometimes you type in something at the right second and it screws up the triggered text. ie, i have a trigger for '^A harmonic sphere around you collapses with a wooden thunk.$' and if i type 'l' or 'status' or something just in time, then it gets mixed in with that and it wont trigger
|
|
|
|
coldlamper Beginner
Joined: 10 Sep 2002 Posts: 13
|
Posted: Mon Aug 30, 2004 4:10 pm |
What can I do to combat this problem? Any ideas?
|
|
|
|
Falan Wanderer
Joined: 17 Aug 2004 Posts: 98 Location: OK, USA
|
Posted: Tue Aug 31, 2004 5:19 am |
It may be the order of your triggers in your settings. I have a few #GAG triggers that occassionally don't fire. Since they work about 95% of the time, I figure it's most likely due to where they're stacked. They aren't necessities, so I don't worry about the 5%. If your 5% miss/non firing triggers are important then check where they're stacked in your settings to see if there's a higher listed trigger causing a conflict.
|
|
_________________ zMUD 7.05a |
|
|
|
Morgoth Beginner
Joined: 07 Apr 2004 Posts: 12 Location: Israel
|
Posted: Tue Aug 31, 2004 7:10 pm |
Well, if you have other things at the end/start of your pattern, just don't anchor it (^,$).
|
|
|
|
coldlamper Beginner
Joined: 10 Sep 2002 Posts: 13
|
Posted: Wed Sep 01, 2004 11:04 pm |
Well nothing else is firing on the text and it looks exactly like the text that fired before.
It's hard to troubleshoot because I cannot reproduce it all the time. |
|
|
|
Falan Wanderer
Joined: 17 Aug 2004 Posts: 98 Location: OK, USA
|
Posted: Thu Sep 02, 2004 3:24 am |
How about an example.
|
|
_________________ zMUD 7.05a |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Thu Sep 02, 2004 11:53 am |
Ok I THINK I know what he is talking about and it can be hard to reproduce. I also don't think its way to much to worry about because after all in about 400+ lines of text it might happen once.
I have a prompt trigger for my prompt {nocr|prompt} options that Psubs my prompt and rarley I will notice that it didn't trigger this usually happens when recieving multiple prompts really fast *IE* spamming a carriage return to get multiple prompts. I (without having a clue) think the problem lies in the data that zmud recieves/sends as an example instead of getting:
incomdata1[
its getting this
incomdata1[croutdata1 // or vise versa somesuch and confusing it as one line
Maybe its something Zugg can fix maybe something not but either way I don't see the less then 5% failing worth worrying too much about |
|
|
|
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
Posted: Thu Sep 02, 2004 2:37 pm |
I have seen this occur as well. Usually it's when many triggers are firing rapidly. Most triggers work %100 of the time, but background triggers that are always on, ie. colorization, auto-emotes will sometimes miss a line or two and lag usually seems to make them miss more often, but not always.
Although I don't know why this happens, I'd suggest ordering your triggers so that the most crucial ones like for PK battles are highest on the priority list, like Falan suggested.
The last time I noticed this happen was with this script:
EXAMPLE:
Code: |
#ALIAS getnosave {
Count_Item=%-1
#IF (%ends( @Count_Item, "s")) {count @{Count_Item}es} {count @{Count_Item}s}
#T+ Sort_save
}
#VARIABLE Count_Item {} {}
#VARIABLE check_num {} {}
#TRIGGER "Sort_save" {^You count (*) {@Count_Item}{e|}s.$} {
check_num=%ismember( %1, @cardnums)
#IF (@check_num < 100) {} {check_num=99}
appraise %item( @ordnums, @check_num) @Count_Item
open @cont
#T+ Sort_Saves1
#T+ Sort_Saves2
#T- Sort_save
} "" {disable}
#TRIGGER "Sort_Saves2" {^You appraise that the weight is %d grams and you guess its volume is about %d milliliters. You estimate its worth to %d cc. This object seems to be able to last a while.$} {
#ADD check_num -1
#IF (@check_num < "1") {
close @cont
#T- Sort_Saves1
#T- Sort_Saves2
} {#ALARM +1 {appraise %item( @ordnums, @check_num) @Count_Item}}
} "" {disable}
#TRIGGER "Sort_Saves1" {^You appraise that the weight is %d grams and you guess its volume is about %d milliliters. You estimate its worth to %d cc.$} {
get %item( @ordnums, @check_num) @Count_Item
put @Count_Item in @cont
#ADD check_num -1
#IF (@check_num < "1") {
close @cont
#T- Sort_Saves1
#T- Sort_Saves2
} {#ALARM +1 {appraise %item( @ordnums, @check_num) @Count_Item}}
} "" {disable} |
And this trigger located in the roomscript failed to fire:
#TRIGGER {You drink some water from the large barrel.$You feel refreshed.$} {drink water from large barrel}
Scroll from these settings looks like this:
---------------------------------------------------------------------------------
getnosave platemail
> count platemails
You count five platemails.
appraise fifth platemail
open black backpack
>
You study the ribbed platemail carefully.
This piece of armour is made from large plates of iron that have been hammered
and curve outward to protect the body. Three vertical ribs have been hammered
onto the front.
It looks like it is in prime condition.
You appraise that the weight is 8000 grams and you guess its volume is about 1100
milliliters. You estimate its worth to 1000 cc. This object seems to be able
to last a while.
The ribbed platemail is made to be worn on the chest and on the back.
>
You open the black leather backpack.
> appraise fourth platemail
You study the ribbed platemail carefully.
This piece of armour is made from large plates of iron that have been hammered
and curve outward to protect the body. Three vertical ribs have been hammered
onto the front.
It looks like it is in prime condition.
You appraise that the weight is 8800 grams and you guess its volume is about 1200
milliliters. You estimate its worth to 1100 cc. This object seems to be able
to last a while.
The ribbed platemail is made to be worn on the chest and on the back.
> drink from large barrel
You drink some water from the large barrel.
You feel refreshed.
drink water from large barrel
> appraise third platemail
You drink some water from the large barrel.
You feel refreshed. <--------Should fire trigger, but sometimes doesn't
>
You study the ribbed platemail carefully.
This piece of armour is made from large plates of iron that have been hammered
and curve outward to protect the body. Three vertical ribs have been hammered
onto the front.
It looks like it is in prime condition.
You appraise that the weight is 7200 grams and you guess its volume is about 1000
milliliters. You estimate its worth to 940 cc.
get third platemail
put platemail in black backpack
The ribbed platemail is made to be worn on the chest and on the back.
>
You get a ribbed platemail.
> appraise second platemail
--------------------------------------------------------------------------------- |
|
|
|
|
|