How do I use lastlocation to track where a player has come from? I feel like I’m missing sth very basic, and it’s all on me.
I just want a different event/dialogue to happen when the player comes back to one location after being in a specific other one. I thought it would be something like
[$if lastlocation == foo] and then my little function that sets the focus and changes the counter to pull a specific bit of dialogue [$end]
But it never seems to work. Maybe this is because I’m not sure what “foo” is in this situation? I’ve printed [[lastlocation]] to screen to get the Location proxy number, but nothing I’ve done with that does anything. Help?
Oh, last thing: it would be brilliant if this could be in on_enter so it fire automatically upon entering the room from the other one. (Narratively it’s about leaving a place and someone running after you to give you a piece of information, so I don’t want the player to have to click on anything.)
If anyone (@zarf ?) has any insights they would be greatly appreciated!
—daggermoor / David