intfiction.org

The Interactive Fiction Community Forum
It is currently Tue Jul 17, 2018 3:57 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Mar 16, 2018 8:08 am 
Offline

Joined: Sat May 07, 2016 5:57 pm
Posts: 363
Location: Hot Springs, Arkansas
Is there a way to disable the rule responses, as opposed to re-wording them??

The following rule does everything that I want in response to the player inquiring about the score--

Code:
Carry out requesting the score:
   if deednum is 0:
      say "In [turn count] turn[s], you still haven't done anything to earn points.  Get a move on!";
   otherwise:
      repeat with n running from 1 to deednum:
         choose row n in table 11;
         say "For [the deedname entry], you scored [the spoints entry] point[s].";
      say "[paragraph break]So you have earned [score] out of a possible [maximum score], in [turn count] turn[s].";
      say "Thus is the extent of your worth."
The announce the score rule response (D) is "You just earned [number understood] point[s]...for [gooddeed]!  [line break][deedadd]".

'Deednum' is simply the number of things the player did that increased the score. 'Deedname' is the thing that was done, and 'spoints' is the number of points awarded. This rule enumerates each thing done and the number of points, as well as the total, in the number of turns taken. And rule response (D) of course is the message prompted when the score increases, 'deedadd' being an additional message (or nothing). Table 11 is an initially empty table that gets filled as the game progresses, with information from each 'increase the score' routine. 'Gooddeed' is redefined in each rule, and the next 'deedname' entry in the table is filled by the latest 'gooddeed'.

What I want to know is if I can disable the 'announce the score rule response (A), because it will fire automatically after my rule above executes. Even if I set (A) to "", it will print an annoying period (.) on a line of its own.

Thanks


Top
 Profile Send private message  
Reply with quote  
PostPosted: Fri Mar 16, 2018 8:22 am 
Offline

Joined: Sat May 07, 2016 5:57 pm
Posts: 363
Location: Hot Springs, Arkansas
Okay, I unlisted the 'announce the score rule', this worked, and my Carry out rule above works. But when I 'end' the game, it will still give the message 'In that game, you scored...', right after my rule above. How can I disable this? I am looking for how I can alter the 'end the story' routine.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Fri Mar 16, 2018 8:45 am 
Offline

Joined: Tue Nov 08, 2011 8:11 am
Posts: 2516
Location: US - Central
To unlist:

Code:
The print final score rule is not listed in any rulebook.

To replace:

Code:
The chatty final score rule is listed instead of the print final score rule in for printing the player's obituary.

This is the chatty final score rule: say "Wow, you achieved a whole [score in words] point[s] out of a possible [maximum score in words]! I'm very proud of you. This was a triumph. I'm being so sincere right now."


See the example in the Recipe Book:

http://inform7.com/learn/man/RB_11_6.html

_________________
http://hanonondricek.wixsite.com/pyramidif
https://pyramidif.itch.io/


Top
 Profile Send private message  
Reply with quote  
PostPosted: Fri Mar 16, 2018 8:53 am 
Offline

Joined: Sat May 07, 2016 5:57 pm
Posts: 363
Location: Hot Springs, Arkansas
Just saw that very example and replaced the rule with an 'enumerate the score' rule, which is simply
Code:
say "Here is what you did--[line break]";
try requesting the score.


thanks anyway!


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

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 10 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