Hey guys,
I know you guys don't have time to help write an adaptation of every single mud, so I'm just asking for guidance on matching one part of it.
https://raw.githubusercontent.com/nickgammon/plugins/master/Materia_Magica_Mapper.xml
The code is from above^^^
I don't have a compass on my mud, so I changed HYPHEN_LINE from
to match my exits, [Exits: *], just so I don't have to deal with it, at least until I figure out how to make this work. (I know you're going to hate me for that)
Anyways, I'm having issues actually matching the exits.
The original trigger looks to match " Visible Exits: *",
and I've changed it to match my mud, where it might look like this.
I keep getting the error message "WARNING: I did not see a "Visible Exits:" line.
The mapper will not connect rooms to other rooms without it.
Please turn on the exits by typing:
"
So I know I'm not matching on the exits line, but I'm not sure why.
This is why I need your help.
The original string for matching is:
I changed it to a few variations, but decided to try:
Still no luck. Any chance to help me match my exits so I can get it to link the rooms and work properly?
Thanks for your help, always.
[EDIT] Improved formatting.
I know you guys don't have time to help write an adaptation of every single mud, so I'm just asking for guidance on matching one part of it.
https://raw.githubusercontent.com/nickgammon/plugins/master/Materia_Magica_Mapper.xml
The code is from above^^^
I don't have a compass on my mud, so I changed HYPHEN_LINE from
<trigger
back_colour="8"
bold="y"
enabled="n"
match="(-------------------------------------------------)*"
match_back_colour="y"
match_bold="y"
match_inverse="y"
match_italic="y"
match_text_colour="y"
name="Hyphen_Line"
script="Hyphen_Line"
sequence="100"
text_colour="12"
>
</trigger>
to match my exits, [Exits: *], just so I don't have to deal with it, at least until I figure out how to make this work. (I know you're going to hate me for that)
Anyways, I'm having issues actually matching the exits.
The original trigger looks to match " Visible Exits: *",
and I've changed it to match my mud, where it might look like this.
The Temple of Krynn
[Exits: north east south west up]
This is the most beautiful Temple you've ever seen, gold and silver
everywhere. A red carpet leads you north towards the Temple altar or south
towards the room of donations. There is an archway to the west. A golden
sign above it simply says, "Incarnations". To your east is a small room with
a staircase leading down. A marble stairway leads up to the streets of
Krynn. There is a small shimmering plaque on the wall.
( 4) A ball of light shines bright
( 2) A long shiny sword has been left here.
( 2) A shiny breastplate has been left here.
A large golden fountain stands in the middle of the room.
(AFK) (Glowing) (Blue Aura) (Translucent) Blackfell is here.
(Glowing) (Slowed) (Blue Aura) (Translucent) The tranquil water dragon Emile Khadaji is here.
(AFK) (Glowing) (Invisible) (Hasted) (Blue Aura) Madcoil says 'AFK!'
(Glowing) (Hasted) (Blue Aura) Djaron guards the Temple with his life.
<4842/5530 hp 2447/2447 m 1927/1927 mv 67528070 xp>
I keep getting the error message "WARNING: I did not see a "Visible Exits:" line.
The mapper will not connect rooms to other rooms without it.
Please turn on the exits by typing:
"
So I know I'm not matching on the exits line, but I'm not sure why.
This is why I need your help.
The original string for matching is:
exits_str = string.gsub (wildcards [1]:lower (), "[()]", "")
I changed it to a few variations, but decided to try:
exits_str = string.match (line, "^Exits: (.*)")
Still no luck. Any chance to help me match my exits so I can get it to link the rooms and work properly?
Thanks for your help, always.
[EDIT] Improved formatting.