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
xmasboy
Newbie


Joined: 22 Jun 2004
Posts: 3
Location: USA

PostPosted: Mon Jun 28, 2004 6:10 pm   

Triggering a Phrase Kinda
 
I play a mud and im making this trigger so i can read in the last part of a line. And so ill have somthing like this:
You are now hunted by a Druegar Aide-de-Camp
And my trigger is
You are now hunted by (%w)
which would normally work except in this case I would like to capture the whole part after by but i can't seem to manage to capture it. What im trying to do is make a folder by the name of the monster which is hunting me so if i use:
You are now hunted by (%w)
It then only makes a folder by the name of 'a' i'd like it to be able to make a folder by the name of a Druegar Aide-de-Camp.
Reply with quote
xmasboy
Newbie


Joined: 22 Jun 2004
Posts: 3
Location: USA

PostPosted: Mon Jun 28, 2004 6:14 pm   
 
Me again BTW The issue im having is the name of the person hunting me can change from a Druegar Aide-de-Camp to a Unicorn to Manix. And so i have issues cause they are all different lengths.
Reply with quote
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Mon Jun 28, 2004 6:17 pm   
 
you could use (*) instead of (%w). I think that would work.
Reply with quote
xmasboy
Newbie


Joined: 22 Jun 2004
Posts: 3
Location: USA

PostPosted: Mon Jun 28, 2004 6:20 pm   
 
It works but i need it to be able to pick up more then 1 word if it exists. And see now when i go #Math Enemy %1 under the trigger its making for a druegar aide-de-camp the folder druegar and in it the variable Enemy with a in it. :p
Reply with quote
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Mon Jun 28, 2004 6:31 pm   
 
I don't exactly get what you mean...
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Mon Jun 28, 2004 6:55 pm   
 
#TRIGGER {You are now hunted by {a|} (*)} {#VAR enemy "%1"}
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