|
radboi22 Novice
Joined: 19 Jan 2008 Posts: 30
|
Posted: Sat Mar 14, 2009 3:47 pm
How do I do this? Trigger when something isn't there. |
<primary weapon> a high quality mining pick [82%]
I want the the trigger to fire off the command line when the [82%] is not in that line.
<primary weapon> a high quality mining pick <------
Which kind of wildcarding can I use? I tried &nnnn but I can't seem to get it to work, TY! =D |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Mar 14, 2009 4:37 pm |
So you want to trigger on lines that don't have [82%], and not on ones that do?
If the line ends there, you can just do
#trig {<primary weapon> a high quality mining pick$} {whatever}
and that'll only trigger on lines that end there. If not, you need to use a negative lookahead:
#regex {<primary weapon> a high quality mining pick(?! [\d+%])} {whatever} |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sat Mar 14, 2009 4:43 pm |
*points to the correct forum of either CMUD or zMUD, not Finished Scripts* *inno*
Charneus |
|
|
|
radboi22 Novice
Joined: 19 Jan 2008 Posts: 30
|
Posted: Sat Mar 14, 2009 5:16 pm |
It's finished now, thanks guys!
|
|
|
|
Leitia Adept
Joined: 04 May 2007 Posts: 292 Location: Boston
|
Posted: Sat Mar 14, 2009 6:00 pm |
rofl
|
|
|
|
|
|