Prev: 43953 Up: Map Next: 43999
43965: Action: Offer Save
Prints the score, asks whether to save, and sets flag bit 2.
Do not offer to save.
Action_OfferSave 43965 JP NZ,Handler_RunScript_11 Do not offer to save.
Show the score, then ask "Want to save the game? Y/N".
43968 CALL Print_Scoring Show the score.
43971 LD HL,22 Ask whether to save.
43974 CALL PrintCompressedStringAndNewline Call PrintCompressedStringAndNewline.
N declines the save and Y writes the position to tape.
SavePrompt_Loop 43977 CALL GetUserInput Read the answer.
43980 CP 78 N declines the save.
43982 JR Z,Action_OfferSave_0
43984 CP 89 Anything but Y asks again.
43986 JR NZ,SavePrompt_Loop
43988 CALL SaveGame Write the position to tape.
Remember that the offer was made by setting flag bit 2 then resume the script.
Action_OfferSave_0 43991 LD A,2 Flag bit 2 records the offer.
43993 CALL SetFlag Call SetFlag.
43996 JP Handler_RunScript_11 Resume the script.
Prev: 43953 Up: Map Next: 43999