Hey Nick,
I've done the following, as you've said.
-- -----------------------------------------------------------------
-- 1. Here on yellow line - room name
-- -----------------------------------------------------------------
function Name_Line (name, line, wildcards, styles)
if string.match (line, "^%[") then
return
end -- if chat line
got_hyphens = false
roomname = Trim (styles [1].text:sub (1, 50))
roomdesc = ""
exits = {}
exits_str = ""
map_str = ""
got_exits = false
EnableTrigger ("Exits_Line", true)
EnableTrigger ("Hyphen_Line", true)
EnableTrigger ("Other_Line", true)
EnableTrigger ("Name_Line", false)
end -- Name_Line
and here
-- -----------------------------------------------------------------
-- 4. Here on exits line
-- -----------------------------------------------------------------
function Exits_Line (name, line, wildcards)
exits_str = string.gsub (wildcards [1]:lower (), "[()]", "")
mapper.print "Got exits line"
EnableTrigger ("Exits_Line", false)
got_exits = true
end -- Exits_Line
Now I've got
The Temple of Krynn
[Exits: north east south west up]
Got exits line
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.
in every room, but it's not linking any rooms.
In most cases it's adding rooms to the database, but the exits are either horribly wrong, or when I move rooms again it's not updating at all, and the exits are from the previous room. (I understand you need to walk back and forth to link a room, it doesn't work though)
So, it's still just drawing the room you're in, and that's it. I've tested the plugin on Materia Magica, and it worked perfectly.
There are quite a few rooms with the same NAME and long desc, maybe this is the problem, but I'm in the recall area and it won't draw rooms at all, not even the rooms I'm in. (The recall area should be easy, as it's just like a + sign in design.)
I get the "got exits line" in like every room, but maybe it's not actually getting exits. (Maybe I filled your information in incorrectly)
Could it be my database is already filled with some of these rooms, so it won't draw them again? (This wouldn't be the linking problem, just the refusal to draw maybe?)
I've reinstalled it, and now I'm not matching exits at all anymore... Heh. |