|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Wed Feb 27, 2002 6:12 am
Matching wrong trigger |
Im trying to take 3 lines of text and store a variable from that it says
You hit a victim.
You hit a victim hard.
You hit a victim extremely hard.
I have the triggers set up as
#tr {You hit *.} {whatever}
#tr {You hit * hard.} {whatever}
etc...
My problem is the first trigger would ALSO match the second and third trigger. I was wondering if there was a way to keep it from doing that. Im not too bad with triggers and variables. just too tired to think about it at the moment |
|
|
|
Troubadour GURU
Joined: 14 Oct 2000 Posts: 556 Location: USA
|
Posted: Wed Feb 27, 2002 7:32 am |
Combine them into one big trigger:
#TR {You hit *({.| hard.| extremely hard.})$} {#VAR damage %ismember("%1", {.| hard.| extremely hard.})}
Notice that the trigger captures the end of the sentence. In this case I've used %ismember to convert this into an arbitrary number.
Troubadour |
|
|
|
|
|