As most probably know, the Lusternia snowglobe travel artifact takes you to one of two places (one activation takes you to one place, using it again from that place takes you to a third place), and it's more commonly used to get to the second, much more useful place than the first. I figured out, though, that due to the way the mapper creates special exits when travel items can be used, the path thingy cannot understand that it's possible to plan a path that involves activating it twice.
Sooooo i clumsily reverse engineered what was going on in the mmp.tempSpecialExit function and made a new one, mmp.tempSpecialExitRemote, which is identical except that it lets you specify BOTH rooms of a temp special exit:
Code: Select all
function mmp.tempSpecialExitRemote(source, destination, command, weight)
table.insert(exitsCreated, command)
addSpecialExit(source, destination, command)
if weight then
setExitWeight(mmp.currentroom, command, weight)
end
end
Code: Select all
if mmp.settings.snowglobe then
if gmcp.Room.Info.area == "the Great Spirit Tree" then
mmp.tempSpecialExit(6831, "shake snowglobe")
elseif not table.contains(gmcp.Room.Info.details, "an Aetherbubble") then
mmp.tempSpecialExit(10992, "shake snowglobe")
mmp.tempSpecialExitRemote(10992, 6831, "shake snowglobe")
end
end