Is there any way to access the action that an NPC is currently trying? It seems to me as though there must be, somewhere, for actions tracing to be able to print things like “[(2) - Jordan attacking Taylor]”, but I’m not sure how to find it. (Is it I6?)
Also, is there a way to apply kinds of action to NPC actions? Example 184 shows that “Instead of asking someone to try misbehavior” works, but is there any way to make this work when the NPC is actually doing misbehavior?
Here’s an example of the sort of thing where this might apply – ideally Mr. Stephens would speak up when Jordan and Taylor misbehave as well. To do that I’d need to be able to check when they engaged in an action that was prohibited behavior, and then access the parts of that action in order to construct the thing he says. Right now both those things work only for the PC.
[code]The Classroom is a room. A man called Mr Stephens is in the classroom. The description of Mr Stephens is “He doesn’t look too committed to this whole substitute teaching thing.” The printed name of Mr Stephens is “Mr. Stephens”. Jordan is a woman in the classroom. Alexis is a woman in the classroom. The player is Alexis. Taylor is a woman in the classroom.
Singing is prohibited behavior. Attacking someone is prohibited behavior.
Every turn when the current action is prohibited behavior:
say “Mr. Stephens says, ‘[if the person asked is the player]Alexis[otherwise][Person asked][end if], stop [action name part of the current action][if the noun part of the current action is not nothing] [noun part of the current action][end if].’”;
continue the action.
The block attacking rule is not listed in any rulebook.
The block singing rule is not listed in any rulebook.
Instead of an actor singing:
say “[If the person asked is the player]You sing[otherwise][The person asked] sings[end if] a bit.”;
continue the action.
Carry out an actor singing:
try Jordan attacking the person asked.
Report an actor attacking:
say “[If the person asked is the player]You beat[otherwise][The person asked] beats[end if] furiously at [if the noun is the player]you[otherwise][the noun][end if].”
Instead of waiting:
try Taylor singing.
Test me with “sing/z/hit jordan”.[/code]