|
talonnb Apprentice
Joined: 30 Oct 2004 Posts: 127
|
Posted: Thu Sep 04, 2008 9:52 pm
Conditional Trigger Question |
if I have a trigger for a weapon attack such as:
You sink your fangs into yourself, (%w) flowing into his veins.
So, I triggered that, and made a state 1 of {@venoms} which is a stringlist of possible venom messages.
Now, my problem is since there are different reactions to each venom, how do I tell which one it fires off? And I've noticed that it waits for 5 lines before it fires the test #echo's I put in there. Is there a way to have the prompt close it's triggering sooner? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Thu Sep 04, 2008 10:41 pm |
Quote: |
my problem is since there are different reactions to each venom, how do I tell which one it fires off?
|
Use the stringlist for your second pattern, surrounding it with parentheses to capture it into a system variable (%1...%99).
Quote: |
And I've noticed that it waits for 5 lines before it fires the test #echo's I put in there.
|
Sounds like you've got a really inefficient trigger. You can attempt to surround the trigger code with a #PRIORITY {} command, but you might want to seriously consider a redesign. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
talonnb Apprentice
Joined: 30 Oct 2004 Posts: 127
|
Posted: Fri Sep 05, 2008 3:29 am |
Well, basically I'm looking for a way to capture which venom I was hit with, with the prerequisite that a blade has hit me first to cut down on illusions. Example
Nahasa pricks you twice in rapid succession with her dirk.
Your vision is flooded with light, and your face suddenly reddens.
Hmmmm. Why is everything so difficult to figure out?
Some people might illusion:
Your vision is flooded with light, and your face suddenly reddens.
Hmmmm. Why is everything so difficult to figure out?
Which is why I want the attack to be there as a pre-requisite. Any suggestions would be helpful, I prefer being efficient with my systems, so cleanest solution as possible would be nice. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|