Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ problem with fixing a trigger error

problem with fixing a trigger error

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Hefan   (12 posts)  Bio
Date Fri 20 Aug 2004 06:49 PM (UTC)
Message
i just added a big block of triggers to one of my plugin, and it claims that i have this error with triggers:
Line (whatever): Elements terminated out of sequence, expected </triggers>, got </send> (problem in this file)

and i checked that line and triggers around it several times, yet everything looks fine. so then i coped that error trigger and several other triggers to a new trigger file without changing anything, and they worked great.
so i began to slowly moving more triggers to that new trigger file, and after moved certain amount, that new trigger file also claimed a same error with a different trigger this time, the problem is that there was no problem with this trigger back in my old trigger file.
and that left me with compelety no idea what went wrong, can anyone tell me what exactly is wrong there? Thanks
Top

Posted by Hefan   (12 posts)  Bio
Date Reply #1 on Fri 20 Aug 2004 08:03 PM (UTC)
Message
those are the triggers i have, thanks if anyone can test it for me:

<triggers>
<trigger enabled="y" sequence="40" match="^Your action causes the nearly invisible magical shield around you to fade away.*?$" regexp="y" send_to="12"><send>call undef("shield")</send></trigger>
<trigger enabled="y" sequence="40" match="^A feeling of generosity spreads throughout you.*?$" regexp="y" send_to="12"><send>call undef("selfishness")</send></trigger>
<trigger enabled="y" sequence="40" match="^A small brown lemming scurries around you furiously\, stripping your (.*?).*?$" regexp="y" send_to="12"><send>call undef("%1")</send></trigger>
<trigger enabled="y" sequence="40" match="^No worries\. You\'re not a selfish bastard as is.*?$" regexp="y" send_to="12"><send>call undef("selfishness")</send></trigger>
<trigger enabled="y" sequence="40" match="^You already are a selfish bastard.*?$" regexp="y" send_to="12"><send>call ondef("selfishness")</send></trigger>
<trigger enabled="y" sequence="40" match="^You already have curseward up.*?$" regexp="y" send_to="12"><send>call ondef("curseward")</send></trigger>
<trigger enabled="y" sequence="40" match="^You already possess the third eye.*?$" regexp="y" send_to="12"><send>call ondef("thirdeye")</send></trigger>
<trigger enabled="y" sequence="40" match="^You already possess the gift of the third eye.*?$" regexp="y" send_to="12"><send>call ondef("thirdeye")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your (.*?) defence erodes away.*?$" regexp="y" send_to="12"><send>call undef("%1")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your (.*?) defence has been stripped by (.*?)\'s guardian angel.*?$" regexp="y" send_to="12"><send>call undef("%1")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your (.*?) defence is stripped away.*?$" regexp="y" send_to="12"><send>call undef("%1")</send></trigger>
<trigger enabled="y" sequence="40" match="^You caress the tattoo and immediately you feel a cloak of protection surround .*?$" regexp="y" send_to="12"><send>call ondef("cloak")</send></trigger>
<trigger enabled="y" sequence="40" match="^You order your mind to ensure you will not journey far into the dreamworld.*?$" regexp="y" send_to="12"><send>call ondef("metawake")</send></trigger>
<trigger enabled="y" sequence="40" match="^You rub your hands together greedily.*?$" regexp="y" send_to="12"><send>call ondef("selfishness")</send></trigger>
<trigger enabled="y" sequence="40" match="^You touch the tattoo and a nearly invisible magical shield forms around you.*?$" regexp="y" send_to="12"><send>call ondef("shield")</send></trigger>
<trigger enabled="y" sequence="40" match="^You tumble out of the room.*?$" regexp="y" send_to="12"><send>call undef("cloak")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your (.*?) defence has been stripped as your body vibrates.*?$" regexp="y" send_to="12"><send>call undef("%1")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your (.*?) defence is destroyed by an unseen force.*?$" regexp="y" send_to="12"><send>call undef("%1")</send></trigger>
<trigger enabled="y" sequence="40" match="^^Your curseward has been breached.*?$" regexp="y" send_to="12"><send>call undef("curseward")</send></trigger>
<trigger enabled="y" sequence="40" match="^^Your curseward has been breached.*?$" regexp="y" send_to="12"><send>call undef("curseward")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your curseward is complete.*?$" regexp="y" send_to="12"><send>call ondef("curseward")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your movement causes your magical shield to dissipate.*?$" regexp="y" send_to="12"><send>call undef("shield")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your vision sharpens with light as you gain night sight.*?$" regexp="y" send_to="12"><send>call ondef("nightsight")</send></trigger>
<trigger enabled="y" sequence="40" match="^You feel your (.*?) defence get picked off you somehow.*?$" regexp="y" send_to="12"><send>call undef("%1")</send></trigger>
<trigger enabled="y" sequence="40" match="^You now possess the gift of the third eye.*?$" regexp="y" send_to="12"><send>call ondef("third eye")</send></trigger>
<trigger enabled="y" sequence="40" match="^You have been blinded.*?$" regexp="y" send_to="12"><send>call ondef("blindness")</send></trigger>
<trigger enabled="y" sequence="40" match="^You clench your fists\, grit your teeth\, and banish all possibility of sleep.*?$" regexp="y" send_to="12"><send>call ondef("insomnia")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your insomnia has cleared up.*?$" regexp="y" send_to="12"><send>call undef("insomnia")</send></trigger>
<trigger enabled="y" sequence="40" match="^An instant feeling of excitement and edginess overcomes you.*?$" regexp="y" send_to="12"><send>call ondef("kola")</send></trigger>
<trigger enabled="y" sequence="40" match="^Touching the mindseye tattoo\, your senses are suddenly heightened.*?$" regexp="y" send_to="12"><send>call ondef("mindseye")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your eyes dim as you lose your sight.*?$" regexp="y" send_to="12"><send>call ondef("blindness")</send></trigger>
Top

