|
klivesey Newbie
Joined: 23 Dec 2005 Posts: 2
|
Posted: 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? |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Fri Dec 23, 2005 3:11 am |
Well if that line always starts with You are
#TRIGGER {^You are * ~((*)~)} {exits=%replace("%1", "," ,"|")} |
|
|
|
klivesey Newbie
Joined: 23 Dec 2005 Posts: 2
|
Posted: Fri Dec 23, 2005 3:26 am |
You da Man!
Thanks for your prompt reply |
|
|
|
|
|
|
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
|
|