You are viewing our Forum Archives. To view or take place in current topics click here.
#11. Posted:
vRice
  • TTG Master
Status: Offline
Joined: Dec 17, 201112Year Member
Posts: 823
Reputation Power: 41
Status: Offline
Joined: Dec 17, 201112Year Member
Posts: 823
Reputation Power: 41
I had to learn Python for college a couple of months ago, because I have knowledge of other languages I went a little advanced in the classes haha. I was bored and recreated it for you, I hope you can understand what's going on!

:p

_name = raw_input("What's your characters name?: ")
_classArray = ["Warrior", "Mage", "Peasant", "Archer"];
_raceArray = ["Altmer", "Argonian", "Bosmer", "Breton", "Dunmer", "Imperial", "Khajiit", "Nord", "Orsimer", "Redguard"];
_coins = 1000;

for i in range(0, len(_classArray)):
    print(str(i) + ". " + _classArray[i])

_class = int(input("Select a Class (0 - 3): "))
print("You have selected: " + _classArray[_class])

for i in range(0, len(_raceArray)):
    print(str(i) + ". " + _raceArray[i])

_class = int(input("Select a Class (0 - 9): "))
print("You have selected: " + _raceArray[_class])

_gender = raw_input("Are you Male or Female?: ")
print("You have selected: " + _gender)

print("Welcome " + _name + ". You're a " + _gender + " " + _classArray[_class] + " from the " + _raceArray[_class] + " race.")

_choice = raw_input("Do you wish to continue? (Y/N)").lower();
if _choice == "y":
    print("Welcome, enjoy your adventure!")
else:
    print("You're a coward!")

print("You coin balance is: " + str(_coins))

_homeless = int(input("As you travel down the path, you see a homeless man. How much money do you wish to give him?: "))
if(_homeless > _coins):
    print("You don't enough for that!")
if(_homeless < 1):
    print("You're not a nice person, are you?")
else:
    print("Thank you, says the homeless man.")

_coins = _coins - _homeless;

print("Your balance is now: " + str(_coins))

_bag = ["dagger", "piece of rope", "note"]

_pick = raw_input("Further along you spot a bag on the floor, do you want to investigate it? (Y/N)").lower()
if _pick == "y":
    print("The bag contains the following: ")

    for i in range(0, len(_bag)):
        print(_bag[i])
else:
    print("We might come back to that")
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.