AIDef:Query/Check100EnemyActiveTiming: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
imported>Leoetlino
(import AI definitions from 1.5.0)
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
|type=Query
|type=Query
}}
}}
Returns 1 if the Trial of the Sword quest should be activated for the first time (2 if the player is in the Korok Forest), and 0 otherwise.
* If the current map is not MainField, or if aocManager::sInstance->version < 0x200, return 0.
* If the quest has already been activated (i.e. if 100enemy_Activated is true), return 0.
* If the Master Sword has been obtained (i.e. if IsGet_Weapon_Sword_070 is true), return 1, otherwise 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 Korok Forest ("KorogForest"), return 2, otherwise return 1.
tl;dr: The quest is activated if the player is in Hyrule, has the Master Sword, and has not activated Dark Beast Ganon.
== Derived definitions ==
=== Check100EnemyActiveTiming (EventSystemActor) ===
{{AIDefDerived
|name=Check100EnemyActiveTiming
|group_name=
|derived_from=Check100EnemyActiveTiming
|aiprog=EventSystemActor
}}
No overridden parameters.

Latest revision as of 18:02, 1 October 2020

Check100EnemyActiveTiming
AI definition
Type Query

Returns 1 if the Trial of the Sword quest should be activated for the first time (2 if the player is in the Korok Forest), and 0 otherwise.

  • If the current map is not MainField, or if aocManager::sInstance->version < 0x200, return 0.
  • If the quest has already been activated (i.e. if 100enemy_Activated is true), return 0.
  • If the Master Sword has been obtained (i.e. if IsGet_Weapon_Sword_070 is true), return 1, otherwise 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 Korok Forest ("KorogForest"), return 2, otherwise return 1.

tl;dr: The quest is activated if the player is in Hyrule, has the Master Sword, and has not activated Dark Beast Ganon.

Derived definitions

Check100EnemyActiveTiming (EventSystemActor)

No overridden parameters.