Városi Posted March 23, 2010 Share Posted March 23, 2010 Someone knows that GPS time can be chacked in the Wherigo Cartridge. A would like to create 2 way in my game. At daytime, and at night the game shows different zones. Is it possible to checked this? Quote Link to comment
+huggy_d1 Posted March 26, 2010 Share Posted March 26, 2010 Here's what I did in a script in the Groundspeak Wherigo builder: -- save the operating system date/time to a variable Set osTime equal to os.date("%I") -- grab the HH:MM:SS portion from the above formatted string Set formattedTime equal to string.sub(osTime,12,19) -- -- formattedTime now has "HH:MM:SS" in string format and can be displayed in a message box -- [[Well done ]] .. Player.Name .. [[ for making your way to the trailhead. This is the first location on your tour of the Unnamed Trail. The next location is a just up the trail. You may already see why I call this trail the Unnamed Trail.]] .. [[the current time is: ]] .. formattedTime Quote Link to comment
+me2d09 Posted March 28, 2010 Share Posted March 28, 2010 Someone knows that GPS time can be chacked in the Wherigo Cartridge. A would like to create 2 way in my game. At daytime, and at night the game shows different zones. Is it possible to checked this? Yes, it is possible, in URWIGO you can use following code (see attached picture or attteched source code - unzip first!) day_night.zip Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.