spookycharles
02-23-2006, 05:20 AM
Hello All,
I need a clock for the use in an RPG game site that instead of displaying ‘real time’ would display the game’s date and time. I’m assuming that this is possible using JavaScript but have not yet been able to find an example of one and don’t yet know how to write the coding well enough myself to alter the variables of a standard JavaScript clock for this purpose.
Below is the URL for the page that I want the clock for. Currently it has the static date and time that I obviously have to perpetually update:
http://dreamravendesigns.com/Hellmouth_Alliance/gamestory.html
What I want is a constantly running clock (that doesn’t require refreshing the page) that displays the full date (game date, not a true date) and the hour, minutes and seconds (seconds aren't actually needed for anything outside of amusement value) in the adjusted game time speed.
The game runs 1 hour of game time to a week of playtime (real time), so essentially I would want the clock ticking at a pace showing 1 game hour to every 168 real hours, but I can work the math on it if anyone could simply offer a touch of assistance as far as what variables I ought to be playing with to make this happen.
Assistance of any kind would be so greatly appreciated.
Thanks,
Amanda
I need a clock for the use in an RPG game site that instead of displaying ‘real time’ would display the game’s date and time. I’m assuming that this is possible using JavaScript but have not yet been able to find an example of one and don’t yet know how to write the coding well enough myself to alter the variables of a standard JavaScript clock for this purpose.
Below is the URL for the page that I want the clock for. Currently it has the static date and time that I obviously have to perpetually update:
http://dreamravendesigns.com/Hellmouth_Alliance/gamestory.html
What I want is a constantly running clock (that doesn’t require refreshing the page) that displays the full date (game date, not a true date) and the hour, minutes and seconds (seconds aren't actually needed for anything outside of amusement value) in the adjusted game time speed.
The game runs 1 hour of game time to a week of playtime (real time), so essentially I would want the clock ticking at a pace showing 1 game hour to every 168 real hours, but I can work the math on it if anyone could simply offer a touch of assistance as far as what variables I ought to be playing with to make this happen.
Assistance of any kind would be so greatly appreciated.
Thanks,
Amanda