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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
radboi22
Novice


Joined: 19 Jan 2008
Posts: 30

PostPosted: 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
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Mar 14, 2009 4:43 pm   
 
*points to the correct forum of either CMUD or zMUD, not Finished Scripts* *inno*

Charneus
Reply with quote
radboi22
Novice


Joined: 19 Jan 2008
Posts: 30

PostPosted: Sat Mar 14, 2009 5:16 pm   
 
It's finished now, thanks guys!
Reply with quote
Leitia
Adept


Joined: 04 May 2007
Posts: 292
Location: Boston

PostPosted: Sat Mar 14, 2009 6:00 pm   
 
rofl
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts 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