posted 29-04-2003 06:17 BST
Has anyone messed around with this idea? Having the current time running in the background of a game? I'm thinking for multiplayer games of course, but it could be used in single player games as well, I'm sure it would allow for a lot of tricky certain time of day puzzles as well as completing tasks and quests before a set time or date. I found it fairly easy to make with a few snags here and there, but eventually I was able to create a fully functional clock.I found this interesting enough to post about because in my combat demo I was forced to use a rudementary set up of timers to enforce roundtimes. I'm capable of now giving players roundtimes as properties, then having the time that is constantly running in the background of the game determine when they are free to move again. This is a huge improvement. The one problem I'm having for the time being is that it seems very resource intensive(well would be for a large online game) to have to check every object in the game(or just the players and mobs) if it is incurring a roundtime. I'm brainstorming ways of getting around this... One way I've thought of is perhaps storing object names in strings prefixed with rt- and then having the time function only subtract time from those with pending roundtimes.
I don't know, this is all a ramble but I wanted some folks opinions on what would be a good way to code this.
Also, to Alex or someone more asl saavy than I, is there a way to have a variable that will use any number? That's a bad way of putting it, but say you have a bunch of objects, half named object1, object2, etc. and the other half named 1object, 2object, etc. Is there a way you can have asl seperate the two by say only having it look for objects named object%number-variable%. Instead of having to refer to a specific number to move it? I don't know if that makes sense. In essence could ASL find any object named 'object%any number here%' and move it to a specific location?