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


Joined: 11 Jan 2011
Posts: 3

PostPosted: Thu Mar 21, 2013 5:45 pm   

Exits: and variable
 
Hello!

Can anyone help me out how to capture exits in to variable.

I have a lot of triggers For exits
My exit line can be

Examples
Exits: north, south, west.
or
Exits: north, (south), (west). etc
or
Exits: [north], south, (west). etc
or
Exits: -north-, -south-, =west=.
or
Exits: =north=, =south=, (west).
and so on a really lot of different combinations.

What i have now is
#trigger Exits: (%w), (%w), (%w).
#var exitnames %1%2%3
#trigger Exits: ~((%w)~), (%w), (%w).
#var exitnames %1%2%3
etc...
a really lot of triggers.

Is there any easier way to capture Exits? Perl expression %replace?
Or any other way?

Thanks!
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