Set the Common Event parallel to a switch, and vola, you have a simulated clock, this could be used for a time system in game, like if it was 5 pm in game, it would be dark, or if it was 12 pm in game, it would be day,
Note: this is in game time, this isn't time outside of game, if you turn ur game back on and load a save point, the variables will be the same as they were when you saved.
Edit: changed the hour conditional to 24, idk why i put 12 Edit2: added a conditional to check if the minutes are over 60 if it is then it subtracts 60 minutes and adds 1 to an hour, it checks every second, this could be useful for people that use events to add time to the game time.
__________________________
My Userbars
Rated pg-13 part of signiture
Scientist A: "A single sperm has 37.5MB of DNA information in it. That means a normal ejaculation represents a data transfer of 1,587.5TB." Scientist B: Too bad ejaculate has terrible packet loss Scientist C:but the transfer does have a lot of redundancy
Simple and useful. But could I just come with a suggestion? For example changing it to check if the minutes are over 60 and then after that, lower the minutes by 60 and add 1 hour. This way, it the events add 120 to the minutes variable, the game will automaticly change it into 2 hours. Some people might like this more. Just a thought.
This post has been edited by stripe103: Oct 21 2011, 12:30 PM
Simple and useful. But could I just come with a suggestion? For example changing it to check if the minutes are over 60 and then after that, lower the minutes by 60 and add 1 hour. This way, it the events add 120 to the minutes variable, the game will automaticly change it into 2 hours. Some people might like this more. Just a thought.
hmm so you mean, put in a check that checks to see if the variable is over 60 minutes and if it is, subtract 60 from it and add 1 to the hour variable
edit: i did whatever it is u were asking i hope XD;;
This post has been edited by lilcooldude69: Oct 23 2011, 04:09 AM
__________________________
My Userbars
Rated pg-13 part of signiture
Scientist A: "A single sperm has 37.5MB of DNA information in it. That means a normal ejaculation represents a data transfer of 1,587.5TB." Scientist B: Too bad ejaculate has terrible packet loss Scientist C:but the transfer does have a lot of redundancy