[b][red]This message was edited by Circu at 2006-5-8 13:52:12[/red][/b][hr]
Hello everone, I was wondering if somone could help me out with this problem I am having. I am making a text based rpg in python and I am geting stuck on trying to import a moudle function I made into another part of my programe. I will Show you the code I have so far and the moudle I made for my game and then I will list the error I keep geting hoping somone might be able to help me out.
is going to be the main part of the programe it will be resonabile for running the programe.
print " Quest For Power"
print " Made and designed By,"
print " Christopher Ross"
Player = Info.Player()
name = raw_input("Please enter you character name.
name = str(name)
age = raw_input("Please enter how old you are.
age = int(age)
print "Welcome, well let me tell you a little about this world.",name,"
print "Well you will being your life as a Noivce, you will be able to choose,
print "One of the being jobs. Which are Mining, BlackSmithing and Farming.
print "There are other advance jobs, but we wont go in to them yet.
print "After you choose your being job you will want to go to the shop of,
print "Your being job. The Npc there will help you along you path.
Mining = "Mining"
Mining = str(Mining)
BlackSmithing = "BlackSmithing"
BlackSmithing = str(BlackSmithing)
Farming = "Farming"
Farming = str(Farming)
JobChoice = raw_input("Please choice you beging job!
JobChoice = str(JobChoice)
if JobChoice == Mining:
print "You have choosen mining as you being job, go see the mining npc for,"
print "Some new Quest."
elif JobChoice == BlackSmithing:
print "You have choosen Blacksmithing as your being job, go see the,"
print "Blacksmithing Npc for some new quest."
elif JobChoice == Farming:
print "You have choosen Farming as your being job, go see the farming,"
print "Npc for some new quest."
That is the main file And I am Importing the Info moudle I made.
Now this is going to be the Info Moudle script
is going to be the player moudle, it is going to have the player stats inventory and job list
Strength = 5
Strength = int(Strength)
Stamina = 5
Stamina = int(Stamina)
Intellegnce = 5
Intellegnce = int(Intellegnce)
Rank = "Novice"
Rank = str(Novice)
print "Your Strength is",Strength,"
print "Your Stamina is",Stamina,"
print "Your Intellegnce is",Intellegnce,"
print "Your Rank is",Rank,"
Inventory = 
print "Your Items are: "
for items in Inventory:
BlackSmithingRank = 0
BlackSmithingRank = int(BlackSmithingRank)
MiningRank = 0
MiningRank = int(MiningRank)
FarmingRank = 0
FarmingRank = int(FarmingRank)
AlchemyRank = 0
AlchemyRank = int(AlchemyRank)
Jobs = 
What I want to do is to be able to use this function in the main file of the game so I figure I would do something like Player = Info.Player()
and then call the functions like Player.Stats() but when I do that in the main part of the programe I get a error that says Player.Stats() takes no arguments but I did not prove a Argument I belive some please help me on this I am stuck.