|
Anders Novice
Joined: 14 Jul 2003 Posts: 31 Location: USA
|
Posted: Thu May 20, 2004 6:38 pm
Help needed with a trigger. |
I have a trigger with this as pattern:
Code: |
^~[{Elf|Mystic|Elspeth}~] *{$ %s (*)|}{$ %s (*)|}{$ %s (*)|}{$ %s (*)|} |
It is suppoused to trigger on any line that starts with [Elf] [Mystic] or [Elspeth], so far so good, then comes the other part, it should trigger if the next lines start with spaces, the problem I have is that it triggers on lines whatever the line starts with. What have I done wrong? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu May 20, 2004 7:49 pm |
It's probably the stringlist wildcards.
Chances are good that what you are trying to match is the zMUD linewrap indent. If so, it's probably not necessary -- the first pattern will match the entire line.
^~[{Elf|Mystic|Elspeth}~]
If your MUD is doing the wrapping and indenting, then a multistate trigger will probably work better.
#TR EME {^~[{Elf|Mystic|Elspeth}~]} {do something maybe}
#COND {^%s(*)} {do more stuff with %1} {LoopLines|Param=10}
#TR {^%x} {#STATE EME 0}
Note: These are command line scripts, not settings editor. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|