Trigger Chain over 1 or 2 lines
Posted: Mon Jun 10, 2024 3:40 pm
Hello
I try to make a trigger over 1 or 2 rows.
what you write:
point at <name of monster>
what the mud writes:
you point at the ant and your magic ring glows blue.
you point at the ice giant and your magic ring glows
green.
you point at the huge green orc and your magic ring
glows yellow.
I need the reaction on the pointing, eg. the gring glowing blue.
what i tried:
trigger group
perl regex: 'point at (.*) and'
fire length (extra lines) 1
[ ] AND / Multi-line delta
[ ] only pass matches
[ ] match all
trigger
substring: ring
substring: glows
substring: green
fire length (extra lines) 0
[X] AND / Multi-line delta | value: 1
[ ] only pass matches
[ ] match all
trigger
substring: ring
substring: glows
substring: red
fire length (extra lines) 0
[X] AND / Multi-line delta | value: 1
[ ] only pass matches
[ ] match all
trigger
substring: ring
substring: glows
substring: blue
fire length (extra lines) 0
[X] AND / Multi-line delta | value: 1
[ ] only pass matches
[ ] match all
Sometimes it works, but next day it possibly doesn't works.
What is the right way to do that?
Thanks in advance
I try to make a trigger over 1 or 2 rows.
what you write:
point at <name of monster>
what the mud writes:
you point at the ant and your magic ring glows blue.
you point at the ice giant and your magic ring glows
green.
you point at the huge green orc and your magic ring
glows yellow.
I need the reaction on the pointing, eg. the gring glowing blue.
what i tried:
trigger group
perl regex: 'point at (.*) and'
fire length (extra lines) 1
[ ] AND / Multi-line delta
[ ] only pass matches
[ ] match all
trigger
substring: ring
substring: glows
substring: green
fire length (extra lines) 0
[X] AND / Multi-line delta | value: 1
[ ] only pass matches
[ ] match all
trigger
substring: ring
substring: glows
substring: red
fire length (extra lines) 0
[X] AND / Multi-line delta | value: 1
[ ] only pass matches
[ ] match all
trigger
substring: ring
substring: glows
substring: blue
fire length (extra lines) 0
[X] AND / Multi-line delta | value: 1
[ ] only pass matches
[ ] match all
Sometimes it works, but next day it possibly doesn't works.
What is the right way to do that?
Thanks in advance