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
Kiasyn
Apprentice


Joined: 05 Dec 2004
Posts: 196
Location: New Zealand

PostPosted: Tue May 31, 2005 7:42 am   

Matching different lines..
 
OK i'm not sure how to go about this...

i want to match a set of lines from the mud...

not every line will be shown every time and the number of lines can change as well

Code:

You dig up some Limestone (86) and drop it on a stack!
You dig up some Adamantite Ore (12) and drop it on a stack!
You dig up some Uncut Garnet (2) and drop it on a stack!


if it digs up some ore, or some uncut garnet i want it to execute: fill stuff uncut or fill stuff ore..

then after all the lines have been shown... i want to start digging again by executing: mine @direction

anyone know how i can do this?

>.<

thanks![/code]
_________________
Kiasyn
Owner of Legends of Drazon
Coder on Dark Legacy
Check out Talon, an easy IMC connection.
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Tue May 31, 2005 12:09 pm   
 
Is there a message to tell you that you've stopped digging? If not then I'd think you'd be best putting an alarm to mine a few seconds after you're done digging...

Code:
#TRIGGER {You dig up some (*) ~((%d)~) and drop it on a stack!} {#IF (%1 = "Uncut Garnet" OR %match( %1, "%w Ore") = 1) {fill stuff %1;#ALARM minedirection {+2.5} {mine @direction}}}


That matches Adamantite Ore and Uncut Garnet but doesn't match Limestone.
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