What's the text of the NPCs? If you aren't using the right syntax within your dialogs, the choices don't work with their ALTTP dialog script. For example, here's a sample dialog:
_npcs.sample_guy.1
Did you like your dinner?
$? Yes
$? No
_npcs.sample_guy.2
I'm glad it was tasty... NOW PREPARE TO DIE!
I poisoned it!!
_npcs.sample_guy.3
Oh no, was it because it was POISONED!?
So your map script would have:
function sample_guy:on_interaction()
game:start_dialog("_npcs.sample_guy.1", function (answer)
if answer == 2 then
game:start_dialog("_npcs.sample_guy.2")
else
game:start_dialog("_npcs.s.sample_guy.3")
end)
end
Don't copy/paste that without checking for typos, I typed this on mobile and autocorrect is zealous.
I don't think you would ever have something like if answer == 6 because the answer is relative to the choice's line in the box, not in the whole text string. So it'll always be 1-4.
It looks like you're using the whole pause system from the Solarus team's games, which I don't understand fully, so I can't help there : /