Whence action processing internal rule response (J)?

+1 vote
104 views
asked Aug 3 in Authoring by Ryan Veeder (290 points)

I was pawing through the list of responses in the Standard Rules and I found:

action processing internal rule response (J): "(Since something dramatic has happened, your list of commands has been cut short.)"

I gather that this interrupts an extended command along the lines of "n. n. burn rope. jump." but I can't figure out what rule triggers this behavior.

Where does this response come from, and how can I use it to interrupt the players of my games?

1 Answer

+1 vote
answered Aug 3 by Dannii (329 points)
selected Aug 4 by Ryan Veeder
 
Best answer

It is called from the template layer (hence the 'internal'), in OrderOfPlay.i6t. Specifically, it is used in the GenerateMultipleActions() function, which is called from the generate action rule (GENERATE_ACTION_R()).

'Multiple actions' in this case refers not to a list of commands, but to commands which apply to multiple objects (get the rope and the lamp) and need to be interpreted individually. This comment explains when the response is shown:

Note that we stop processing the list in the event of the game ending, or of the |location| variable changing its value, which can happen either through movement of the player, or through passage from darkness to light or vice versa.

So its function is pretty narrowly defined. I'm not sure how you were wanting to extend its use, but it would probably be hard to change.

commented Aug 3 by Ryan Veeder (290 points)
Well, shucks.
This site is now closed.
As of 1st November 2015, this site is a read-only archive. For more information see the intfiction forum post

Welcome to IF Answers, a site for questions and answers about Interactive Fiction.

Technical questions about interactive fiction development tools such as Inform, Twine, Quest, QuestKit, Squiffy, Adrift, TADS etc. are all on-topic here.

Non-technical questions about interactive fiction are also on-topic. These questions could be about general IF design, specific games, entering the IF Comp etc.
...