Log external functions
Log externals are used to manipulate players log and to track quest progress.
Log_CreateTopic
Log_CreateTopic
Creates a new log topic with the name topicName
under the section logSection
var string topicName
Unique string used to identify and name the topicvar int logSection
Indicates in which section to create the topic in.
Takes constantsLOG_MISSION
,LOG_NOTE
as values
Log_AddEntry
Log_AddEntry
Adds an entry to a log topic with the name topicName
under the section logSection
var string topicName
Unique string used to identify and name the topicvar string entry
Content of the new entry
Info
In the engine the Log_AddEntry()
is wrapped in a B_LogEntry()
function. This function also handles printing the "New Journal Entry" message to the screen and playing the sound effect.
Log_SetTopicStatus
Log_SetTopicStatus
Changes the status of the topic with the name topicName
var string topicName
Unique string used to identify and name the topicvar int status
The status to be set.
Takes constantsLOG_RUNNING
,LOG_SUCCESS
,LOG_FAILED
,LOG_OBSOLETE
as values
zParserExtender
The log external function selection is missing functions to retrieve the status of a log entry. There are only functions to read the log status (as discussed on Inside Gothic). As a result of this the original scriptwriters had to define additional variable to track the log status in the scripts, even though the value is being already tracked by the engine. zParserExtender fixes this by introducing new log external functions.