AIDef:Query/CheckTime: 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
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
|type=Query
|type=Query
}}
}}
Returns 1 if the [[WorldMgr]]'s current time is {condition} than or equal to the specified time, and 0 otherwise.
Example: for Hour=6, Minute=1 and ConditionType=ge, if the current time is 07:00, the query will return 1. If it is 06:00, 0 will be returned.


== DynamicInstParams ==
== DynamicInstParams ==
Line 12: Line 16:
| Minute || Int ||  ||  
| Minute || Int ||  ||  
|-
|-
| ConditionType || String ||  ||  
| ConditionType || String ||  || "le" (lower than or equal to) or "ge" (greater than or equal to)
|-
|-
|}
|}

Latest revision as of 10:39, 30 October 2018

CheckTime
AI definition
Type Query

Returns 1 if the WorldMgr's current time is {condition} than or equal to the specified time, and 0 otherwise.

Example: for Hour=6, Minute=1 and ConditionType=ge, if the current time is 07:00, the query will return 1. If it is 06:00, 0 will be returned.

DynamicInstParams

Name Type Default value Description
Hour Int
Minute Int
ConditionType String "le" (lower than or equal to) or "ge" (greater than or equal to)


Derived definitions

CheckTime (EventSystemActor)

No overridden parameters.