You know how when you quit certain games you get a cute extra message at the end? That's the SetQuitStr kernel call hard at work. In my collection, I can find this used in Freddy Pharkas and Larry 6.
(c) 1993 Sierra On-Line, Inc.
Thank you for playing Leisure Suit Larry 6: "Shape Up or Slip Out!"
As always, if you liked our game, tell a friend.
If you didn't like it, keep it to yourself.
No one really values your opinion anyway!
C:\>
Now, ScummVM doesn't do anything with this call -- it's commented out -- but if that won't stop you here's what you can do. In Freddy Pharkas, the quit message is set on init, and in Larry 6 it's set on quit. I like Larry's more because it makes more temporal sense and plays fast and loose.
First, set up some messages. In message.000, add a few cutesy bullshit remarks as N_QUITMENU V_DO, in sequence. Now, in Main.sc, find your game's play method and add these three lines.
(while (not gQuitGame)
(self doit:)
)
; Add this bit --v
(= deleteMe (Memory memALLOC_NONCRIT 100))
(Message msgGET 0 N_QUITMENU V_DO 0 (Random 1 3) deleteMe)
(SetQuitStr deleteMe)
You'll notice the deleteMe variable now suddenly has a use. You might want to rename it, it's up to you. At least make sure you change the random number range to match your message file.
Now, the 100 above is straight out of Larry 6, and it
slightly worries me because the message I quoted earlier is some 228 characters long not counting the prompt. But it works, so whatever. Freddy Pharkas uses
[local0 120] as the target but my copy is incomplete so I can't check.