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
Solaras
Wanderer


Joined: 11 Mar 2002
Posts: 93

PostPosted: Sat Aug 16, 2003 12:40 am   

Map and #TAG question
 
I am having a problem tagging an exit line like this :

You see exits leading north,
northeast, east, southeast, south, southwest, west, and northwest.


my trigger is:

You see exits leading (*)
#TAG exit %1

it only grabs the first direction though on the line, if the line has all the directions on one then it grabs all of them, if none of the directions are on the line it grabs none of them. Examples:

You see exits leading north, northeast, east, southeast,
south, southwest, west, and northwest.

grabs the first 4 directions

You see exits leading
north, northeast, east, southeast, south, southwest, west, and northwest.

grabs none of the directions

How do I tell the #TAG to continue grabbing until it hits the "." ?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sat Aug 16, 2003 9:23 pm   
 
Untested, but maybe play with something like:

You see exits leading (*)$(*)
#IF (%pos(".","%1")>0) {#TAG exits "%1"} {#TAG exits %concat("%1"," ","%2")}
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