Alright, this is the fourth time I've tried to make this post so hopefully it goes through. At any rate, I've been mulling over this idea for quite some time now but I can't seem to find a solid way to execute it. Essentially what I want to do is take any given newline, make it go "bye-bye", and replace it with a ColourNote. I'll give an example of a bit of the code for the newline (without the omission, of course).
Essentially, as you can tell, as this receives the newline it determines whether or not it is the right or left leg which is tangled, then produces the ColourNote: <<<RIGHT LEG IN VINES: WRITHE>>>. Now, all of that works, however omitting a newline keeps the trigger from being recognized and therefore stops the note from being produced. This, obviously, is counter-productive to the idea behind doing this. I tried sending the data to a new window via the redirector method, however, this stops the note from registering. Does anyone have any idea as to how I can work my way around the problem?
<trigger
enabled="y"
expand_variables="y"
group="Diagnosis"
ignore_case="y"
match="^\"(.*?) leg lashed in thorny vines\.\"$"
name="Vines"
regexp="y"
send_to="12"
sequence="100"
>
<send>if "%1" == "right" then
SetVariable ("vines_right", "1")
ColourNote ("violet", "black", "<<<RIGHT LEG IN VINES: WRITHE>>>")
else
SetVariable ("vines_left", "1")
ColourNote ("violet", "black", "<<<LEFT LEG IN VINES: WRITHE>>>")
end--if</send>
</trigger>
Essentially, as you can tell, as this receives the newline it determines whether or not it is the right or left leg which is tangled, then produces the ColourNote: <<<RIGHT LEG IN VINES: WRITHE>>>. Now, all of that works, however omitting a newline keeps the trigger from being recognized and therefore stops the note from being produced. This, obviously, is counter-productive to the idea behind doing this. I tried sending the data to a new window via the redirector method, however, this stops the note from registering. Does anyone have any idea as to how I can work my way around the problem?