Global Command: replaceGame

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 00:28, 3 May 2023 by EK (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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