Przejdź do treści

Game functions

Game functions are used to control general game related operations, playing videos, and displaying chapter windows.

Functions

IntroduceChapter

IntroduceChapter

Dipslays a new chapter window on the screen

func void IntroduceChapter(var string chapter, var string text, var string texture, var string sound, var int waittime) 

Parameters

  • var string chapter - upper text (chapter number)
  • var string text - lower text (chapter title)
  • var string texture - back texture
  • var string sound - sound to play
  • var int waittime - apperance time in milliseconds

ExitGame

ExitGame

Exits the game

func void ExitGame() 

ExitSession

ExitSession

Exits the current session to the main menu

func void ExitSession() 

Warning

Warning

This function is only available in Gothic 2

Perc_SetRange

Perc_SetRange

Sets the range of passive perceptions for all NPCs

func void Perc_SetRange(var int percid, var int range) 

Parameters

  • var int percid - perception ID
  • var int range - range in cm

PlayVideo

PlayVideo

Plays a video

func int PlayVideo(var string filename) 

Parameters

  • var string filename - name of the video file

Return value
The function returns TRUE if the video was played successfully, FALSE otherwise

PlayVideoEx

PlayVideoEx

Plays a video and allows to exit the session

func int PlayVideoEx(var string filename, var int screenblend, var int exitsession) 

Parameters

  • var string filename - name of the video file
  • var int screenblend - if TRUE, the screen will be blended out before the video is played
  • var int exitsession - if TRUE, the session will be exited after the video is played

Return value
The function returns TRUE if the video was played successfully, FALSE otherwise

Warning

This function is only available in Gothic 2

Deprecated

Game_InitEnglish

Game_InitEnglish

func void Game_InitEnglish() 

Warning

This function is only available in Gothic 2

Game_InitEngIntl

Game_InitEngIntl

func void Game_InitEngIntl() 

Warning

This function is only available in Gothic 2

Game_InitGerman

Game_InitGerman

func void Game_InitGerman() 

Warning

This function is only available in Gothic 2

SetPercentDone

SetPercentDone

func void SetPercentDone(var int percentdone) 

Tal_Configure

Tal_Configure

func void Tal_Configure(var int talent, var int value)