 |
ShaunR Newbie
Joined: 02 Oct 2005 Posts: 2
|
Posted: Sun Oct 02, 2005 11:20 am
automap - parsing unknown/non-standard exit in exit list |
I've been using Zmud for about 10 years now, but I could never get the automapper working. Now, I've just started on a new mud (Eye of the World), and I thought I'd try the mapper.
However, I cannot get it to do what I want it to do. I can automatically configure it so that main exits work. However, I want it to do one more thing - recognize non-standard exits and somehow mark that there's a non-standard exit on the map. My goal here is to just find any likely places on the mud without having to read every room exit list. Most grids are boring, except for those interesting exits.
For example (brief on):
In some woods(e, trail, w, n)
A dirty helmet
HP:182 EP:95>
Mapper will find e,w,n but the trail isn't there. I have never used triggers or tags, and if I start diving in now, I'm looking at a learning curve from hell, I think.
I have been reading the forums all afternoon. I don't want to create paired direction mappings; there are going to be a variety of words that have been used, and they aren't going to have the same word for travesing back. I'm happy manually linking rooms. I'm happy manually editing room exits. But, I want to see that there is something non-standard first!
Does someone have any ideas/settings/triggers/tags that would work here?
Thanks,
Shaun |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Sun Oct 02, 2005 2:43 pm |
I think we have to start by capturing the room exits.
#CLASS RoomCaptures
#VAR SpecialExits {} {}
#VAR RoomExits {} {}
#TRIGGER {^*~(([a-z ,])~)$} {RoomExits=%replace("%1",", ","|");SpecialExits="";#FORALL @RoomExits {#IF (%len("%i")>2) {#ADDITEM SpecialExits {%i}}}} "" {case}
#CLASS 0
Next is a way to flag it for you and make it easier travel such exits. I would suggest simply coloring the room and a macro, I selected the numberpad /.
#ALIAS onroomcreate {#IF (@SpecialExits) {#NOOP %roomcol(,coral)}}
#KEY DIV {#IF (@SpecialExits) {#IF (%numitems(@SpecialExits)=1) {#IF (%ismember(@SpecialExits,%roomexit())) {@SpecialExits} {>@SpecialExits}} {#INPUT {%concat(">",%replace(@SpecialExits,"|"," >")}}}}
These were written off the top of my head, and may have minor errors like missing closing braces. You should be abe to just copy and paste them in the command line and be off and running. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
ShaunR Newbie
Joined: 02 Oct 2005 Posts: 2
|
Posted: Sun Oct 02, 2005 9:35 pm |
Woohoo! Thanks Vijilante, I'll try this tomorrow, when I have some mudding time!
Shaun |
|
|
 |
|
|
|
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
|
|