Difference between revisions of "Medals.tbl"

From FreeSpace Wiki
Jump to: navigation, search
m
(add medal positions)
Line 1: Line 1:
{{TableVersion|5154}}
+
{{TableVersion|9773}}
  
 
The '''medals.tbl''' is used for defining the various medals the player can achieve while playing the game.
 
The '''medals.tbl''' is used for defining the various medals the player can achieve while playing the game.
Line 8: Line 8:
 
==Format==
 
==Format==
 
*Table begins with '''#Medals'''
 
*Table begins with '''#Medals'''
*Invidual medal entries
+
*Optional positions of headers
 +
*Individual medal entries
 
*Table ends with '''#End'''
 
*Table ends with '''#End'''
  
  
==Medals==
+
==#Medals==
  
 +
===+Callsign Position 640:===
 +
{{Table371|
 +
*Optional. Specifies where the player's callsign should appear on the screen, for the GR_640 resolution.  An X value of -1 causes the callsign to be centered on the X-axis.
 +
*Syntax: '''Integer X, Integer Y'''
 +
*Default: '''-1, 54'''}}
 +
 +
===+Callsign Position 1024:===
 +
{{Table371|
 +
*Optional. Specifies where the player's callsign should appear on the screen, for the GR_1024 resolution.  An X value of -1 causes the callsign to be centered on the X-axis.
 +
*Syntax: '''Integer X, Integer Y'''
 +
*Default: '''-1, 89'''}}
 +
 +
===+Label Position 640:===
 +
{{Table371|
 +
*Optional. Specifies where the medal label should appear on the screen, for the GR_640 resolution.  Note that it is necessary to specify the width of this area in addition to X and Y, because the label is centered within it.
 +
*Syntax: '''Integer X, Integer Y, Integer W'''
 +
*Default: '''241, 458, 300'''}}
 +
 +
===+Label Position 1024:===
 +
{{Table371|
 +
*Optional. Specifies where the medal label should appear on the screen, for the GR_1024 resolution.  Note that it is necessary to specify the width of this area in addition to X and Y, because the label is centered within it.
 +
*Syntax: '''Integer X, Integer Y, Integer W'''
 +
*Default: '''386, 734, 480'''
 +
}}
  
 
===$Name:===
 
===$Name:===
 
*Defines the name of the medal
 
*Defines the name of the medal
 
*Syntax: '''String'''
 
*Syntax: '''String'''
 
  
 
===$Bitmap:===
 
===$Bitmap:===
Line 24: Line 48:
 
*Syntax: '''String'''
 
*Syntax: '''String'''
  
 +
===+Position 640:===
 +
{{Table371|
 +
*Optional. Specifies where the medal bitmap should appear on the screen, for the GR_640 resolution.
 +
*Syntax: '''Integer X, Integer Y'''
 +
*Defaults to the appropriate FS2 medal position}}
 +
 +
===+Position 1024:===
 +
{{Table371|
 +
*Optional. Specifies where the medal bitmap should appear on the screen, for the GR_1024 resolution.
 +
*Syntax: '''Integer X, Integer Y'''
 +
*Defaults to the appropriate FS2 medal position}}
  
 
===$Num mods:===
 
===$Num mods:===

Revision as of 02:43, 9 September 2013

Revision information.....

FSO Revision: 9773
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 medals.tbl is used for defining the various medals the player can achieve while playing the game.


List of Tables

Format

  • Table begins with #Medals
  • Optional positions of headers
  • Individual medal entries
  • Table ends with #End


#Medals

+Callsign Position 640:

FS2 Open, 3.7.2:
  • Optional. Specifies where the player's callsign should appear on the screen, for the GR_640 resolution. An X value of -1 causes the callsign to be centered on the X-axis.
  • Syntax: Integer X, Integer Y
  • Default: -1, 54

+Callsign Position 1024:

FS2 Open, 3.7.2:
  • Optional. Specifies where the player's callsign should appear on the screen, for the GR_1024 resolution. An X value of -1 causes the callsign to be centered on the X-axis.
  • Syntax: Integer X, Integer Y
  • Default: -1, 89

+Label Position 640:

FS2 Open, 3.7.2:
  • Optional. Specifies where the medal label should appear on the screen, for the GR_640 resolution. Note that it is necessary to specify the width of this area in addition to X and Y, because the label is centered within it.
  • Syntax: Integer X, Integer Y, Integer W
  • Default: 241, 458, 300

