Static Day and Time Clock and "Divisible By" Problems (Life Simulator)

dariusimmanuelguerrerodariusimmanuelguerrero Member, PRO Posts: 19
edited April 2017 in Working with GS (PC)

Hello! I am working on a life simulator of sorts. Everything is going well, in terms of the character needing to do certain tasks, such as eating to replenish hunger, and sleeping to replenish fatigue. The only thing that's been bothering me is the simulated Time.

I plan that there'd be no sense of time in this game. It is static. For example: Going to Work takes 8 hours. Driving to work takes 1 hour.

While I understand the formula for going to work would go like this

Set TableCellValue (for time) to TableCellValue + 8 (hours working)

How do I make a clock that fills displays 24 hours. Once time goes beyond 23:00, it resets to 00:00 AM and adds an integer to Day Number.

And how do I get it so that every 30 days rent has to be paid. I'm lost :( Do i make it so that every time the number is divisible by 30 ? How do I make a behavior to trigger when an integer is divisible by a certain number?

Big thanks in advance :)

Comments

Sign In or Register to comment.