Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Tanuki
Novice


Joined: 06 Nov 2008
Posts: 38

PostPosted: Fri Jan 14, 2011 2:06 am   

#Capture
 
So I'm trying to capture the "MiniMap" in Aardwolf. I look the the tag <MapStart> and then turn on the Map Class which captures everthing untill I see <MapEnd> which turns the class off. This seems like it should be a fairly straight forward script and I'm not sure what I am doing wrong but Capture just will not Capture for me. The Class is running in my MainWindow. Thoughts?



<MAPSTART>
Among the Philosophes


---
|##> (!) (*) (~)
--- ---
- - (~) . > (!) -!-
--- ---
|#*> (~) (~) (~) #*>|
--- ---
|.#> [?]
|
|.!.|
------- -------
(!) *$* (!) *$* (!)

*$* (~) *** (~) ***
-------- --------

[ Exits: N E S U ]
<MAPEND>




<class name="MiniMapper" id="353">
<class name="Map" enabled="false" id="354">
<trigger priority="3460" id="355">
<pattern>*</pattern>
<value>#CAP MiniMapper
</value>
</trigger>
<trigger priority="3480" id="356">
<pattern></pattern>
<value>#T- MiniMapper|Map</value>
</trigger>
</class>
<trigger priority="3440" id="360">
<pattern></pattern>
<value>#T+ MiniMapper|Map</value>
</trigger>
</class>
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Fri Jan 14, 2011 2:26 am   
 
Here's mine:


Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <class name="AutoMap" copy="yes">
    <trigger priority="23200" copy="yes">
      <pattern>^You will no longer see the map automatically when you move.$</pattern>
      <value>#clr MAP
#loop 4 {#win MAP %cr}
#win MAP "     "%ansi( red)~[ %ansi( hi, red)Map Unavailable %ansi( red)~]</value>
    </trigger>
    <trigger priority="23250" copy="yes">
      <pattern>^You{ will now see the map automatically when you move|r journey was broken by the need to defend yourself}.$</pattern>
      <value>map;#gag</value>
    </trigger>
    <trigger priority="12500" copy="yes">
      <pattern>^~</pattern>
      <value>#gag
#gagoff
#c-
#CALL %pref("echomessage",1)</value>
    </trigger>
    <trigger priority="12570" copy="yes">
      <pattern>^~$</pattern>
      <value>#CALL %pref("echomessage",0)
#gagon
#gag
#c+ maps
#clr maps</value>
      <trigger param="20" regex="true">
        <pattern>^\[(?:\s+)?Exits.*\]</pattern>
        <value>#gag
#gagoff
#C-</value>
      </trigger>
    </trigger>
  </class>
</cmud>


Type 'tags' and make sure the following is set:

Code:

Tag Name      Description                                             Status   
------------  ------------------------------------------------------- ------   
MAP           Display tags around map: <MAPSTART> <MAPEND>            YES
MAPEXITS      Adds room exits within maptags                          YES
MAPNAMES      Adds room name within maptags                           YES


You can probably remove the %pref lines in the triggers, though. Hope this helps.
Reply with quote
Tanuki
Novice


Joined: 06 Nov 2008
Posts: 38

PostPosted: Fri Jan 14, 2011 2:59 am   
 
Thank you for your script Charneus. Unfortunatly I am unable to get it to work. It seems like a Class called MAPS is missing Maybe?
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Fri Jan 14, 2011 3:08 am   
 
What is it doing when you try to run it? Also, you can change the window name from MAP to MiniMapper.
Reply with quote
Tanuki
Novice


Joined: 06 Nov 2008
Posts: 38

PostPosted: Fri Jan 14, 2011 3:51 am   
 
The Map Window creates and I get a Map Unavailable message when I turn off Automap but with automap on, nothing gets captured to the MAP window. I'm not even sure what line in the script captures the text.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Fri Jan 14, 2011 3:56 am   
 
Did you set your tags as I explained above, too?

I may have missed something, but nothing comes to mind right now.
Reply with quote
Tanuki
Novice


Joined: 06 Nov 2008
Posts: 38

PostPosted: Fri Jan 14, 2011 4:00 am   
 
Turns out on mine there was a second MiniMapper Window created... I deleted that and the script works.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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