Posted by Hefan   (12 posts)  Bio
Date Reply #2 on Fri 20 Aug 2004 08:05 PM (UTC)
Message
continue of last post:

<trigger enabled="y" sequence="40" match="^The aural world fades to silence.*?$" regexp="y" send_to="12"><send>call ondef("deafness")</send></trigger>
<trigger enabled="y" sequence="40" match="^A chill runs over your icy skin.*?$" regexp="y" send_to="12"><send>call ondef("temperance")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your body begins to feel lighter and you feel that you are floating slightly.*?$" regexp="y" send_to="12"><send>call ondef("levitating")</send></trigger>
<trigger enabled="y" sequence="40" match="^(.*?) points an imperious finger at you\, but your curseward holds.*?$" regexp="y" send_to="12"><send>call ondef("curseward")</send></trigger>
<trigger enabled="y" sequence="40" match="^You are now watching out for attempts to hypnotise you.*?$" regexp="y" send_to="12"><send>call ondef("vigilance")</send></trigger>
<trigger enabled="y" sequence="40" match="^You relax your vigilance.*?$" regexp="y" send_to="12"><send>call undef("vigilance")</send></trigger>
<trigger enabled="y" sequence="40" match="^You are now watching the skies.*?$" regexp="y" send_to="12"><send>call ondef("skywatch")</send></trigger>
<trigger enabled="y" sequence="40" match="^You are no longer watching the skies.*?$" regexp="y" send_to="12"><send>call undef("skywatch")</send></trigger>
<trigger enabled="y" sequence="40" match="^You attune your mind to local telepathic interference.*?$" regexp="y" send_to="12"><send>call ondef("telesense")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your mind is no longer concentrating on telepathic interference.*?$" regexp="y" send_to="12"><send>call undef("telesense")</send></trigger>
<trigger enabled="y" sequence="40" match="^You prick up your ears.*?$" regexp="y" send_to="12"><send>call ondef("alertness")</send></trigger>
<trigger enabled="y" sequence="40" match="^You cease your watchful alertness.*?$" regexp="y" send_to="12"><send>call undef("alertness")</send></trigger>
<trigger enabled="y" sequence="40" match="^You begin to keep a watchful eye on the treeline.*?$" regexp="y" send_to="12"><send>call ondef("treewatch")</send></trigger>
<trigger enabled="y" sequence="40" match="^You cease to watch the treeline.*?$" regexp="y" send_to="12"><send>call undef("treewatch")</send></trigger>
<trigger enabled="y" sequence="40" match="^You already have metawake turned on.*?$" regexp="y" send_to="12"><send>call ondef("metawake")</send></trigger>
<trigger enabled="y" sequence="40" match="^Tiny tremours spread through your body as the world seems to slow down.*?$" regexp="y" send_to="12"><send>call ondef("speed")</send></trigger>
<trigger enabled="y" sequence="40" match="^You feel incredibly tired\, and fall asleep immediately.*?$" regexp="y" send_to="12"><send>call undef("insomnia")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your body grows extremely dense and heavy as the mass salve infuses your skin.*?$" regexp="y" send_to="12"><send>call ondef("density")</send></trigger>
<trigger enabled="y" sequence="40" match="^You feel your density return to normal.*?$" regexp="y" send_to="12"><send>call undef("density")</send></trigger>
<trigger enabled="y" sequence="40" match="^You suddenly feel that it would be a fine idea to relax your (.*?) defence.*?$" regexp="y" send_to="12"><send>call undef("%1")</send></trigger>
<trigger enabled="y" sequence="40" match="^A massive\, translucent hammer rises out of (.*?)\'s tattoo and smashes your.*?$" regexp="y" send_to="12"><send>call undef("shield")</send></trigger>")</send></trigger>
<trigger enabled="y" sequence="40" match="^You feel yourself calm down as the kola nut wears off.*?$" regexp="y" send_to="12"><send>call undef("kola")</send></trigger>
<trigger enabled="y" sequence="40" match="^You eat a goldenseal root. Your mind relaxes and you feel as if you could sleep.*?$" regexp="y" send_to="12"><send>call undef("insomnia")</send></trigger>
<trigger enabled="y" sequence="40" match="^You close your eyes\, curl up in a ball\, and fall asleep.*?$" regexp="y" send_to="12"><send>call undef("insomnia")</send></trigger>
<trigger enabled="y" sequence="40" match="^Numbness seizes you as your vision and hearing fade.*?$" regexp="y" send_to="12"><send>call ondef("deafness")
call ondef("blindness")</send></trigger>
<trigger enabled="y" sequence="40" match="^The lightwall blasts your vision into a blank void.*?$" regexp="y" send_to="12"><send>call ondef("blindness")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your hearing is suddenly restored.*?$" regexp="y" send_to="12"><send>call undef("deafness")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your eyelids are forced open by the powerful venom.*?$" regexp="y" send_to="12"><send>call undef("blindness")</send></trigger>
<trigger enabled="y" sequence="40" match="^^You gently float to the ground\, protected from a nasty fall by your levitation.*?$" regexp="y" send_to="12"><send>call ondef("levitating")</send></trigger>
<trigger enabled="y" sequence="40" match="^(.*?) attempts to transfix you\, but succeeds only in curing your blindness.*?$" regexp="y" send_to="12"><send>call undef("blindness")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your blindness is cured by a wunjo rune on a totem.*?$" regexp="y" send_to="12"><send>call undef("blindness")</send></trigger>
<trigger enabled="y" sequence="40" match="^You concentrate your mind and engage your ability of hypersight.*?$" regexp="y" send_to="12"><send>call ondef("hypersight")</send></trigger>
Top

