Any help appreciated here!
I am trying to do a very simple combat system, a random number between 1 and 12 is added to a skill. I have defined these in startup. The higher number wins the round and takes off 2 hp from the loser, this repeats until someone dies. Something isn’t right with my coding though- the numbers don’t appear to show roll scores and it doesn’t determina winner/loser:
The scores aren’t showing up because you put it outside the subroutine. If you trace your codeflow carefully, the code will loop through the subroutine until either loss or win, and the proceeds to the relevant scene.
To get it right
put the scores just below the “diceresult” section.