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


Joined: 23 Dec 2005
Posts: 2

PostPosted: Fri Dec 23, 2005 3:07 am   

Been Searching for some time but cannot find a way to...
 
I am looking to build a trig and Al to move thoughout an area and I am attemping to do so without the add of the mapper.

It seem that this should be an easy task and I am attempting start this with the following trig:

You are somewere (n,ne,e,se,nw)

Now the posible dirs maybe one to eight directions and I would like to take the dirs and place them into a list and then %random the list of possible exits (with other code to restrict reverse direction and others)

My problem is with taking the (n,ne,e,se,nw) and placing it into a list form such as (n|ne|e|se|nw). The soluton must account for the possibilty of one to eight directions.

NE1?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Fri Dec 23, 2005 3:11 am   
 
Well if that line always starts with You are

#TRIGGER {^You are * ~((*)~)} {exits=%replace("%1", "," ,"|")}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
klivesey
Newbie


Joined: 23 Dec 2005
Posts: 2

PostPosted: Fri Dec 23, 2005 3:26 am   
 
You da Man!

Thanks for your prompt reply
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