Get time played

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

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