Writing with a question, I’m not sure how to even approach this or whether it’s possible.
I’ve been creating my first game in Harlowe 3.2.2. over the last month or so, it’s gotten pretty expansive! That said, I’m polishing certain features up a bit and was wondering if there’s a way to have an user-input typing option in a pop-up box.
By this I mean something similar to what Inform7 does but very simple. I was hoping to have it so when a player meets a NPC, a pop up box appears with dialogue from the NPC and a prompt for the player to type their answer.
I know there’s a lot of logic that can go into this, you can’t control what the player types, but I just need a way for the player to type simple, short, answers that prompt the next piece of dialogue, until finally the conversation leads to a passage depending on how the talk went.
I tried to mess around with the prompt feature… something like:
(set: $creature to (prompt: "He's a...", "Answer")) (set: $correct to "Monster") (if: $creature is $correct)[ (go-to: "Correct Answer Passage") ] (else:)[ (go-to: "Incorrect Answer Passage") ]
But I can’t seem to have it persist for what feels like a conversation… It works well with one and done answers.
How would I go about getting this accomplished?
Twine Version: 2.3.14
Story Format: Harlowe 3.2.2.