 |
Fizban1216 Apprentice
Joined: 03 Feb 2007 Posts: 170
|
Posted: Fri Mar 02, 2007 2:27 pm
Automapper, Help needed. |
Hmm, I'm having issues getting the automapper to work due to a minimap that the game uses. Some sample rooms are below.
East Temple Street
% # The Temple of Aecindo looms to the east here, and the traffic has
%%"% # increased dramatically on the street. The cobblestone has given way to iron
###*## as the surfacing for the road, an obviously expensive way to deal with the
"%"% # heavy traffic that converges here on holidays. To the north is a shop which
" sells souvenirs, and to the south is the Sundering Monument, which stands
Paths: [ North East South West ]
You trudge into the snowy city.
% East Temple Street
#% % Temple Street runs east to west here, toward the markets in the west.
# %%"% The ground is kept swept clean for the pilgrims to the Temple of Aecindo in
###*## the east. To the north is the hospital.
#%"%"%
%
Paths: [ North East South West ]
You leave the stormy city streets and take shelter indoors.
% The Monument of the Sundering
%%"% # A huge stone pillar rises from the ground here, rising hundreds of
###### feet into the sky. The Monument of the Sundering was built to remember the
"%"* # Dark Times that followed the Sundering, and to honour those who helped
"# rebuild civilization. The stone is a stark white, and atop it rests a
golden star with seven points, the symbol of Aecindo. It is said that
Paths: [ North ] |
|
|
 |
Odoth Wanderer

Joined: 13 Nov 2004 Posts: 54 Location: Visalia, CA
|
Posted: Fri Mar 02, 2007 5:13 pm |
Well you could always try turning the mini map off
Other than that I'm not sure what would be best. I believe there is a way to override the automapper with triggers. Check out this topic and see if you can adjust what Matt Lofton set up for your own purposes.
http://forums.zuggsoft.com/phpbb/viewtopic.php?t=26672 |
|
_________________ *ribbit* |
|
|
 |
Fizban1216 Apprentice
Joined: 03 Feb 2007 Posts: 170
|
Posted: Fri Mar 02, 2007 8:46 pm |
True, and I had pondered doing just that. Also any way to make it not read the sector entrance/exit messages as the room Title?
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Mar 02, 2007 10:02 pm |
Yep. In the #TRIGGER pattern, surround the first part of the pattern in parentheses. In the code, change #TAG name to #TAG name %1.
Every (or nearly so) #TAG option allows you to provide the optional exact string expression to give to the automapper, rather than just giving it the entire line. |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
Fizban1216 Apprentice
Joined: 03 Feb 2007 Posts: 170
|
Posted: Sat Mar 03, 2007 10:02 pm |
I'm sure I'm doing something stupid but I keep getting it to not flag the correct parts.
Here's what I'm typing:
Code: |
#trigger {^([%w%s])~[sector:*~]$} {#tag name %1}
#condition {*} {#tag desc} {within|param=1}
#condition {~[Paths: (*)~]} {#tag exit %1}
|
I'm sure I'm missing something obvious, with XML and the minimap turned off a room looks like:
Code: |
Flustered Scholars Healing Room
This large room has the realms highest vaulted ceilings and some of the most
extravagant carving. Depicted on the walls and ceiling are graven images of the
greatest members of flustered Scholars. Key among these are those of Diago and
Kelemvor the God of Death.
Paths: [ North East West ]
|
Code: |
You splash into the stormy fields.
The City Common Area
This is the common room of the City of Karendas. It serves as a public
building and meeting place for the people of the realms. A sprawling lot of
green grass surrounds a deep black marble courtyard.. In the direct
center of the commons sits a grand fountain forged of a beautiful black
marble. Often times this area becomes quite busy as people interact.
Stairs to the side lead downward to a school, teaching those new to the
realms the skills needed to survive.
[**DOWN TO THE MUD SCHOOL**]
[**UP TO HEALING/PRACTICE**]
Paths: [ North Up Down ]
|
|
|
|
 |
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Sat Mar 03, 2007 10:34 pm |
I find that it is easier to use descpara instead of desc, also the paths trigger should be a trigger by itself NOT a condition.
So
Code: |
#trigger {^([%w%s])~[sector:*~]$} {#tag name %1}
#condition {*} {#tag descpara} {within|param=1} |
Code: |
#trigger {Paths:%s~[(*)~]} {#tag exit %1} |
This worked with the text.
Code: |
You splash into the stormy fields.
The City Common Area
This is the common room of the City of Karendas. It serves as a public
building and meeting place for the people of the realms. A sprawling lot of
green grass surrounds a deep black marble courtyard.. In the direct
center of the commons sits a grand fountain forged of a beautiful black
marble. Often times this area becomes quite busy as people interact.
Stairs to the side lead downward to a school, teaching those new to the
realms the skills needed to survive.
[**DOWN TO THE MUD SCHOOL**]
[**UP TO HEALING/PRACTICE**]
Paths: [ North Up Down ] |
Good luck. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
 |
Fizban1216 Apprentice
Joined: 03 Feb 2007 Posts: 170
|
Posted: Sun Mar 04, 2007 1:10 am |
*snicker* You knew what MUD that text was from and actually logged on? (I'm assuming if you knew that worked with a specific room anyway)
|
|
|
 |
Fizban1216 Apprentice
Joined: 03 Feb 2007 Posts: 170
|
Posted: Sun Mar 04, 2007 1:23 am |
Code: |
Flustered Scholars Clan Shop
There is a long winding line of Scholars getting their powerful magical components at
special low discounts available only to members of Flustered Scholars. On shelves all
around the room is a variety of goods ranging from simple scrolls to potions and other
unique items.
Paths: [ East ]
[8442/8442hp 9305/9305mn 1215mv][3806tnl (0)wait]
|
I's labeling the exits and room name correctly, but marking my prompt as the room description. |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Mar 04, 2007 2:02 am |
Quote: |
#trigger {^([%w%s])~[sector:*~]$} {#tag name %1}
|
If this trigger even matches anything in that room info, ZMud's got a near-fatal logical flaw in its parser. Did you actually try to use that trigger as-is, Fizban, or did you simply not remember to remove it when you cut-and-pasted to the post? You incorporated my further advice regarding #TAG name %1, but that was predicated on you making sure the pattern was correct or that you did in fact have the [sector: stuff] text there. |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Sun Mar 04, 2007 5:03 am |
Actually I did NOT fix the roomname trigger and I should have But it DID work with the text.
What I did was I created a variable and pasted the text from the box provided into it. Saved the trigger and created an alias named south, Then in the south alias I put #show @roomtext.
Then I ran the configurer. It came up, sent the south command which called the alias that sent the text. Five seconds later the box came up and everything was the correct color.
If you fix the name trigger you will likely have better luck. You DO need to use the condition and the exits trigger I gave you though.
And you need to make a trigger that matches the prompt and tag it prompt. I did not have a leading prompt on the text I tested, and again I forgot to make one. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
 |
|
|