Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Elessar on Mon 28/05/2007 22:17:53

Title: Disabling Save, but not Load (Solved)
Post by: Elessar on Mon 28/05/2007 22:17:53
I am wanting to disable the save function (ie. F5) at the startup screen, but still have my Restore option work. I've tried the "Save/load disabled" option, but that won't let me use either of them, and I can't find a script function that will disable the save option.
Title: Re: Disabling Save, but not Load
Post by: GarageGothic on Mon 28/05/2007 22:21:09
Check the on_key_press section in your global script. You'll find the line:

if (keycode==363) SaveGameDialog();   // F5

Add a conditional to it, so it doesn't work in the startup screen room. If it's room 1, put:

if ((keycode==363) && (player.Room != 1)) SaveGameDialog();   // F5
Title: Re: Disabling Save, but not Load
Post by: Elessar on Mon 28/05/2007 22:24:39
Super! Thanks. :)