I believe I have come across a glitch


#1

No matter what I do to this piece of code the system keeps saying

File "python", line 205
    print str(pokemon) + " used Pound!"
        ^
SyntaxError: invalid syntax
if dew_it == "Pound":
        enemy_hp = enemy_hp - (pound * critical_hit_2
        print str(pokemon) + " used Pound!"
        print ""
				if critical_hit_2 == 2:
          print "Critical hit!!!"
          print ""     
      	if enemy_hp <= 0:
					print """%s fainted!
        

Don’t worry it’s just a Pokemon move.


#2

look at the line above the error message line:

enemy_hp = enemy_hp - (pound * critical_hit_2

notice anything odd?


#3

@stetim94
Oh I feel dumb now
Thanks.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.