ok, I have two multi-line triggers that I want to trigger off of.
Trigger One:
You stare at Isabella, giving her the evil eye.
Her curseward has failed!
You stare at Isabella, giving her the evil eye.
Trigger Two:
You stare at Isabella, giving her the evil eye.
You stare at Isabella, giving her the evil eye.
Now, I can get them to fire just fine...The problem i'm running into is, trigger two is making the first line of trigger one give an aff.
Here are my coded triggers and accompanying code.
Trigger One:
^You stare at (\w+), giving \w+ the evil eye\.$ --perl regex
^(His|Her) curseward has failed\!$ -- perl regex
^You stare at (\w+), giver \w+ the evil eye\.$ -- perl regex
line delta 3
--Lua Code
if (multimatches[1][2] == target.name) then
target.curseward = false
if (not table.contains(target.afflictions, aff2) then
targAffAdd(aff2)
end
printTargetWindow()
end
Trigger Two:
^You stare at (\w+), giving \w+ the evil eye\.$ --perl regex
1 -- Line Spacer
^You stare at (\w+), giving \w+ the evil eye\.$ --perl regex
line delta 2
--Lua Code
if (multimatches[1][2] == target.name) then
if (not table.contains(target.afflictions, aff1) then
targAffAdd(aff1)
end
if (not table.contains(target.afflictions, aff2) then
targAffAdd(aff2)
end
printTargetWindow()
end
I can't for the life of me figure out how to make Trigger Two stop making Trigger One's first line from adding an affliction to the target. Any and all help is appreciated.