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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
forren
Novice


Joined: 26 Apr 2007
Posts: 44

PostPosted: 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?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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