Skip to content


The template module contains the utilities to create file templates for the Unscripted minigame code.

The template files are generated when the game starts and are replaced if none are found.


generate_template(filepath, for_level=0)

Generate a template file using the Minigame APIs.


  • filepath (str): The path to where the template file will be written.
  • for_level (int): The corresponding level for the minigame. Defaults to 0.