Skip to content

Instantly share code, notes, and snippets.

@Aricg
Created August 5, 2014 21:53
Show Gist options
  • Select an option

  • Save Aricg/813e4f4e1073d97465d3 to your computer and use it in GitHub Desktop.

Select an option

Save Aricg/813e4f4e1073d97465d3 to your computer and use it in GitHub Desktop.
#Chooses a Race and changes the stats according to the race chosen
print "What race would you like to play as?\n 1: Human \n 2: Dwarf \n 3: Elf \n 4: Gnome \n 5: Half-Elf \n 6: Half-Orc \n 7: Halfling"
race = int(raw_input())
if (race == 1):
print "Hello Human."
racename = "Human"
elif (race == 2):
print "Hello, Dwarf."
racename = "Dwarf"
con = con+2
cha = cha-2
elif (race == 3):
print "Hello, Elf."
racename = "Elf"
dex = dex+2
con = con-2
elif (race == 4):
print "Hello, Gnome."
racename = "Gnome"
con = con+2
stre = stre-2
elif (race == 5):
print "Hello, Half-Elf."
racename = "Half-Elf"
elif (race == 6):
print "Hello, Half-Orc."
racename = "Half-Orc"
stre = stre+2
inte = inte-2
cha = cha-2
elif (race == 7):
print "Hello, Halfling."
racename = "Halfling"
dex = dex+2
stre = stre-2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment