 |
xmasboy Newbie
Joined: 22 Jun 2004 Posts: 3 Location: USA
|
Posted: 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. |
|
|
 |
xmasboy Newbie
Joined: 22 Jun 2004 Posts: 3 Location: USA
|
Posted: 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.
|
|
|
 |
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: Mon Jun 28, 2004 6:17 pm |
you could use (*) instead of (%w). I think that would work.
|
|
|
 |
xmasboy Newbie
Joined: 22 Jun 2004 Posts: 3 Location: USA
|
Posted: 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
|
|
|
 |
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: Mon Jun 28, 2004 6:31 pm |
I don't exactly get what you mean...
|
|
|
 |
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
Posted: Mon Jun 28, 2004 6:55 pm |
#TRIGGER {You are now hunted by {a|} (*)} {#VAR enemy "%1"}
|
|
|
 |
|
|