AIDef:Query/CheckBalladOfHeroActiveTiming

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
CheckBalladOfHeroActiveTiming
AI definition
Type Query

Returns 1 if the Ballad of Heroes quest should be activated for the first time (2 if the player is in the Shrine of Resurrection), and 0 otherwise.

  • If the current map is not MainField, or if aocManager::sInstance->version < 0x300, return 0.
  • If at least one Divine Beast has not been completed (i.e. if the xxx_Relic_Finished flag is false), return 0.
  • If the quest has already been activated (i.e. if BalladOfHeroes_Activated is true), return 0.
  • If the player is in the final boss sequence (i.e. if IsPlayed_Demo146_0 is true), return 0.
  • If the player's current location is the Shrine of Resurrection ("StartPoint"), return 2, otherwise return 1.

tl;dr: The quest is activated if the player is in Hyrule, has completed all divine beasts, and has not activated Dark Beast Ganon.

Derived definitions

CheckBalladOfHeroActiveTiming (EventSystemActor)

No overridden parameters.