Difference between revisions of "00BF"
Jump to navigation
Jump to search
(Created page with "{{Icon|trilogy}} '''GET_TIME_OF_DAY''' <hr /> '''Description''' : Gets the current game time '''Syntax''' :00BF: [''var 1''] = current_time_hours, [''var 2''] = current_time_m...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{Icon| | + | {{OpCode |
− | + | | games = {{Icon|t}} | |
− | + | | command = GET_TIME_OF_DAY | |
− | + | | description = Gets the current game clock | |
− | + | | syntax1 = 00BF: [''var1''] = current_time_hours, [''var2''] = current_time_minutes | |
− | + | | p1t = [''var1''] | |
− | + | | p1d = Variable to store game hour, an integer value | |
− | + | | p2t = [''var2''] | |
− | + | | p2d = Variable to store game minute, an integer value | |
− | + | | native = [[GET_TIME_OF_DAY]] | |
− | + | }} | |
− | |||
− | |||
− | This stores the values of the current game | + | This opcode stores the values of the current game hour and minute to the variables. The hours are from 0 to 23 and the minutes are from 0 to 59. |
− | ==Keywords== | + | == Keywords == |
− | get, current, time, clock | + | get, current, time, clock, day |
== See also == | == See also == | ||
− | * [[00C0]] | + | * {{Icon|t}} [[00C0]], sets time of day |
− | * [[00C1]] | + | * {{Icon|t}} [[00C1]], gets minutes left to time |
− | |||
− | |||
− |
Latest revision as of 04:12, 24 November 2016
- Description
- Gets the current game clock
- Syntax
- 00BF: [var1] = current_time_hours, [var2] = current_time_minutes
- Parameter
- [var1]
- Variable to store game hour, an integer value
- [var2]
- Variable to store game minute, an integer value
- Native analog
- GET_TIME_OF_DAY
This opcode stores the values of the current game hour and minute to the variables. The hours are from 0 to 23 and the minutes are from 0 to 59.
Keywords
get, current, time, clock, day