Game flow commands

The command allows you to modify the original game flow, but please note that deviations from the original script may result in unexpected behavior. If you encounter any bugs, we encourage you to report your experience by opening an issue on GitHub. The overall structure is as follows:

{
  "command": "play_level",
  "param": 5,
}

Currently the following commands are available.

Command Description Parameter
noop Continue the flow as normal. N/A
play_level Play a specific level. Level to play.
load_saved_game Load a specific savegame. Save slot number to use
play_cutscene Play a specific cutscene. Cutscene number to play
play_demo Play a specific demo. Demo number to play.
play_fmv Play a specific movie. Movie number to play.
exit_to_title Return the game to the title screen. N/A
level_complete End the current sequence inside level sequences, do nothing otherwise. N/A
exit_game Exit the game to desktop. N/A
select_level Play a specific level (and reset inventory). Level number to play.
restart_level¹ Restart the currently played level. N/A
story_so_far¹ Play the movies and cutscenes up until the currently played level. Save slot number to use

¹ Tomb Raider 1 only.

Additional notes:

  • All numbers (levels, cutscenes, ...) start with 0.