Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Wingard on December 31, 2014, 11:33:46 am

Title: System's time and date
Post by: Wingard on December 31, 2014, 11:33:46 am
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.  :???:
Title: Re: System's time and date
Post by: ForeverZer0 on December 31, 2014, 12:10:42 pm
time = Time.now
$game_variables[1] = time.hour
$game_variables[2] = time.min
$game_variables[3] = time.month
Title: Re: System's time and date
Post by: Wingard on December 31, 2014, 03:26:24 pm
Thank you! Have a happy new year  :D