AIDef:Query/CheckBalladOfHeroActiveTiming

Revision as of 21:27, 22 October 2019 by imported>Leoetlino (add tl;dr)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.