Difference between revisions of "Traitor.tbl"

From FreeSpace Wiki
Jump to: navigation, search
m (fso revision)
(Corrected version tagging)
Line 30: Line 30:
 
*Is always immediately followed by '''$end_multi_text'''
 
*Is always immediately followed by '''$end_multi_text'''
 
*Syntax: XSTR("'''String'''", '''Integer''')
 
*Syntax: XSTR("'''String'''", '''Integer''')
{{Table201|Starting with 20.1.0, multiple Promotion Text fields may exist, each (except for the default) followed by its own Persona.  The mission's Debriefing Persona Index controls which one is used.}}
+
{{Table202|Starting with 20.1.0, multiple Promotion Text fields may exist, each (except for the default) followed by its own Persona.  The mission's Debriefing Persona Index controls which one is used.}}
  
  
 
===$Persona===
 
===$Persona===
{{Table201|
+
{{Table202|
 
*Optional.  Defines the persona associated with this text.  If specified, this particular text will be chosen when the Debriefing Persona Index matches.
 
*Optional.  Defines the persona associated with this text.  If specified, this particular text will be chosen when the Debriefing Persona Index matches.
 
*Syntax: '''Integer'''}}
 
*Syntax: '''Integer'''}}

Revision as of 18:02, 5 August 2020

Revision information.....

FSO Revision: ecc678c1e5a7c359af41b986cf0931c5de7d583a
Note: Please update the version when the page is updated. If your edit had nothing to do with new code entries then please do not edit the version


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


List of Tables

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)
FS2 Open, 21.0: Starting with 20.1.0, multiple Promotion Text fields may exist, each (except for the default) followed by its own Persona. The mission's Debriefing Persona Index controls which one is used.


$Persona

FS2 Open, 21.0:
  • Optional. Defines the persona associated with this text. If specified, this particular text will be chosen when the Debriefing Persona Index matches.
  • Syntax: 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