AIDef:Query/CheckBalladOfHeroActiveTiming: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
imported>Leoetlino
(import AI definitions from 1.5.0)
 
imported>Leoetlino
(add tl;dr)
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
|type=Query
|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) ===
{{AIDefDerived
|name=CheckBalladOfHeroActiveTiming
|group_name=
|derived_from=CheckBalladOfHeroActiveTiming
|aiprog=EventSystemActor
}}
No overridden parameters.

Latest revision as of 21:27, 22 October 2019

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.