Community

AGI Programming => Mega Tokyo AGI Archive => Topic started by: RaDIaT1oN on January 12, 2002, 03:01:41 AM

Title: AGI restart.game command
Post by: RaDIaT1oN on January 12, 2002, 03:01:41 AM
I've implemented the restart.game command in, what will be, the next release of AGIL.  However this command does not seem to work as it should.  It displays the "Press ENTER to restart..." message box, and restarts the game if enter is pressed. (As I understood the command to work.)

In Larry, however, when you die, they screw a new head on, etc. then the lift takes you to the top of the screen, and restart.game is executed, bringing up the message box.  How is restart.game supposed to know whether or not do display the messagebox? It takes no args, according to the spec.
Title: Re: AGI restart.game command
Post by: Chris Cromer on January 12, 2002, 04:46:01 AM
I beleive a certain flag has something to do with the restart function. I beleive it is flag 6 but am not too sure. Maybe if that flag is set or unset it does that.
Title: Re: AGI restart.game command
Post by: Zero on January 12, 2002, 11:41:15 AM
I think AgiSci is right. ;D
Title: Re: AGI restart.game command
Post by: Chris Cromer on January 12, 2002, 08:29:55 PM
I am not sure if I am right but I do know that flag 6 has stuff to do with restarting the game.
Title: Re: AGI restart.game command
Post by: RaDIaT1oN on January 13, 2002, 01:25:49 AM
The AGI spec says that flag 6 is a set by the restart.game command.

So restart.game resets flags and vars to 0 unloads all resources sets a few flags and vars to their initial values, and also sets flag 6, to that logic.0 knows not to show the intro sequence (or whatever) again.

It may also be as you say, but I don't think so.  I'll decompile the logics from Larry to see.
Title: Re: AGI restart.game command
Post by: Chris Cromer on January 13, 2002, 02:06:24 AM
I have already checked Larry's logics and have noticed that flag 6 was not used. So it has to be something else maybe Nick knows.