Difference between revisions of "Portal 2 VCDs"

From Valve Developer Community
Jump to: navigation, search
m (Adding category tab. Links to actual information to follow)
m (adding link to first page of tables)
Line 3: Line 3:
 
Valve uses [[VScript|Squirrel scripts]] to make Glados (and other characters) talk throughout [[Portal 2]]. This is done by the GladosPlayVCD() function. Each piece of dialogue is associated with a unique key. However, [[Hammer]] is unable to pass this key to the script (it would require wrapping in quotes, which would mess up the [[VMF]] structure). So, Valve also associated dialogue snippets with numbers (or ''indices'') which Hammer can store just fine.
 
Valve uses [[VScript|Squirrel scripts]] to make Glados (and other characters) talk throughout [[Portal 2]]. This is done by the GladosPlayVCD() function. Each piece of dialogue is associated with a unique key. However, [[Hammer]] is unable to pass this key to the script (it would require wrapping in quotes, which would mess up the [[VMF]] structure). So, Valve also associated dialogue snippets with numbers (or ''indices'') which Hammer can store just fine.
  
These pages serve as a reference to allow mappers to re-use voice lines as they see fit, by mapping indices to voice lines.
+
These pages serve as a reference to allow mappers to re-use voice lines as they see fit, by mapping indices to voice lines. The data is categorised according to the defining nut file.
 +
 
 +
* [[Portal_2_VCDs/Coop_SceneTable|Coop Scenetable]]
  
 
[[Category:Portal_2_Level_Design]]
 
[[Category:Portal_2_Level_Design]]

Revision as of 08:33, 13 April 2012

Under construction.png NB: These pages are currently a work in progress.


Valve uses Squirrel scripts to make Glados (and other characters) talk throughout Portal 2. This is done by the GladosPlayVCD() function. Each piece of dialogue is associated with a unique key. However, Hammer is unable to pass this key to the script (it would require wrapping in quotes, which would mess up the VMF structure). So, Valve also associated dialogue snippets with numbers (or indices) which Hammer can store just fine.

These pages serve as a reference to allow mappers to re-use voice lines as they see fit, by mapping indices to voice lines. The data is categorised according to the defining nut file.