XAP File Format: Variation

Parent: Cue, Play Sound Event, Play Wave Event

Syntax

Variation
{
Variation Type = 0 - 4;
Variation Table Type = 0 - 4; 
New Variation on Loop = 0 - 1;
Variable Index = #;
}

Elements

Element Type Comment
Variation Type Number (0-4) 0: Ordered, 1: OrderedFromRrandom, 2: Random, 3: RandomNoImmediateRepeats, 4: Shuffle
Variation Table Type Number (0-4) 0: Wave, 1: Sound, 2: Clip, 3: Interactive, 4: CompactWave.

Defines type of sound entries that can be expected. Non-interactive complex cues requiring a sound variation table (i.e. they have more than one sound) will have entries of type Sound. Interactive cues will always have a sound variation table with entries of type interactive.

New Variation On Loop Boolean 0/1 1: Select new variation when looped, 0: Use same variation.

Ignored by interactive cues.

Variable Index Number Variable index (used for interactive cues only; set to XACTVARIABLEINDEX_INVALID (0xffff) for all other variation table types).