AIDef:Query/Check100EnemyActiveTiming

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
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.