ActorValueToStringC

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Returns the localization appropriate string representing the actor value, which is specified by its int code. Useful for supporting multiple languages.

The 2nd argument typeFilter is only available if using JIP LN, and may be used to control the type of string, defined in the corresponding AVInfo entry, that is returned:

  • 0: Default name
  • 1: Full name (localized)
  • 2: Abbreviated (localized)

Syntax

[help]
(string) ActorValueToStringC AVCode:int typeFilter:int 

Or:

(string) AVStringC AVCode:int typeFilter:int 

Example

string_var my_string
let my_string := ActorValueToStringC 5

my_string now contains "Strength"

let my_string := ActorValueToStringC 5 2

my_string now contains "STR" (in the English version)

See Also