Room changing places (help!)

#1

Hey, y’all!

I’m working on a more personal intfiction right now, and was wondering how I would go about solving a problem I’m having.

The player is in a room called Amongst the Waves. They go down to a room called Crash. They then are told to go up, and I would like them to end up in a room called The Crack in the Road.

In further explanation, I need Amongst the Waves to be replaced by The Crack in the Road when the player visits Crash.

Thanks!

#2

It’s simpler than you’d expect:

Amongst the Waves is a room. The description is "The first room is Amongst the waves.".

Crash is down from amongst the waves. The description is "The place of crashing. From here, there is no going back to amongst the waves. Only up to the crack in the road.".

The Crack in the Road is up from Crash. The description is "The road cracked and you are here.".

Example output:

Amongst the Waves
The first room is Amongst the waves.

>d

Crash
The place of crashing. From here, there is no going back to amongst the waves. Only up to the crack in the road.

>u

Crack in the Road
The road cracked and you are here.

>