PhZXgames wrote:The problem has to do with this line:
Code: Select all
"[sib] {i}[sibauraleft] Aura left{/i}" if sibauraleft > 0 and sibpair == True:
That specific line has no errors. I'd start from that line and go backwards to see if there is some indentation error, or some missing/misplaced colon (:), or some missing/misplaced quotes (").
EDIT 2:
I've tried your code, and
it's, indeed, an indentation error: some lines like the one above have the same indentation that the "menu:", they should have an indentation of 4 more spaces (or maybe 4 LESS spaces; I can't understand what option belongs to what menu).
But, I suggest you to break your code in small, more manageable pieces, and use jump from one to another. It will improve a lot in readability, specially to detect indentation errors (you have some lines with 12 levels! of indentation; that's crazy to debug).
EDIT 1:
I've found another error. This won't trigger an exception, but will do your calculations go wrong.
There are several lines with "or", for example:
(The "is" should be changed to "==", as has been said before, but that's not the issue.)
Python treats numbers other than 0 as True, and 0 as False, when checking for a boolean condition. So, this line is not checking if the variable runchance has the value 1 or the value 2, is checking:
IF ("runchace is 2" evaluates to True) OR (the number 3 evaluates to True).
The second condition will always be true, no matter what value the variable runchance has.
There are several correct ways to check what you want:
Code: Select all
if runchance == 1 or runchance == 2:
if runchance in [1, 2]:
## The next ones have not the same meaning in math, because 1.5 would be true, but, considering that "$ runchance = renpy.random.randint(1, 3)", the effect in your code would be the same as the others.
if 1 <= runchance <= 2:
if runchance < 3:
if runchance <= 2:
Pick what you find more readable and/or sexy.