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
Parameters
var string chapter
- upper text (chapter number)var string text
- lower text (chapter title)var string texture
- back texturevar string sound
- sound to playvar int waittime
- apperance time in milliseconds
ExitGame
ExitSession
ExitSession
Exits the current session to the main menu
Warning
Warning
This function is only available in Gothic 2
Perc_SetRange
Perc_SetRange
Sets the range of passive perceptions for all NPCs
Parameters
var int percid
- perception IDvar int range
- range in cm
PlayVideo
PlayVideo
Plays a video
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
Parameters
var string filename
- name of the video filevar int screenblend
- if TRUE, the screen will be blended out before the video is playedvar 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_InitEngIntl
Game_InitGerman
SetPercentDone
SetPercentDone
Tal_Configure
Tal_Configure