版本
menu_open

Fallback Mechanism

When you create dynamic dialogue for a game, you may realize that your game can’t always provide all the information you need at all times. In this example, when the player radios an officer for his status, the officer NPC might be between actions. To deal with this possibility, the dynamic dialogue system includes a fallback mechanism. The fallback mechanism allows you to trigger generic dialogue for situations where an argument path does not have an associated object, or when an argument value in the argument path is not specified by the game.

For example, the sample project contains the following fallback lines:

  • Unit_B.*.Completed: “Mission accomplished. Nice job everyone.”

  • Unit_B.*.Failed: “Let’s do better next time, OK?”

[Note] Note

When an argument is used to create a fallback argument path, the argument is represented by an asterisk in the path name. In the example above, the asterisk represents the argument: “Objective”.

Compare these to specific lines such as:

  • Unit_B.RescueHostage.Completed: “We got the hostage.”

  • Unit_B.DefuseBomb.Failed: “We can’t stop the bomb. Everyone out!”

The fallback mechanism is a really important aspect because it provides a “safety net” for the scriptwriter. These lines could be delivered in cases in which the game does not specify a particular objective. They could also be useful in a situation where new objectives are added to the game after the voice recordings are completed. Because no specific dialogue exists for the new objectives, the fallback dialogue will be selected automatically.


此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