>>100157238>giant switch statementSo what's the alternative? Stuffing the script in a big-ass text file with ID numbers? Not much of an improvement. And then you'd have to add more control codes to deal with stuff like branching. Probably wasn't worth the effort.
>a single global variable called 'choice' to indicate the most recent dialog choicePerfectly fine for a simple dialogue system. The name could be more descriptive, but whatever.
>hard-coded array indicesProbably the worst offender. Why didn't he just use iteration?
global.msg[i++]="Line 1/"
global.msg[i++]="Line 2/"
// ...