Disabling Save, but not Load (Solved)

Started by Elessar, Mon 28/05/2007 22:17:53

Previous topic - Next topic

Elessar

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.

GarageGothic

Check the on_key_press section in your global script. You'll find the line:

Code: ags
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:

Code: ags
if ((keycode==363) && (player.Room != 1)) SaveGameDialog();   // F5

Elessar


SMF spam blocked by CleanTalk