AIDef:Query/WhatMoonName: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
imported>Leoetlino
No edit summary
imported>Leoetlino
No edit summary
Line 4: Line 4:
}}
}}


Returns the moon type:
Returns the [[WorldMgr#Moon type|moon type]]:
* 0: Full Moon<ref name="hino">[https://eventviewer.zeldamods.org/viewer.html?data=/d/Npc_SouthHateru007.json&params=1&entry=Moon Hino's event flow]</ref> or Blood Moon<ref>wm::TimeMgr::getMoonType{{un}} at 0x71010E8290 (Switch 1.5.0)</ref> or [on a Bloody Day after 04:00<ref>0x71010E8234</ref>] (see [[WorldMgr]] for details)
* 0: Full Moon<ref name="hino">[https://eventviewer.zeldamods.org/viewer.html?data=/d/Npc_SouthHateru007.json&params=1&entry=Moon Hino's event flow]</ref> or Blood Moon<ref>wm::TimeMgr::getMoonType{{un}} at 0x71010E8290 (Switch 1.5.0)</ref> or [on a Bloody Day after 04:00<ref>0x71010E8234</ref>] (see [[WorldMgr]] for details)
* 1: Waning gibbous
* 1: Waning gibbous
Line 13: Line 13:
* 6: "Seven-day"<ref name="hino"/>
* 6: "Seven-day"<ref name="hino"/>
* 7: "13-day"<ref name="hino"/>
* 7: "13-day"<ref name="hino"/>
The moon type is calculated based on the number of in-game days. The exact formula is <code>(numberOfDays + x + 1) % 8</code><ref>0x71010E8200</ref>, where x is equal to 1 if the current time is > 180.0 (noon) and % is the modulo operator.
If a moon type was set manually (for instance using [[AIDef:Action/EventSetMoonType]]), that value will be used as the moon type.


== Derived definitions ==
== Derived definitions ==

Revision as of 20:12, 30 October 2018

WhatMoonName
AI definition
Type Query

Returns the moon type:

  • 0: Full Moon[1] or Blood Moon[2] or [on a Bloody Day after 04:00[3]] (see WorldMgr for details)
  • 1: Waning gibbous
  • 2: Third quarter[1]
  • 3: "26th-day"[1]
  • 4: New moon[1]
  • 5: Waxing crescent[1]
  • 6: "Seven-day"[1]
  • 7: "13-day"[1]

Derived definitions

WhatMoonName (EventSystemActor)

No overridden parameters.

  1. 1.0 1.1 1.2 1.3 1.4 1.5 1.6 Hino's event flow
  2. wm::TimeMgr::getMoonType[unofficial name] at 0x71010E8290 (Switch 1.5.0)
  3. 0x71010E8234