Very generally put, using pseudo-code:
Code: pseudo
Imagine the nightmare of finding out you also need to do something else and having to amend 31000+ lines of code. (In addition to the unimaginable horror of first writing these 31000+ lines of code.)
You need to come up with some system that is much more amenable to later changes.
String book;
int chapter, verse;
loop over book text files
loop over chapters
loop over verses
if (match found) set book, chapter, verse and break out of loops
set vice / virtue variables based on book, chapter, verse
clear input
start next dialog
Imagine the nightmare of finding out you also need to do something else and having to amend 31000+ lines of code. (In addition to the unimaginable horror of first writing these 31000+ lines of code.)
You need to come up with some system that is much more amenable to later changes.