System's time and date

Started by Wingard, December 31, 2014, 11:33:46 am

Previous topic - Next topic

Wingard

Hello, is there a way to make the game read the date and time and assign them to variables (3 separately: month, day and hour)?  I found some RUBY commands in google but ive no idea how to use them in the Rpg maker XP.  :???:

ForeverZer0

time = Time.now
$game_variables[1] = time.hour
$game_variables[2] = time.min
$game_variables[3] = time.month
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Wingard

Thank you! Have a happy new year  :D