Map Window v1 - Non mini windowed version - question

Posted by Bottomfeeder on Tue 12 Aug 2008 09:40 PM — 2 posts, 13,492 views.

#0
Nick,

I had a question for you about how the first version of the Aardwolf map window captured text. Does it start at the room name and capture down to the exits or does is also capture any players, objects, or mobs in there also?

My hope is the latter so I could get someone to help with the code to redirect the mob, object, and players present text to the map window also.

How do-able do you think that is?


P.S. I love the mini windows and use them in all instances except the map window since I like to have it in a certain location.
Australia Forum Administrator #1
This is what I get between the "map" tags:


<MAPSTART>
Along the Sands
 
 
                            
                    |*!*| 
             -------    |    
            |,!` ,!` ,!`| 
     -------     -------     
    |~!~ ~!~|, `|         
    |           |            
    |~!~ ~!~ ,#`|         
 ---            |            
 ~!~ ~!~ ~!~ ,!`|         
 ---            |            
    |~!~ ~!~ ,!`|         
    |            ---         
    |~!~ ~!~|, ` , `|     
     ------------            
 
[ Exits: N S W ]
<MAPEND>


As you can see, room contents are not mentioned. You could try to capture room contents by starting on the "Exits" line and trying to detect when the contents are over. Generally you will see something like this:


[Exits: north south west]
A crab shaped like a spider is crawling back to the water.
A crab shaped like a spider is crawling back to the water.
A star fish is here laying silently in the sand.


They tend to be yellow text on white background, however various prefixes like "(Angry)", "(Golden Aura)" etc. throw out a simple detection system. You could try asking Lasher for an option to put something like {contents} ... {/contents} around the things in the room.