GetMediaSetTraitString

From GECK
Jump to: navigation, search


A function added by the JohnnyGuitar NVSE Plugin.

Description

Returns the value of a String trait (sound path) of a Media Set (determined by traitID).

Syntax

[help]
(traitValue:string) GetMediaSetTraitString MediaSet:ref traitID:int{0-5}

Numeric Media Set Trait IDs

0	Loop / Battle / Day Outer (NAM2)
1	Explore / Day Middle (NAM3)
2	Suspense / Day Inner (NAM4)
3	Night Outer (NAM5)
4	Night Middle (NAM6)
5	Night Inner (NAM7)

Same Media Set traits can hold up to three different values depending on the Media Set type. For better understanding of how they work, take a look at Media Set records in FNVEdit.

Example

if (GetMediaSetTraitNumeric musSetBTTLRuralGood1Perc 0 == 0) // if Media Set type is Battle
      set sLoopPath to GetMediaSetTraitString musSetBTTLRuralGood1Perc 0 // set fValue to Loop sound path
endif

See Also