[Solved] How to get the name of next room ?

As title says I want to know the next room name

I tried

- room_next(room)
- room + 1

still no luck

Edit: room_get_name(room + 1) works fine
Last edited:


To make sure that you end up with the right index it's better to use room_next. It should work.
When you use (room + 1) you quite happily assume that rooms are numbered consecutively. But that may not always be the case or could change in the future.