Author Topic: AGI restart.game command  (Read 1889 times)

0 Members and 1 Guest are viewing this topic.

Offline RaDIaT1oN

AGI restart.game command
« 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.
« Last Edit: December 31, 1969, 07:00:00 PM by 1018072800 »



Offline Chris Cromer

Re: AGI restart.game command
« Reply #1 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.
« Last Edit: December 31, 1969, 07:00:00 PM by 1018072800 »
Chris Cromer

It's all fun and games until someone get's hurt then it's just fun. ;)

Offline Zero

Re: AGI restart.game command
« Reply #2 on: January 12, 2002, 11:41:15 AM »
I think AgiSci is right. ;D
« Last Edit: December 31, 1969, 07:00:00 PM by 1018072800 »
Zero has just programmed a post please read.

Offline Chris Cromer

Re: AGI restart.game command
« Reply #3 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.
« Last Edit: December 31, 1969, 07:00:00 PM by 1018072800 »
Chris Cromer

It's all fun and games until someone get's hurt then it's just fun. ;)

Offline RaDIaT1oN

Re: AGI restart.game command
« Reply #4 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.
« Last Edit: December 31, 1969, 07:00:00 PM by 1018072800 »

Offline Chris Cromer

Re: AGI restart.game command
« Reply #5 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.
« Last Edit: December 31, 1969, 07:00:00 PM by 1018072800 »
Chris Cromer

It's all fun and games until someone get's hurt then it's just fun. ;)


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.039 seconds with 17 queries.