intfiction.org

The Interactive Fiction Community Forum
It is currently Sun May 19, 2013 2:43 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Aug 09, 2011 7:10 am 
Offline

Joined: Sat Apr 30, 2011 1:08 am
Posts: 52
Just a quick one,

I'm wondering if it's possible to change the end game message. To be specific, this one:

"Would you like to RESTART, RESTORE a saved game or QUIT?"

All I want to do is add "UNDO" on that list to make the game more accessible to those who aren't as familiar with IF as some of us. Is this possible?


Top
 Profile Send private message  
 
PostPosted: Tue Aug 09, 2011 7:25 am 
Offline

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 2127
Location: Burlington, VT
I believe that UNDO is already one of the default options, so you don't have to do anything at all. But to learn more about changing the end game message, see examples 370 and 371 in section 17.36 of the documentation.


Top
 Profile Send private message  
 
PostPosted: Tue Aug 09, 2011 7:29 am 
Offline

Joined: Sat Apr 30, 2011 1:08 am
Posts: 52
Oh, I'm aware it's already in there, it's just that some of the people who have tested my game didn't know an UNDO command existed so I wanted to point it out when they died. Saves them a lot of bother, and I don't want to make my game a "save/reload/save/reload" experience.

I'll check those bits of the documentation!

EDIT: Oh I see, turns out I just need to update my inform...


Last edited by HulkHandsome on Tue Aug 09, 2011 7:53 am, edited 1 time in total.

Top
 Profile Send private message  
 
PostPosted: Tue Aug 09, 2011 7:50 am 
Offline

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 2127
Location: Burlington, VT
Hm, the message I get is "Would you like to RESTART, RESTORE a saved game, QUIT or UNDO the last command?" If you'd like to draw even more attention to the UNDO option, maybe you can do this?

Code:
After printing the player's obituary: say "If the ending wasn't satisfactory, you can UNDO your last turn and try something else. This game should never put you in a pickle that you can't get out of by undoing one command."


(You'd have to do some work to get the line spacing to come out right; it might depend on whether you have a score in the game.)


Top
 Profile Send private message  
 
PostPosted: Tue Aug 09, 2011 7:55 am 
Offline

Joined: Sat Apr 30, 2011 1:08 am
Posts: 52
After reading the documentation you sent me, it turns out I'm just using an older version of Inform 7 that doesn't do this automatically! So thanks for bringing that to my attention... hopefully the rest of the game still works in the new version!


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group