IvoL Newbie
Joined: 11 Jan 2011 Posts: 3
|
Posted: 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! |
|