Hi there,
Very new to inform 7. I’m just using it for a little project.
Currently, I have an NPC, who can respond to certain questions. The player can “ask about [question]” and the responses are in a table. This is not a problem, as long as the player can ask the EXACT question the NPC has a response for.
I’m having a little trouble trying to redirect player alternative questions to questions in the table. For example, I want to the same response when the player asks about “liberty” or if the player asks about “freedom”. In this case, it is simple, because in my table, under the TOPIC column, I can write “liberty” or “freedom”.
How ever, I also want the same answer for my extended questions - like “ask about his feelings on freedom” and “ask about his feelings on liberty”.
My initial plan was to code
Before asking about “his feeling on freedom” or “his feelings on liberty” or “liberty”;
try asking the person about “freedom”;
stop the action.
But this was met with an error. Instead, I had to break it down into individual lines. As such.
[b]Before asking about “his feeling on freedom”;
try asking the person about “freedom”;
stop the action.
Before asking about “his feelings on liberty”;
try asking the person about “freedom”;
stop the action.
Before asking about “liberty”;
try asking the person about “freedom”;
stop the action.[/b]
You can see how this would get tedious. Especially, when the NPC has about 50 responses, and each response could fit about 3-10 different player questions. Any ideas to help me clean this up?
Thanks!
-Q