Hit a snag with the code going to get some sleep.and will try afresh tomorrow, Have the clock working and the month and year work but have a flaw in the day. Have a fix but was to sleepy to tackle it. The code is fairly small now easy to use and put any where in the game.
*Edit I am not able to get < code> to work so loosing formatting will load to my server then Link
I finally have the code worked out
I have a page named timer
http://www.lordirish.com/GIL/code/timer.txt
Working example of the code
http://www.lordirish.com/GIL/code/timer.html
Do you think it will be worth it making the script more open world…?
The idea of a timer sounds nice…
It could set specific points for unique events on your game.
@EmptySkies
I think if you have the time and energy it would be an awesome game to play, but from experience it would not be worth the return on such a project. I spent off and on a year and a half total working such a project and it really not a tenth of the way done. I have placed the project on hold as I consider moving it to another format. But in the mean time working on other CoG projects.
I have not run the date code through testing yet but will later today and update it on the server when done.
I believe the best way to do it, and make it worth it, is to make some kind to “linear” story that is open world. If it were an investigation for example, you can start from any town, then you move to the next village where the “Mean Murderer” has been to.
(maybe pieces of the story being spread out, and then there’s the ending, which makes it nonlinear with a common ending, but open world)
If you don’t do that I think you’ll give up before finishing. Mobile Armored Marine had a bit of “open world” because twice you could choose exactly what/when to explore something, I recommend you play it and see what I mean.
Still following on mystery murderer idea, you could allow the player who to accuse depending on either the evidence he has, or how he interprets the evidence.
how do i display the time using your code? I have to do sec + 1 first then what?
Just put the following code whereever you want it to display
Current time:
{hrs_d}:{min_d}:{sec_d}
*line_break
Current date:
{month}/{d_count}/{year}
*edit While it passes quick test and random i have found a bug in the code. I will be testing today and fix any bugs I find.Will update again later today.
I have done two years clicking and believe I have all the bugs worked out I have uploaded the latest files, make sure you ctrl + F5 to refresh the pages. If you spot a bug let me know. Now I can add this to my own game, for every day that passes the NPCs get paid. Plus I have it track a few other features in the game. I am sure someone with mad skill like @CJW or many others may have a way of improving the code but this works and is not to complex. Should you need any help just hit me up with do what I can.
What are all the variables I need to create?
http://www.lordirish.com/GIL/code/startup.txt
I have a page named timer
http://www.lordirish.com/GIL/code/timer.txt
Working example of the code
http://www.lordirish.com/GIL/code/timer.html
Thanks, working great now