Version

menu_open

Creating Fallback Paths

Since it can be difficult, time-consuming, and very expensive to re-create every condition and outcome that exists in a game, you will want some kind of fallback mechanism to cover those situations you didn't think of or didn't have time to create. In Wwise, this is done by creating fallback paths. These fallback paths contain one or more State Groups instead of states and are generally associated with more general pieces of dialogue. For example, in an RTS game, you might have situations where the outcome of a certain operation is uncertain, such as the final destination of your army. To cover this situation, you can create a path where at least one State Group is used in place of a State. This path would then be assigned to a sound object that leaves the operation open-ended. In the case of your army on the way to its final destination, the sound object might be “Your army is advancing”.

Before creating the dialogue for a game, it is important that the scriptwriter understand how the fallback algorithm works in Wwise. Let's say you have a Dialogue Event with the following State Groups and States:

When the Dialogue Event is called by the game, the algorithm will try to match the current condition in game, let's say (A1, B1, C1), with one of the paths in the Dialogue Event to determine which sound to play. When more than one path matches the current condition in game, the mode of the Dialogue Event will ultimately decide how Wwise picks a path and corresponding sound. When a Dialogue Event is in 'Best Match' mode, Wwise will look for an exact match by verifying the current condition in game against the paths created in the Dialogue Event. If no exact match is found or if the matching path doesn't have an associated piece of dialogue, the algorithm will look for the closest match among the fallback paths, if any.

When a Dialogue Event is in 'Weighted' mode, Wwise looks for all matches including all fallback paths. From this list of matches, it looks at the weighting of each path and from there determines which path to select and which piece of dialogue to play.

The following illustration shows how the 'best match' decision algorithm verifies all possible matches to determine which object to play.

Notice how the decision algorithm looks for fallbacks from right to left. In our example, it starts with C, then looks at B, and ends at A. The left-most fallback will only be considered when all other possible combinations are exhausted.

[Note]Note

You can also create a generic path for a Dialogue Event. The generic path covers all situations and ensures that a piece of dialogue will be played no matter which States are triggered by the game.

To create a fallback path:

  1. Load a Dialogue Event into the Dialogue Event Editor.

  2. Click a State Group or State for each of the State Groups in your Dialogue Event.

    The Add Path button becomes active.

    [Note]Note

    At least one State Group needs to be selected in your path to create a fallback path.

  3. Click Add Path to create a path.

    The path is added the path list.

    [Note]Note

    When a State Group is used to create a fallback path, the State Group is represented by an asterisk(*) in the path name.

  4. Continue to add new paths by selecting a different combination of State Groups and States.

    [Note]Note

    To remove a path, select the series of states or the path itself and click Remove Path.


Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise