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
Pantalones Rojo
Newbie


Joined: 25 Oct 2004
Posts: 4
Location: Michigan

PostPosted: Fri Oct 29, 2004 12:51 am   

Trigger pattern on multiple lines
 
Hey everybody

What I'm trying to do is make a trigger for the pattern "%1 strikes your left arm, striking a major artery which splurts blood in all directions."

My problem is that "1% strikes your left" is on one line, and "striking a major artery which splurts blood in all directions." is on the line under it. Is there a way to make a trigger match this?

Thanks (and sorry if the splurting blood upset anyone),
_________________
--Pantalones Rojo
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Fri Oct 29, 2004 2:32 am   
 
#trigger {* strikes your}
#COND {striking a major artery which splurts blood in all directions.} {<Insert Commands>} {within|param=1}
Reply with quote
DustyShouri
Novice


Joined: 29 Oct 2004
Posts: 34

PostPosted: Fri Oct 29, 2004 1:28 pm   
 
My friend taught me this, thought I don't know if it's inefficient or not:

#trigger {^1% strikes your left$^striking a major artery which splurts blood in all directions.$} {input}

So you can make as many lines as you want:

#trigger {^line one$^line two$^line three$} {input}

But it works for me
Reply with quote
ttsang
Newbie


Joined: 17 Oct 2004
Posts: 4
Location: Canada

PostPosted: Fri Oct 29, 2004 1:54 pm   
 
u use STATE TRIGGER allows u to do that i think
_________________
Timothy C. Tsang
Specialization in Actuarial Science
The University of Western Ontario
London, Ontario, Canada
ttsang5@uwo.ca
Reply with quote
Vorax
Apprentice


Joined: 29 Jun 2001
Posts: 198
Location: USA

PostPosted: Fri Oct 29, 2004 3:13 pm   
 
You should use a valid wild card to replace your "1%" in your pattern.
Reply with quote
Pantalones Rojo
Newbie


Joined: 25 Oct 2004
Posts: 4
Location: Michigan

PostPosted: Fri Oct 29, 2004 7:48 pm   
 
Ok everybody, thanks a lot for your help.
_________________
--Pantalones Rojo
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