My situation is that I have an NPC that spews a long pretentious monologue through several text boxes. I'd like for the X button ("A" key) to, if pressed at any time during the whole process, to interrupt the current displaying text (or at least prevent the next text box) and display a separate set of text containing optional protagonist smack talk.
Think Renegade options from Mass Effect.
The closest I've gotten to this is having an event separate from the NPC where if button X is pressed, a variable is changed to stop the NPC (which is running on the condition of a variable) and new text is displayed. However, I have to hold down the A key while pressing Z to advance the NPC's monologue, so that while holding A, it's recognized as the button X being pressed in between the processing of the NPC's text boxes, allowing that separate event to activate. I'd prefer a simple, single button press. If I knew how to do this properly, then besides Renegade options, I'd have a way to skip text more effectively.
tl;dr: I've tried several things and am thus assuming that no key input other than button A (enter, space, Z key) is recognized while text is actually being drawn. Am I wrong, overlooking something, or just not creative enough? Is there a script that will fulfill my wishes?