+Label Position 1024:

FS2 Open, 3.7.2:
  • Optional. Specifies where the medal label should appear on the screen, for the GR_1024 resolution. Note that it is necessary to specify the width of this area in addition to X and Y, because the label is centered within it.
  • Syntax: Integer X, Integer Y, Integer W
  • Default: 386, 734, 480

$Name:

  • Defines the name of the medal
  • Syntax: String

$Bitmap:

  • Defines the bitmap used for the medal
  • Syntax: String

+Position 640:

FS2 Open, 3.7.2:
  • Optional. Specifies where the medal bitmap should appear on the screen, for the GR_640 resolution.
  • Syntax: Integer X, Integer Y
  • Defaults to the appropriate FS2 medal position

+Position 1024:

FS2 Open, 3.7.2:
  • Optional. Specifies where the medal bitmap should appear on the screen, for the GR_1024 resolution.
  • Syntax: Integer X, Integer Y
  • Defaults to the appropriate FS2 medal position

$Num mods:

  • Sets the number of the medal the player can obtain
  • Syntax: Integer


For medals based on kill counts

+Num Kills:

  • Defines the number of kills needed for the particular medal
  • Syntax: Integer


$Wavefile 1:

FS2 Open 3.6.10:
  • Defines the voice file
  • Syntax: String


$Wavefile 2:

FS2 Open 3.6.10:
  • Defines the voice file
  • Syntax: String


$Wavefile Base:

  • Defines the voice file
  • Syntax: String


$Promotion Text:

  • Defines the text that is displayed when the medal is obtained. Value refers to translationsfound from tstrings.tbl. Is followed with $end_multi_text.
  • Syntax: XSTR("String", Integer)


Sample

  • Retail FreeSpace 2 table
#Medals

$Name:		Epsilon Pegasi Liberation
$Bitmap:		Medal00.pcx
$Num mods:	4

$Name:		Imperial Order of Vasuda
$Bitmap:		Medal01.pcx
$Num mods:	4

$Name:		Distinguished Flying Cross
$Bitmap:		Medal02.pcx
$Num mods:	4

$Name:		SOC Service Medallion
$Bitmap:		Medal03.pcx
$Num mods:	4

$Name:		Intelligence Cross
$Bitmap:		Medal04.pcx
$Num mods:	4

$Name:		Order of Galatea
$Bitmap:		Medal05.pcx
$Num mods:	4

$Name:		Meritorious Unit Commendation
$Bitmap:		Medal06.pcx
$Num mods:	4

$Name:		Medal of Valor
$Bitmap:		Medal07.pcx
$Num mods:	4

$Name:		GTVA Legion of Honor
$Bitmap:		Medal08.pcx
$Num mods:	4

$Name:		Allied Defense Citation
$Bitmap:		Medal09.pcx
$Num mods:	4

$Name:		Nebula Campaign Victory Star
$Bitmap:		Medal10.pcx
$Num mods:	4

$Name:		NTF Campaign Victory Star
$Bitmap:		Medal11.pcx
$Num mods:	4

$Name:		Rank
$Bitmap:		Medal12.pcx
$Num mods:	10

$Name:		Wings
$Bitmap:		Medal13.pcx
$Num mods:	2

$Name:		Ace
$Bitmap:		Medal14.pcx
$Num mods:	1
+Num Kills:	60
$Wavefile Base: badge_a.wav
$Promotion Text:

XSTR("For your excellent record of confirmed kills, you have achieved the status of Ace.", 2722)

$end_multi_text

$Name:		Double Ace
$Bitmap:		Medal15.pcx
$Num mods:	1
+Num Kills:	150
$Wavefile Base: badge_b.wav
$Promotion Text:

XSTR("For your outstanding record of confirmed kills, you have achieved the status of Double Ace.", 2723)

$end_multi_text

$Name:		Triple Ace
$Bitmap:		Medal16.pcx
$Num mods:	1
+Num Kills:	350
$Wavefile Base: badge_c.wav
$Promotion Text:

XSTR("For your extraordinary record of confirmed kills, you have achieved the status of Triple Ace.", 2724)

$end_multi_text

$Name:		SOC Unit Crest
$Bitmap:		Medal17.pcx
$Num mods:	1

#End