----------
This just boggles me. I never had an issue with basic if/else statements, but for some reason this just doesn't work?
CODE:
Code: Select all
label elective_intro:
show classroom:
alpha 0.0
linear 1.0 alpha 1.0
if redtype1 == "Bug":
show bugtype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
elif redtype1 == "Dark":
show darktype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
elif redtype1 == "Dragon":
show dragontype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
elif redtype1 == "Electric":
show electype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
elif redtype1 == "Fairy":
show fairytype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
elif redtype1 == "Fighting":
show fighttype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
elif redtype1 == "Fire":
show firetype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
elif redtype1 == "Flying":
show flytype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
elif redtype1 == "Ghost":
show ghosttype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
elif redtype1 == "Grass":
show grasstype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
elif redtype1 == "Ground":
show groundtype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
elif redtype1 == "Ice":
show icetype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
elif redtype1 == "Normal":
show normtype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
elif redtype1 == "Poison":
show poisontype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
elif redtype1 == "Psychic":
show psychtype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
elif redtype1 = "Rock":
show rocktype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
elif redtype1 == "Steel":
show steeltype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
elif redtype1 == "Water":
show watertype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0
show red norm uni at replace:
xpos 2500 ypos 2000Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/elective_classes01.rpy", line 29, in script
if redtype1 == "Bug":
SyntaxError: invalid syntax (game/elective_classes01.rpy, line 104)Code: Select all
if redtype1 == "Bug":
show bugtype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0Code: Select all
elif redtype1 = "Rock":
show rocktype:
alpha 0.0 xalign 0.5 yalign 1.0
linear 0.5 alpha 1.0What's incredibly odd is that if I delete lines 29-32 and replace it with subsequent lines (replaced "elif" with "if") the traceback still reports the original lines 29-32 as if I never saved the script.

