Quote (alex015110 @ Nov 19 2013 02:49pm)
Maybe instead of two if statements you use a else if for the second if, and else statement stating bool = false and make a condition statement in the first if loop to if(roll1 == roll2 & bool = true) (since bool will always be = true when you define it in the beginning. Or try defining the variables outside of the function as global variables and plug them in to the function, function RollDice(roll1, roll2) { }. Just a guess and worth a try.
This.
Your strings are nice, but sometimes you have to cut it into sections.