So basically you just want branching dialogue? That error I think is just an indication that all the variables haven't been set up quite right.
You shouldn't actually need the myChangeVars. The one you want to play around with is the myNextLine variable, where you'll set where you want each line of dialogue to go to. As the documentation says (here is the documentation if you haven't seen it already), for normal lines you can just set myNextLine[number] = number, and for dialogue choice lines you'll set it like myNextLine[number] = [num1, num2, num3] corresponding to the different choices.
It might help if you lay out all your lines consecutively and then plan where you want each line of dialogue to go (what will be the next line).