|
Sir1l Wanderer
Joined: 01 Oct 2005 Posts: 54
|
Posted: Thu Jan 15, 2009 2:21 am
Room Exits |
In this game I'm playing the room exits have =east and -east and regular old east...the mapper is going haywire and I can't figure out to make it correctly direct these movements....any help?
|
|
|
|
Sir1l Wanderer
Joined: 01 Oct 2005 Posts: 54
|
Posted: Thu Jan 15, 2009 4:21 am |
my bad, here's output
Exits: east -west- =north= [south]
south is a door then the - and = don't really mean that much just the matter doesn't recognize it :( |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu Jan 15, 2009 6:31 am |
#trig {Exits: (*)} {#tag %subchar(%1,"-=[]") exit}
Then reconfigure the mapper. |
|
|
|
Sir1l Wanderer
Joined: 01 Oct 2005 Posts: 54
|
Posted: Fri Jan 16, 2009 10:32 am |
Now it's not making doors :(, the [] and () brackets are doors
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Jan 16, 2009 10:35 am |
You could try removing the [] part from the %subchar and see if it starts working again, but this might be a case where you can't have your cake and eat it :( You'd have to apply the doors manually, or with a script using zMapper.
|
|
|
|
Leitia Adept
Joined: 04 May 2007 Posts: 292 Location: Boston
|
Posted: Fri Jan 16, 2009 6:27 pm |
I had found the [] characters impossible to use directly in a function I wrote. Instead I used two steps:
After capturing the exits, I replaced the "[" "]" and "(" ")" with "j" and "q".
Then I looked for the open and closed doors and added them to string lists.
This might be too slow for the mapper but you can nest %replace(%replace()) or regex j and q
I rarely used subchar (something about it I don't like), and I don't get the mapper at all. The function was to 'squint' in every direction, and I opened doors to do that. Sorry I can't help more, but I think you can create special handlers for doors. |
|
|
|
|
|