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


Joined: 24 Sep 2002
Posts: 5
Location: Norway

PostPosted: Mon Jul 07, 2003 12:51 pm   

Finding my Target
 
Hi, when I scan for my target, i get the following block of text from my mud

Scanning North...
A Lancer stands here keeping an watchfull eye on things
A Begger is here, begging for money.
Scanning East...
A sweeper is here, cleaning up your mess.
Raising her voice, a traveling minstrel sings a solemn ballad.
Scanning Up...
A monk is here washing is face.
[bMy Target is here][/b]
A horse is left here.
Scanning South...
A goblin is here.
Dany the sexy barbarian is here

So what i want is a variable to be set with the way I must go to finnish off my target [}:)] like this
Code:
#Var targetloc Up

since thats where my target is
but I don't know how to make Zmud do this...
plz help [:I]
Reply with quote
Siddha
Beginner


Joined: 07 Jul 2003
Posts: 15

PostPosted: Mon Jul 07, 2003 5:26 pm   
 
Ok/// what you have to do is:
two triggers, put them in the same class,

1.
pattern: Scanning (%x)...
command: #var way %1;

flags:
Newline, Prompt, Case sensitive, Trigger on Trigger

2.
pattern: [TARGET] (just write down name of target;))
command: #var whereTarget @way;

flags:
Newline, Prompt, Case sensitive, Trigger on Trigger

Good luck!
Reply with quote
Baltazar
Newbie


Joined: 24 Sep 2002
Posts: 5
Location: Norway

PostPosted: Tue Jul 08, 2003 12:43 pm   
 
Thanks, now it works perfectly.
Ill go out an keel people now [}:)]
thanks again
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