Global Command: replaceGame

From The Official Visionaire Studio: Adventure Game Engine Wiki
(Redirected from ReplaceGame)

Replaces the Visionaire game file and starts the game from the beginning. You may pass a different game file (e. g. the next episode of a series) or the current game file, if you want to restart the game with all variables reset.


Syntax

replaceGame(game_file)


Parameters

Parameter Type Description
game_file string Path to a Visionaire game file (.vis, .ved, or .veb), relative from the current file.


Return values

none


Examples

Example 1: Start "MyGame" from the very beginning.

replaceGame("MyGame.vis")