+ 2
My game won't update HP or MP stats every turn. Why?
https://code.sololearn.com/cG52Lv3HLvPZ/#py There's my code. Im wondering why, every time the boss attacks, it doesn't deduct HP. My stats dont change at all.
4 Antworten
+ 8
Because you do random.randint() once only per value.
For a true attack ypu need to place them in a while loop:
while IrisHealth>0:
+ 4
At the start of the game
+ 1
Where would i put the while loop? i tried twice but still couldnt figure it out.
0
I tried that, then when i run it, it says it cant find the variable irisHealth. Any solution? :)