Difference between revisions of "Get time played"
From Unofficial QEdit Wiki Guide
(Created page with "==Syntax== ''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:red'>get_time_played </span>register1</span> * ''register1'' = Register to store th...") |
(No difference)
|
Latest revision as of 18:53, 16 November 2022
Contents
Syntax
Syntax: get_time_played register1
- register1 = Register to store the player's play time in seconds
Use
Used to store the value the player's play time in seconds
Example
100: get_time_played R1 //Gets the time played and stores it in Register 1.
divi R1, 00000E10 //Divides time played by 3600 to convert into hours.
window_msg You have played <r1> hours on this character.//Displays final divided value in hours.
winend
ret
Also see
window_msg, ret, divi, winend