Difference between revisions of "Global Command: replaceGame"

From The Official Visionaire Studio: Adventure Game Engine Wiki
(Created page with "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...")
 
(No difference)

Latest revision as of 01:28, 3 May 2023

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")