I think you could use hidden item which contain the ending text. Also place an exit on the same tile to teleport the player to the exit room. The end room could be a room with word The End on it. Hope this helps
But how do you make it so that the text displays before you are sent to the new room? I've been trying to do this and every single time, the "room exit" occurs before the text.
I think the best practice for accomplishing this without hacks is two steps:
- Hidden item before exit that performs the logic to see which ending text the player should be shown. This item stores the ending text to a variable.
- Ending displays appropriate ending text using 'say'
I wrote a tutorial which covers this and variables in general: https://ayolland.itch.io/trevor/devlog/29520/bitsy-variables-a-tutorial