Closed QwindorRousseau closed 4 years ago
@QwindorRousseau I was able to retrofit the migrate feature function used by Starmourn. Attached is a map with features all set up. Let me know what you think.
I set up a bunch of them GOTO FEATURE WILDERNESS, GOTO FEATURE HARBOUR, GOTO FEATURE BANK...for example.
See them all with FEATURE LIST (mapping mode on)
Also, I was able to steal a bit of other code and create this function. It will list out all rooms that have a feature (or multiple) assigned.
local m = {}
for r, _ in pairs(getRooms()) do
for _, f in pairs(mmp.getRoomMapFeatures(r)) do
m[f] = m[f] or {}
m[f][#m[f]+1] = r
end
end
if not next(m) then mmp.echo("This map has no features on it. Do mc on and feature create <feature> and then rcf <feature to add them!") return end
for f, rooms in pairs(m) do
table.sort(rooms)
echo('\n')
mmp.echo("Rooms with the <"..mmp.settings.echocolour..">"..f.."<reset> feature:")
for i = 1, #rooms do
cecho(string.format(" <sea_green>%-5s<reset> %-35s <dim_grey>(in<reset> %s<dim_grey>)\n", rooms[i], getRoomName(rooms[i]), mmp.areatabler[getRoomArea(rooms[i])]))
end
end
That might be something you want to put into the mapper script. I put this here mainly because it was for the crowdmap for achaea that we were looking at possibly adding those.
They are all added in the attached map in the comment above, check it out :)
Map is for Achaea Crowd Map
Placing this here as a reminder to myself to look into the feature system of the map that was implemented after the crowdmap was originally started in place of room marks.