Community

AGI Programming => Mega Tokyo AGI Archive => Topic started by: Xqzzy Rcxmcq on June 02, 2003, 08:17:28 PM

Title: time
Post by: Xqzzy Rcxmcq on June 02, 2003, 08:17:28 PM
How can you make agi handle long amounts of time?

Like: Leisure Suit Larry 1, when you have about 11 hours or so (in real time) to win before the game ends.

Also, in one of Infocom's mystery games, I recall, you had 12 hours (in real time) to win or the game would end.

I don't think logic cycles would be the answer, does anybody know?
Title: Re:time
Post by: Andrew_Baker on June 02, 2003, 10:58:46 PM
Actually, they are.  In fact, the version of the template I used had a built-in clock, I think.
Title: Re:time
Post by: Kon-Tiki on June 03, 2003, 05:03:27 AM
Yep, it's  easiest to use the clock timer's variables for this. Check which var to use on the Special Variables-page in the helpfile. Then just take the var you want (the hour-var, the minute-var, etc) and put a code like the one below in logic 0.
Code: [Select]
if(chosen_var == yourtime) {
  your code
}

It's easy ;)

-Kon-Tiki-
Title: Re:time
Post by: Xqzzy Rcxmcq on June 03, 2003, 08:33:08 PM
Thanks. I will try it.