I want to have a save and load system. And like in the Starcraft Singleplayer I want to save the calendar date and the current time. I dont want the gametime, but the real life time. I havent found a build in variable yet
Especially for autosaved games I want to give the user more info than a random name like "autosave120". Someone maybe have an other idea of how to improve that?
As s3rius said, you can not access date/time. But there is a sort of alternative.
What you can do is count the seconds spent inside the game, then just convert that to HH:mm:ss and use it as additinal information for the player.
i.e. Save 1 : Time player: 1hour 44 minutes
Request player 1 to enter time before the game start, then start counting afterward (based on Otixa's method)
he could simply fake a time and making a code using bank wouldnt perfectly prevent faking. I was thinking about a browser based like game not long time ago, which are "real real time" games.
I hope they will implement something to get the date when the map started on bnet. I think, it wouldnt be hard for them to do it and I already made post about it: http:eu.battle.net/sc2/en/forum/topic/566438545?page=2#26
It would enable to make new type of maps...
hi,
I want to have a save and load system. And like in the Starcraft Singleplayer I want to save the calendar date and the current time. I dont want the gametime, but the real life time. I havent found a build in variable yet
Especially for autosaved games I want to give the user more info than a random name like "autosave120". Someone maybe have an other idea of how to improve that?
thx
No can do.
We can't access anything outside the game, and the game doesn't give us access to time.
As s3rius said, you can not access date/time. But there is a sort of alternative.
What you can do is count the seconds spent inside the game, then just convert that to HH:mm:ss and use it as additinal information for the player.
i.e. Save 1 : Time player: 1hour 44 minutes
Request player 1 to enter time before the game start, then start counting afterward (based on Otixa's method)
thx, I think Ill then add the playtime.
he could simply fake a time and making a code using bank wouldnt perfectly prevent faking. I was thinking about a browser based like game not long time ago, which are "real real time" games. I hope they will implement something to get the date when the map started on bnet. I think, it wouldnt be hard for them to do it and I already made post about it: http:eu.battle.net/sc2/en/forum/topic/566438545?page=2#26 It would enable to make new type of maps...