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


Joined: 14 Dec 2005
Posts: 2

PostPosted: Wed Dec 14, 2005 7:57 am   

New to ZMud, Multiline trigger question
 
Greetings,

I am completely new to ZMud and I am currently using version 7.04. I am trying to write code that would allow me to use the "scan" command, and bring me to my desired mob (if it is found in the vicinity).

Here is an example of the output following input of the "scan" command:

Code:

Right here you see:
     - mob
     - A mob1
     - A mob2
     - A mob3
North from here you see:
     - A zomgthismob
     - A mob2
     - A mob3
2 North from here you see:
     - An mob1
East from here you see:
     - A mob1
     - A mob1
     - A mob1
2 East from here you see:
     - A mob4
3 East from here you see:
     - An mob2
South from here you see:
     - A mob5
     - A mob5
     - A mob5


I would then like the client to detect "A zomgthismob" (already defined in a variable as the target mob) and bring me 1 North to it.

My question is, on a scale from 1 to 10, in your opinion how difficult would it be to write code for this? My intuition tells me is would be significantly easier to code if the trigger was not multi-lined, ex:

Code:

North from here you see: A mob1, A mob2, A zomgthismob, An mob1.


Any links to helpful resources would be greatly appreciated.

Thanks for reading,

mr tpyo
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Dec 14, 2005 9:16 am   
 
I would give this a difficulty scale of 1 if you were using the current version of zMud. The bugs that existed in 7.04 will likely make it more of a difficulty of 5. I would suggest upgrading to the current version.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Wed Dec 14, 2005 4:54 pm   
 
Post removed cause it don't even really answer yer question. This is what happens when i don't read the WHOLE post and assume that the poster wanted to now how far a mob was.
Well...maybe you can take it from here dunno. That's a whole bot type thing and i don't do those.
_________________
http://www.Aardwolf.com
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