Get Local Time?

Started by Ozwalled, Thu 24/06/2004 06:41:13

Previous topic - Next topic

Ozwalled

Is there any way to check the computer's clock with AGS? I was thinking that it'd be neat to maybe have a game whose day and night times took place at local time, beased on your computer 's clock. Is this at all possible, or am I just fantisizing again?...

Gilbert

Yes, check out these functions:
GetRawTime()
GetTime()

Mr Jake

if it was possible it would have to be a damn long game.... and you'd have to make sure of certain things, for example maybe you cant advanced in the game at night because the shop you needed to goto is shut... what happens then? Cant play after 10?

Barbarian

Another link with some example scripting that might help too:

http://www.agsforums.com/yabb/index.php?topic=12813.0
Conan: "To crush your enemies, see them driven before you, and to hear the lamentation of the women!"
Mongol General: "That is good."

Blade of Rage: www.BladeOfRage.com

LordHart

Quote from: Hotspot on Thu 24/06/2004 06:47:01maybe you cant advanced in the game at night because the shop you needed to goto is shut... what happens then? Cant play after 10?

Thats actually not a bad idea... it'd keep people from staying up late playing your game and allow them to sleep to be energized to go to the shops the next day. :P

Ozwalled

#5
Thanks, people!

And as far as it having to be a very long game, I wa sthinking of the possibility of justthe opposite. A fairly short game that, if played at different times, might yield slightly different situations.

And I don't know how I missed that in the manual. Sorry.

SMF spam blocked by CleanTalk