Adventure directory - rmed/textventures GitHub Wiki
Adventures are located in the adventures directory of the Configuration directory. In order to show the structure, let's take the Tutorial adventure found in the adventure repository as an example:
Tutorial/
metadventure.xml --- Metadata file
english/ --- Localized version of the scenarios (english)
commands --- Scenario files
commands_2
commands_2_east
commands_2_north
commands_2_south
commands_2_west
end
game_saving
intro
spanish/ --- Localized version of the scenarios (spanish)
commands --- Scenario files
commands_2
commands_2_east
commands_2_north
commands_2_south
commands_2_west
end
game_saving
intro
Note that both the english and spanish directories contain exactly the same files (the order of these files is not important). The only different between these scenario files is the language in which their text is written: commands are the same (translated), jumps point to the same destination, etc.
TextVentures knows about these "localized" directories if, and only if, you specify their existence in the Adventure metadata file. Once a game is started, the player is able to choose the language in which to play the adventure regardless of the language chosen in the main menu.