samedi 9 septembre 2017

Python if bring ignored, very basic

Can't figure out why, already broke my keyboard, anyway... It is skipping the if Ctype == 1 ((2,3 etc)) down the bottom, no idea why, it will be something really dumb and stuiped.

 print("Starting game.")
print("Game Started.")
print('\n')
CharName = input('Create a character name: ')
print('\n' * 20)
print('Class Selection: (Ensure it as written as you read it)')
print('\n')
print('Classes:')
print('[1] Heavy')
print('[2] LightFooted')
print('[3] Warrior')
print('\n')
print('To Come:')
print('Stealth')
print('\n')
Ctype = input('Choose class: ')
if Ctype == 1:
    print('test')
if Ctype == 2:
    print('test')
if Ctype == 3:
    print('test')
if Ctype == 4:
    print('Try again... another time.')
    time.wait(2)

Thanks for help

Aucun commentaire:

Enregistrer un commentaire