Automatically going to a room

I’m in the middle of making my first game and I want to know how to automatically go to a room in Inform.
(I’m using Real-Time Delays by Erik Temple if you’re wondering.)
Here is my code:

After going to Forest Path:
Wait 1500 ms before continuing.
[code to go to Forest here]

F is a room. "Dark but relaxing woods.". The printed name of F is "Forest"
Understand F as "Forest"

You can just write “move the player to F” or “now the player is in F”. (The only difference between these is that if you don’t want to print a room description after the move, you can write “move the player to F, without printing a room description”.)

A couple of points–one is, you will want to join this on with a semicolon rather than a period, like this:

After going to Forest Path:
Wait 1500 ms before continuing;
move the player to F.

Also, your Understand statement should go the other way, with the understood text first, like this:

Understand "Forest" as F.

You may not need this, though because by default there’s no way for the player to refer to the name of a room. Unless you’ve written some code that allows the player to refer to the room, or you’re using an extension that does that, you don’t need to worry about what is understood as the room.

The code compiles, but doesn’t seem to move me?

It’s working for me. Here’s a complete source code:

Include Real-Time Delays by Erik Temple.

Meadow is a room. Forest Path is north of Meadow.

F is a room. "Dark but relaxing woods.". The printed name of F is "Forest".

After going to Forest Path:
Wait 1500 ms before continuing;
now the player is in F.

Go north from the starting room and it will pause and then put you in the Forest.

If your code is too big to post here, you can try reducing it until you come up with a complete example that demonstrates the problem (that you’re not moving)–sometimes that even helps you solve the problem!

This is my code:

Forest Path is south of Outside House.

Forest Path is a room. "Quite a nice path".
tree is in Forest Path.

After going to Forest Path:
Wait 1500 ms before continuing.
now the player is in F.

F is a room. "Dark but relaxing woods.". The printed name of F is "Forest"

For one, you put a period after “continuing.” That needs to be a semicolon.

Thanks! That somehow worked!

You’re welcome, but it was @matt_weiner’s code that was the solution. :wink:

Oooooh I didn’t realise lol. It’s the smaller things that you don’t realise mostly.