Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
talonnb
Apprentice


Joined: 30 Oct 2004
Posts: 127

PostPosted: 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?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
talonnb
Apprentice


Joined: 30 Oct 2004
Posts: 127

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net