|
forren Novice
Joined: 26 Apr 2007 Posts: 44
|
Posted: Wed Nov 21, 2007 7:06 am
Within Trigger States |
Alright, here's the issue.
I have been relying on a trigger for ^You {take a drink|down the last drop} from (*).$ that has multiple trigger states - a within 1 (*) and multiple reparses. I have encountered a time where the following occurs:
You down the last drop from a vial of twisting reds.
Horribly, you feel the tick suck some of the elixir out of your throat.
The elixir heals and soothes you.
Where I need the lines to be matched at line 2 instead of line 1. This case will only follow if the "Horribly" line is line 1. Currently, I also check a * case if it's not one of a set number of reparses. How would I best be able to fix this trigger to work in the case where the Horribly.. line comes before the normal second line? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed Nov 21, 2007 12:09 pm |
Do the parsing in your actual script
Code: |
#TRIGGER {^You down the last drop from a vial of twisting reds.$} {something}
#COND {{Horribly, you feel the tick suck some of the elixir out of your throat.|The elixir heals and soothes you.}} {#IF (%begins(%line,"Horribly")) {bad response} {good responses}} {within|param=1} |
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|