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


Joined: 24 Dec 2002
Posts: 5
Location: Poland

PostPosted: Tue Dec 24, 2002 1:42 pm   

How I can force automapper to identify my exits...
 
I playing in my own language MUD - Arkadia. I cant configure automapper to identify my exits to mark proper links on my map.
Mud type is LPmud, here is sample of my line contained exits:
Sa tutaj cztery widoczne wyjscia: polnoc, poludniowy-wschod, polnocny-wschod i zachod.
where:
"polnoc" is "north"
"poludniowy-zachod" is "south-west" etc...

commands what my mud recognize is N,S,W,E etc...

So, what exact trigger must create to my mapper?
Reply with quote
Belmyrddyn
Magician


Joined: 17 Oct 2001
Posts: 371
Location: USA

PostPosted: Tue Dec 24, 2002 3:29 pm   
 
Is what you provided a standard exit line?
Sa tutaj cztery widoczne wyjscia: polnoc, poludniowy-wschod, polnocny-wschod i zachod.

If this is standard, you can create a trigger on {Sa tutaj cztery widoczne wyjscia~: (*)}, and then create a parser which will translate the exits into English, send them into a stringlist, and then pass the stringlist into the mapper via #TAG exit @stringlist

Belmyrddyn
Reply with quote
Sathorn
Newbie


Joined: 24 Dec 2002
Posts: 5
Location: Poland

PostPosted: Tue Dec 24, 2002 4:40 pm   
 
No, this is one from more exit line - depends of number of exits:

Sa tutaj cztery widoczne wyjscia: polnoc, poludniowy-wschod, polnocny-wschod i zachod.
Here is four visible exits: north, south-east etc...

Jest tutaj jedno widoczne wyjscie: polnoc
Here is one visible exit: north

U know i'm newbie with ZMud and dont know how i can create a parser, stringlist etc..
Can u make one sample for me?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Tue Dec 24, 2002 8:29 pm   
 
First step, go into the settings editor and manually add directions. Directions are critical to the mapper in translating any word into a map direction. In your case the mapper's designed ability will do the translating from (looks like Russian, but I know it isn't) one language to another. An example of some directions that could be entered in the command line is:
#DIR ns "n|polnoc" north
#DIR sn "s|poludniowy" south
#DIR ew "e|wschod" east
#DIR we "w|zachod" west

Next you want to open the mapper configuration. In the RoomExits portion you want to check the box "Exitline contains key" and want to put "widoczne wyjscia" in the field "Exit line keyword".

Then reconfigure the mapper. You may have to repeat step 2 as reconfiguring tends to remove the data in that field.
Reply with quote
Sathorn
Newbie


Joined: 24 Dec 2002
Posts: 5
Location: Poland

PostPosted: Wed Dec 25, 2002 1:03 pm   
 
only four directions? what about ne, nw etc?
Notice that, in Polish language N=north=polnoc but NE=north-east=polnocny-wschod
also
S=south=poludnie but SE=south-east=poludniowy-wschod
Reply with quote
Sathorn
Newbie


Joined: 24 Dec 2002
Posts: 5
Location: Poland

PostPosted: Sun Dec 29, 2002 5:33 pm   
 
OK it works, but only with N,E,S and W directions, so i added next directions:
#DIR 73 "nw|polnocny-zachod" northwest
#DIR 37 "se|poludniowy-wschod" southeast
#DIR 91 "ne|polnocny-wschod" northeast
#DIR 19 "sw|poludniowy-zachod" southwest

And... automapper drawing for me too much links e.g:
"Sa tutaj dwa widoczne wyjscia: polnoc i poludniowy-wschod."
in this situation automapper should draw two links, north and southeast but i have three! Why? because in "poludniowy-wschod" he recognize two directions "poludniowy-wschod" (southeast) and "wschod" (east). Also in:
"Sa tutaj dwa widoczne wyjscia: wschod i polnocny-zachod." he recognize four (not two) directions. "wschod" - east, "polnocny-zachod" - northwest, "polnoc" - north, and "zachod" - west.

How i can make proper directions? Maybe sign of EOW (End of word) :)? or some "NOT" function? Dont know, what if directions will be something like that:

#DIR ns "n|polnoc(sign EOW)" north
or
#DIR 73 "nw|polnocny-zachod" northwest, NOT north, NOT west
Reply with quote
Sathorn
Newbie


Joined: 24 Dec 2002
Posts: 5
Location: Poland

PostPosted: Thu Jan 09, 2003 6:26 pm   
 
anyone?
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