SetMediaSetTraitString
From GECK
A function added by the JohnnyGuitar NVSE Plugin.
Description
Sets the value of a String trait (sound path) of a Media Set (determined by traitID).
Syntax
SetMediaSetTraitString MediaSet:ref traitID:int{0-5} newValue:string
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 SetMediaSetTraitString musSetBTTLRuralGood1Perc 0 "Data/Music/Your/Path" // set Loop sound path endif