Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 07/03/2005 05:58:52

Title: How do you reset the gavance!me?
Post by: on Mon 07/03/2005 05:58:52
There are numerous ways my character dies in my game, but how do I then restart the game so that the character has no more inventory items or points? Or even better, how do I bring the user to the restore game interface like in King's Quest? Thanks in advance! ;D
Title: Re: How do you reset the gavance!me?
Post by: x_traveler_x on Mon 07/03/2005 06:36:47
You just make a GUI as your death message with 3 buttons-- one  that refer to either RestoreGameDialog () or your custom restore GUI (if you made one), one for restarting, and one for quitting.   If you need a tutorial for making GUIs, search the help file for "custom quit gui" and you should find A LOT of good information.

Hope that helps.
Title: Re: How do you reset the gavance!me?
Post by: TerranRich on Mon 07/03/2005 08:19:50
ALREADY BFAQ'ed: http://bfaq.terran-x.com/#graphics13

Did that answer your question?
Title: Re: How do you reset the gavance!me?
Post by: GarageGothic on Mon 07/03/2005 08:46:27
You might also want to use the SetRestartPoint () command at the beginning of the actual game, so the player won't have to see your logos and whatnot all over again when restarting.
Title: Re: How do you reset the gavance!me?
Post by: TerranRich on Mon 07/03/2005 15:28:06
Ah yes, that too. I will have to add that to the BFAQ. Thanks. :)