Posted by Hefan   (12 posts)  Bio
Date Reply #3 on Fri 20 Aug 2004 08:11 PM (UTC)
Message
last block:

<trigger enabled="y" sequence="40" match="^You cease to concentrate on hypersight.*?$" regexp="y" send_to="12"><send>call undef("hypersight")</send></trigger>
<trigger enabled="y" sequence="40" match="^You inhale deeply and begin holding your breath.*?$" regexp="y" send_to="12"><send>call ondef("heldbreath")</send></trigger>
<trigger enabled="y" sequence="40" match="^You cease holding your breath and exhale loudly.*?$" regexp="y" send_to="12"><send>call undef("heldbreath")</send></trigger>
<trigger enabled="y" sequence="40" match="^You eat a goldenseal root\. Your insomnia has been cured by the goldenseal.*?$" regexp="y" send_to="12"><send>call undef("insomnia")</send></trigger>
<trigger enabled="y" sequence="40" match="^(.*?) stares at you\, giving you the evil eye\, but your curseward holds.*?$" regexp="y" send_to="12"><send>call ondef("curseward")</send></trigger>
<trigger enabled="y" sequence="40" match="^You are already an insomniac.*?$" regexp="y" send_to="12"><send>call ondef("insomnia")</send></trigger>
<trigger enabled="y" sequence="40" match="^You suddenly feel incapable of falling asleep.*?$" regexp="y" send_to="12"><send>call ondef("insomnia")</send></trigger>
<trigger enabled="y" sequence="40" match="^(.*?) flays away your speed defence.*?$" regexp="y" send_to="12"><send>call undef("sileris")
call undef("speed")</send></trigger>
<trigger enabled="y" sequence="40" match="^You are blind and can see nothing but darkness.*?$" regexp="y" send_to="12"><send>call undef("mindseye")
call ondef("blindness")</send></trigger>
<trigger enabled="y" sequence="40" match="^Unable to resist the insistent intent to get your attention\, your head snaps")</send></trigger> {undef deafness")</send></trigger>
<trigger enabled="y" sequence="40" match="^The lion head on the chimera roars at you\, stunning you with its power.*?$" regexp="y" send_to="12"><send>call undef("deafness")</send></trigger>
<trigger enabled="y" sequence="40" match="^You are pulled to the ether by an unseen force.*?$" regexp="y" send_to="12"><send>call undef("density")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your mind is already touched by the Deathgod.*?$" regexp="y" send_to="12"><send>call ondef("deathsight")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your (.*?) defence has been stripped by (.*?)\'s Baalzadeen.*?$" regexp="y" send_to="12"><send>call undef("%1")</send></trigger>
<trigger enabled="y" sequence="40" match="^^You feel a momentary dizziness as your resistance to damage by poison.*?$" regexp="y" send_to="12"><send>call ondef("venom")</send></trigger>
<trigger enabled="y" sequence="40" match="^You blink for a moment\, then instantly\, all about you is darkness.*?$" regexp="y" send_to="12"><send>call ondef("blindness")</send></trigger>
<trigger enabled="y" sequence="40" match="^(.*?) blows an Aeon tarot at you\, destroying your speed defence.*?$" regexp="y" send_to="12"><send>call undef("speed")</send></trigger>
<trigger enabled="y" sequence="40" match="^A curseward has been established about your person.*?$" regexp="y" send_to="12"><send>call ondef("curseward")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your vision is heightened to see in the dark.*?$" regexp="y" send_to="12"><send>call ondef("nightsight")</send></trigger>
<trigger enabled="y" sequence="40" match="^You are feeling quite selfish.*?$" regexp="y" send_to="12"><send>call ondef("selfishness")</send></trigger>
<trigger enabled="y" sequence="40" match="^You possess the sight of the third eye.*?$" regexp="y" send_to="12"><send>call ondef("thirdeye")</send></trigger>
<trigger enabled="y" sequence="40" match="^You are surrounded by a cloak of protection.*?$" regexp="y" send_to="12"><send>call ondef("cloak")</send></trigger>
<trigger enabled="y" sequence="40" match="^You have insomnia\, and cannot easily go to sleep.*?$" regexp="y" send_to="12"><send>call ondef("insomnia")</send></trigger>
<trigger enabled="y" sequence="40" match="^You are coated in an insulating caloric salve.*?$" regexp="y" send_to="12"><send>call ondef("caloric")</send></trigger>
<trigger enabled="y" sequence="40" match="^You are tempered against fire damage.*?$" regexp="y" send_to="12"><send>call ondef("temperance")</send></trigger>
<trigger enabled="y" sequence="40" match="^You are vigilant to attempts to hypnotise you.*?$" regexp="y" send_to="12"><send>call ondef("vigilance")</send></trigger>
<trigger enabled="y" sequence="40" match="^You are aware of movement in the skies.*?$" regexp="y" send_to="12"><send>call ondef("skywatch")</send></trigger>
<trigger enabled="y" sequence="40" match="^Your resistance to damage by poison has been increased.*?$" regexp="y" send_to="12"><send>call ondef("venom")</send></trigger>
<trigger enabled="y" sequence="40" match="^You are utilising hypersight.*?$" regexp="y" send_to="12"><send>call ondef("hypersight")</send></trigger>
<trigger enabled="y" sequence="40" match="^You are attuned to local telepathic interference.*?$" regexp="y" send_to="12"><send>call ondef("telesense")</send></trigger>
</triggers>
Top

Posted by Hefan   (12 posts)  Bio
Date Reply #4 on Fri 20 Aug 2004 08:15 PM (UTC)
Message
sorry about the spam, there are actually about 30 more triggers to it, but i guess those are enough for you to find that problem. thanks for helping.
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #5 on Fri 20 Aug 2004 09:14 PM (UTC)

Amended on Fri 20 Aug 2004 09:15 PM (UTC) by Flannel

Message
<trigger enabled="y" sequence="40" match="^Unable to resist the insistent intent to get your attention\, your head snaps")</send></trigger> {undef deafness")</send></trigger>


Theres one. (Last post, ten lines from the top or so).

Basically, its saying youve got tags that dont match. So, you just have to look around for things that are improperly nested.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #6 on Fri 20 Aug 2004 09:22 PM (UTC)
Message
Also, you have a few duplicates....

<trigger enabled="y" sequence="40" match="^^Your curseward has been breached.*?$" regexp="y" send_to="12"><send>call undef("curseward")</send></trigger>
<trigger enabled="y" sequence="40" match="^^Your curseward has been breached.*?$" regexp="y" send_to="12"><send>call undef("curseward")</send></trigger>

And another thing with those two (and a couple others) is that you have two carets at the beginning. You'll want to fix that as well.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Hefan   (12 posts)  Bio
Date Reply #7 on Fri 20 Aug 2004 09:26 PM (UTC)
Message
thanks! but there is one more problem, this is the message i got from processing those triggers:
Line 68: Elements terminated out of sequence, expected </triggers>, got </send> (problem in this file)

but line 68 is this:
<trigger enabled="y" sequence="40" match="^You have been blinded.*?$" regexp="y" send_to="12"><send>call ondef("blindness")</send></trigger>

which i can't find any problem with, are there anything that i missed here?
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #8 on Fri 20 Aug 2004 09:49 PM (UTC)
Message
No, that pastes fine.

<triggers><trigger enabled="y" sequence="40" match="^You have been blinded.*?$" regexp="y" send_to="12"><send>call ondef("blindness")</send></trigger></triggers>

Pastes successfully.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Hefan   (12 posts)  Bio
Date Reply #9 on Fri 20 Aug 2004 09:53 PM (UTC)
Message
finally fixed all the problems now, thanks a lot! i guess i'm just too get into the idea of follwoing the line number of the error report, heh
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


27,463 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.