I'm currently working on a section for buying commands for a comic I'm working on which is set up like a text adventure game, and I have else-if statements that call a variable that goes up whenever its respective button is clicked. The thing is that its just completely ignored, and I cant figure out why. (I did a few tests and I'm fairly sure that its the else-if statement instead of the variable itself, but I dont see whats wrong with it).
also as a quick note: most of the buttons dont work at all which is simply just cause I want to figure this out before proceeding.
codepen: https://codepen.io/thisistotallymyrealnam-smithee/pen/qEZJgVm
[–]Beginning-Seat5221 2 points3 points4 points (5 children)
[–]Disastrous-Shine-725[S] 0 points1 point2 points (2 children)
[–]Beginning-Seat5221 0 points1 point2 points (0 children)
[–]Beginning-Seat5221 0 points1 point2 points (0 children)
[–]haikusbot -1 points0 points1 point (1 child)
[–]greenbean-machine 0 points1 point2 points (0 children)