Difference between revisions of "Traitor.tbl"

From FreeSpace Wiki
Jump to: navigation, search
m (forgot the category)
m (update)
Line 1: Line 1:
 +
Revision information.. <!-- Please update this information when page is updated -->
 +
::'''3.6.x branch:''' 2.53.2.7
 +
::'''3.7 branch:''' 2.59
 +
 +
 
Traitor.tbl is used for defining the text displayed when the player has managed to get '''''traitor''''' status for himself and survive the mission.
 
Traitor.tbl is used for defining the text displayed when the player has managed to get '''''traitor''''' status for himself and survive the mission.
 +
  
 
==Format==
 
==Format==
 
*Table consists of very FreeSpace 2 mission file like format
 
*Table consists of very FreeSpace 2 mission file like format
*Table begings with '''#Debriefing_info'''
+
*Table begins with '''#Debriefing_info'''
 +
 
  
 
==Table contents==
 
==Table contents==
 +
  
 
===$Num stages:===
 
===$Num stages:===
 
*This sets the number of stages in the traitor debriefing
 
*This sets the number of stages in the traitor debriefing
 
*Should always have the value 1
 
*Should always have the value 1
*Syntax: ''1''
+
*Syntax: '''Integer'''
 +
 
  
 
===$Formula:===
 
===$Formula:===
 
*Sets the trigger for the event
 
*Sets the trigger for the event
*Should always be true
+
*Should always be '''''true'''''
*Syntax: ( ''true'' )  
+
*Syntax: ( '''true''' )  
 +
 
  
 
===$Multi text===
 
===$Multi text===
 
*Sets the text displayed on the debriefing screen. Value refers to [[tstrings.tbl]] for translation
 
*Sets the text displayed on the debriefing screen. Value refers to [[tstrings.tbl]] for translation
 
*Is always immediately followed by '''$end_multi_text'''
 
*Is always immediately followed by '''$end_multi_text'''
*Syntax: XSTR("''string''", ''integer'')
+
*Syntax: XSTR("'''String'''", '''Integer''')
 +
 
  
 
===$Voice:===
 
===$Voice:===
 
*Defines the voice file that is played during the traitor debriefing
 
*Defines the voice file that is played during the traitor debriefing
*Syntax: ''string''
+
*Syntax: '''String'''
 +
 
  
 
===$Recommendation text:===
 
===$Recommendation text:===
 
*Sets the recommendation text displayed on the debriefing screen. Value refers to [[tstrings.tbl]] for translation
 
*Sets the recommendation text displayed on the debriefing screen. Value refers to [[tstrings.tbl]] for translation
 
*Is always immediately followed by '''$end_multi_text'''
 
*Is always immediately followed by '''$end_multi_text'''
*Syntax: XSTR("''string''", ''integer'')
+
*Syntax: XSTR("'''String'''", '''Integer''')
 +
 
  
 
==Sample==
 
==Sample==

Revision as of 13:10, 9 August 2007

Revision information..

3.6.x branch: 2.53.2.7
3.7 branch: 2.59


Traitor.tbl is used for defining the text displayed when the player has managed to get traitor status for himself and survive the mission.


Format

  • Table consists of very FreeSpace 2 mission file like format
  • Table begins with #Debriefing_info


Table contents

$Num stages:

  • This sets the number of stages in the traitor debriefing
  • Should always have the value 1
  • Syntax: Integer


$Formula:

  • Sets the trigger for the event
  • Should always be true
  • Syntax: ( true )


$Multi text

  • Sets the text displayed on the debriefing screen. Value refers to tstrings.tbl for translation
  • Is always immediately followed by $end_multi_text
  • Syntax: XSTR("String", Integer)


$Voice:

  • Defines the voice file that is played during the traitor debriefing
  • Syntax: String


$Recommendation text:

  • Sets the recommendation text displayed on the debriefing screen. Value refers to tstrings.tbl for translation
  • Is always immediately followed by $end_multi_text
  • Syntax: XSTR("String", Integer)


Sample

  • Part of the retail FreeSpace 2 table
#Debriefing_info

$Num stages: 1

$Formula: ( true ) 
$Multi text
   XSTR("For the crime of high treason...", 3241)

$end_multi_text
$Voice: traitor_debrief.wav

$Recommendation text:
   XSTR("Friendly ships are not valid targets.", 3242)

$end_multi_text