It tells me that the end of input is reached in the middle of the expression....I'm sure it's simple, but I just can't wrap my brain around it...
//character attack------------------------------
if (Random (20)<(getstats(1,4)-(getstats(2,1){
setstats (2,2,getstats(1,3)-Random (3));
Display ("You swing and hit");
else if (Random (20)>(getstats(1,4)-(getstats(2,1){
setstats (2,2,getstats(1,3)-Random (3));
Display ("You swing and miss");
}
//character attack------------------------------
if (Random (20)<(getstats(1,4)-(getstats(2,1){
setstats (2,2,getstats(1,3)-Random (3));
Display ("You swing and hit");
else if (Random (20)>(getstats(1,4)-(getstats(2,1){
setstats (2,2,getstats(1,3)-Random (3));
Display ("You swing and miss");
}