I was wondering if it would be possible to create a dynamic teleporter.
So one teleporter leads to different destinations based on an event.
The idea I have is to create a dungeon system which changes when defeated to a harder version of the dungeon so you have a reason to go back to gather more.
What way could be the best way to do it?
Yes, you can do that by directly calling hero:teleport().
Or you can use a normal teletransporter, and define its on_activated() event to change its destination at the very last moment.
Or you can also make two teletransporters, enabling one and disabling the other one.