Re: (mapping script) Mudlet Mapper script for Achaea/IREs
Posted: Wed Aug 22, 2018 5:13 am
Hello, I just added one tiny thing to the mapping script that I thought I'd share...
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:
Then, i edited the relevant part of the lusternia "wings" scripts that handled the snowglobe:
Now, whenever it's possible to use the globe to get to the first, fairly useless place, the mapper knows that it's ALSO possible to immediately use the globe again to get to the next place. Which is nice i guess?
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