+ 2

I need help fixing some problems with my game

ok, before reading the question you should take a look at my program(which is best run on a different compiler: https://code.sololearn.com/cywW5gUadmuT my recommended compiler: skulpt.org i'm creating a text based rpg from scratch, in which damage is taken via the enemy's randomized attack stat(a float between 0 and 4) being multiplied by 10 and subtracted from the defense. thing is, i'm getting a problem: - defense keeps being assigned incorrect/negative values(eg. -64 even though i only assigned 15 to the defense)? could someone tell me what im doing wrong and how to fix this problem? thanks in advance

29th Sep 2017, 12:01 PM
X-1
X-1 - avatar
2 odpowiedzi
+ 1
Seems like a cool project, but...you really expect people to search thru 200 lines of code to help you? Either post a much smaller fragment of the code that contains the problem, or at least give a hint as to where to look (line number, which function, etc.) Please and thank you. :)
7th Oct 2017, 5:20 PM
Erik
- 1
"if Player.Health <= 0: ". "le".
30th Sep 2017, 11:20 PM
Jack Johnson